/** * @file libsexymm/icon-entry.h Icon entry widget * * @Copyright (C) 2004-2005 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 #include _DEFS(libsexymm,libsexy) _PINCLUDE(gtkmm/private/entry_p.h) namespace Sexy { _CC_INCLUDE(libsexy/sexy-enum-types.h) _WRAP_ENUM(IconEntryPosition, SexyIconEntryPosition) class IconEntry : public Gtk::Entry { _CLASS_GTKOBJECT(IconEntry, SexyIconEntry, SEXY_ICON_ENTRY, Gtk::Entry, GtkEntry) _IMPLEMENTS_INTERFACE(Gtk::Editable) public: _CTOR_DEFAULT _WRAP_METHOD(void set_icon(IconEntryPosition icon_pos, Gtk::Image* icon), sexy_icon_entry_set_icon) _WRAP_METHOD(void set_icon(IconEntryPosition icon_pos, Gtk::Image& icon), sexy_icon_entry_set_icon) _WRAP_METHOD(const Gtk::Image* get_icon(IconEntryPosition icon_pos) const, sexy_icon_entry_get_icon) _WRAP_METHOD(void set_icon_highlight(IconEntryPosition icon_pos, bool highlight), sexy_icon_entry_set_icon_highlight) _WRAP_METHOD(bool get_icon_highlight(IconEntryPosition icon_pos), sexy_icon_entry_get_icon_highlight) _WRAP_METHOD(void add_clear_button(), sexy_icon_entry_add_clear_button) _WRAP_SIGNAL(void icon_pressed(IconEntryPosition icon_pos, int button), "icon_pressed") _WRAP_SIGNAL(void icon_released(IconEntryPosition icon_pos, int button), "icon_released") }; } /* namespace Sexy */ // vim: syntax=cpp