index, gtk-- homepage
class Gtk_Widget
#include <gtk--/widget.h>
Base class for all widgets
Base classes: Gtk_Object
Is derived by: Gtk_Container Gtk_DrawingArea Gtk_Editable Gtk_Misc Gtk_Preview Gtk_Progress Gtk_ProgressBar::Gtk_ProgressBar Gtk_Range Gtk_Ruler Gtk_Separator
Important part of widgets are the *_event signals and virtual methods
that every widget have. Those are events coming directly from gdk and
thus also from XLib. By overriding those virtual methods you can
trap everything a widget can ever do.
Public member index
- static void cpp_class_init(GtkObject*);
- Gtk_Widget(GtkWidget *castitem);
- void unparent();
- void reparent(const Gtk_Widget * newparent);
- void reparent(const Gtk_Widget & newparent);
- void activate();
- void popup(gint x, gint y);
- bool intersect(const GdkRectangle *area, const GdkRectangle *intersection) const;
- bool basic();
- void grab_focus();
- void grab_default();
- void set_uposition(gint x, gint y);
- void set_usize(gint width, gint height);
- void set_events(gint events);
- void set_extension_events(GdkExtensionMode mode);
- GdkExtensionMode get_extension_events() const;
- Gtk_Widget* get_toplevel();
- Gtk_Widget* get_ancestor(gint type) const;
- GdkColormap* get_colormap() const;
- GdkVisual* get_visual() const;
- gint get_events() const;
- void get_pointer(gint *x, gint *y) const;
- bool is_ancestor(const Gtk_Widget* widget) const;
- bool is_ancestor(const Gtk_Widget &widget) const;
- bool is_child(const Gtk_Widget* widget) const;
- bool is_child(const Gtk_Widget &widget) const;
- void set_style(const Gtk_Style *style);
- void set_style(const Gtk_Style &style);
- void set_rc_style();
- void ensure_style();
- Gtk_Style* get_style();
- void restore_default_style();
- static void push_style(const Gtk_Style &style);
- static void push_colormap(const GdkColormap *cmap);
- static void push_visual(const GdkVisual *visual);
- static void pop_style();
- static void pop_colormap();
- static void pop_visual();
- static void set_default_style(const Gtk_Style *style);
- static void set_default_style(const Gtk_Style &style);
- static void set_default_colormap(const GdkColormap *colormap);
- static void set_default_visual(const GdkVisual *visual);
- static Gtk_Style* get_default_style();
- static GdkColormap* get_default_colormap();
- static GdkVisual* get_default_visual();
- void set_name(const string &name);
- string get_name() const;
- void set_state(GtkStateType state);
- void set_sensitive(bool sensitive);
- void set_parent(const Gtk_Widget *parent);
- void set_parent(const Gtk_Widget &parent);
- void set_parent_window(const GdkWindow *parent_window);
- GdkWindow* get_parent_window() const;
- GdkWindow* get_window() const;
- void queue_draw();
- void queue_resize();
- void shape_combine_mask(const GdkBitmap *shape_mask, gint offset_x, gint offset_y);
- void dnd_drag_add();
- void dnd_drag_set(bool drag_enable, gchar **type_accept_list, guint numtypes);
- void dnd_drop_set(bool drop_enable, gchar **type_accept_list, guint numtypes, bool is_destructive_operation);
- void dnd_data_set(const GdkEvent *event_, gpointer data, gulong data_numbytes);
- bool visible() const;
- bool mapped() const;
- bool realized() const;
- bool sensitive() const;
- bool parent_sensitive() const;
- bool is_sensitive() const;
- bool no_window() const;
- bool has_focus() const;
- bool can_focus() const;
- bool has_default() const;
- bool can_default() const;
- bool drawable() const;
- bool has_grab() const;
- void set_flags(gint flag) const;
- void unset_flags(gint flag) const;
- Signal_proxyN<void,widgettype> show;
- SIGNAL_VFUNC_SPEC(void hide_all());
- Signal_proxy0<GtkWidget> show_all;
- Signal_proxyN<void,widgettype> hide;
- SIGNAL_VFUNC_SPEC(void hide_all());
- Signal_proxy0<GtkWidget> hide_all;
- Signal_proxyN<void,widgettype> map;
- Signal_proxyN<void,widgettype> unmap;
- Signal_proxyN<void,widgettype> realize;
- Signal_proxyN<void,widgettype> unrealize;
- Signal_proxyN<void,widgettype,GdkRectangle*> draw;
- Signal_proxyN<void,widgettype> draw_focus;
- Signal_proxyN<void,widgettype> draw_default;
- void draw_children();
- Signal_proxyN<void,widgettype,GtkRequisition*> size_request;
- Signal_proxyN<void,widgettype,GtkAllocation*> size_allocate;
- Signal_proxyN<void,widgettype,unsigned_int> state_changed;
- Signal_proxyN<void,widgettype,unsigned_int> state_changed;
- virtual void install_accelerator(Gtk_AcceleratorTable *gtkacceltable, const string &signal_name, gchar key, guint8 modifiers);
- virtual void remove_accelerator(Gtk_AcceleratorTable *gtkacceltable, const string &signal_name);
- virtual void install_accelerator(const Gtk_AcceleratorTable >kacceltable, const string &signal_name, gchar key, guint8 modifiers);
- virtual void remove_accelerator(const Gtk_AcceleratorTable >kacceltable, const string &signal_name);
- Signal_proxyN<gint,widgettype,GdkEvent*> event;
- Signal_proxyN<gint,widgettype,GdkEventButton*> button_press_event;
- Signal_proxyN<gint,widgettype,GdkEventButton*> button_release_event;
- Signal_proxyN<gint,widgettype,GdkEventMotion*> motion_notify_event;
- Signal_proxyN<gint,widgettype,GdkEventAny*> delete_event;
- Signal_proxyN<gint,widgettype,GdkEventExpose*> expose_event;
- Signal_proxyN<gint,widgettype,GdkEventKey*> key_press_event;
- Signal_proxyN<gint,widgettype,GdkEventKey*> key_release_event;
- Signal_proxyN<gint,widgettype,GdkEventCrossing*> enter_notify_event;
- Signal_proxyN<gint,widgettype,GdkEventCrossing*> leave_notify_event;
- Signal_proxyN<gint,widgettype,GdkEventConfigure*> configure_event;
- Signal_proxyN<gint,widgettype,GdkEventFocus*> focus_in_event;
- Signal_proxyN<gint,widgettype,GdkEventFocus*> focus_out_event;
- Signal_proxyN<gint,widgettype,GdkEventAny*> map_event;
- Signal_proxyN<gint,widgettype,GdkEventAny*> unmap_event;
- Signal_proxyN<gint,widgettype,GdkEventProperty*> property_notify_event;
- Signal_proxyN<gint,widgettype,GdkEventSelection*> selection_clear_event;
- Signal_proxyN<gint,widgettype,GdkEventSelection*> selection_request_event;
- Signal_proxyN<gint,widgettype,GdkEventSelection*> selection_notify_event;
- Signal_proxyN<gint,widgettype,GdkEventProximity*> proximity_in_event;
- Signal_proxyN<gint,widgettype,GdkEventProximity*> proximity_out_event;
- Signal_proxyN<gint,widgettype,GdkEventDragBegin*> drag_begin_event;
- Signal_proxyN<gint,widgettype,GdkEventDragRequest*> drag_request_event;
- Signal_proxyN<gint,widgettype,GdkEventDropEnter*> drop_enter_event;
- Signal_proxyN<gint,widgettype,GdkEventDropLeave*> drop_leave_event;
- Signal_proxyN<gint,widgettype,GdkEventDropDataAvailable*> drop_data_available_event;
- Signal_proxyN<gint,widgettype,GdkEventOther*> other_event;
- Signal_proxyN<void,widgettype,GtkSelectionData*> selection_received;
- Signal_proxyN<gint,widgettype,GdkEventClient*> client_event;
- Signal_proxyN<gint,widgettype,GdkEventAny*> no_expose_event;
- gint width();
- gint height();
- static bool isGtkWidget(Gtk_Object *checkcast);
- virtual ~Gtk_Widget();
- GtkWidget* gtkobj() const;
Protected member index
Private member index
Public member descriptions
show
Signal_proxyN<void,widgettype> Gtk_Widget::show;
show a widget
SIGNAL_VFUNC_SPEC
Gtk_Widget::SIGNAL_VFUNC_SPEC(void hide_all());
show a widget and all items inserted to ithide a widget and all items inserted to it
hide
Signal_proxyN<void,widgettype> Gtk_Widget::hide;
hide a widget
SIGNAL_VFUNC_SPEC
Gtk_Widget::SIGNAL_VFUNC_SPEC(void hide_all());
show a widget and all items inserted to ithide a widget and all items inserted to it
draw_children
void Gtk_Widget::draw_children();
should this be signal? not a signal in docs
install_accelerator
virtual void Gtk_Widget::install_accelerator(Gtk_AcceleratorTable *gtkacceltable, const string &signal_name, gchar key, guint8 modifiers);
we're not having the install_accelerator's as signals, since they
do modifications to arguments. (these still should be signals...)
Protected member descriptions
Private member descriptions
(pages generated by PERCEPS -script.)