/** * @file libsexymm/tooltip.hg A flexible tooltip widget. * * @Copyright (C) 2006 Christian Hammond. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include #include _DEFS(libsexymm,libsexy) _PINCLUDE(gtkmm/private/window_p.h) namespace Sexy { class Tooltip : public Gtk::Window { _CLASS_GTKOBJECT(Tooltip, SexyTooltip, SEXY_TOOLTIP, Gtk::Window, GtkWindow) public: _CTOR_DEFAULT explicit Tooltip(const Glib::ustring& text); _WRAP_METHOD(void position_to_widget(Gtk::Widget& widget), sexy_tooltip_position_to_widget) _WRAP_METHOD(void position_to_rect(const Gdk::Rectangle& rect, const Glib::RefPtr& screen), sexy_tooltip_position_to_rect) }; } /* namespace Sexy */ // vim: syntax=cpp