GtkWidget
Base class for user interface elements.
Object Hierarchy
Direct subclasses
Description
GtkWidget is an abstract base class providing
its descendants with properties, methods and signals pertinent to
displayable user interface elements. The only objects that do not
inherit GtkWidget characteristics are
GtkTooltips, GtkAdjustment
and GtkItemFactory - all of which are relatively
abstract concepts. Everything else that is a member of the object
hierarchy is a descendant of the GtkWidget
class, takes up screen space, and may be referred to as a
widget.
Note that GtkWidget cannot be constructed
directly.
Signals
"show"
"hide"
"map"
"unmap"
"realize"
"unrealize"
"draw"
"draw-focus"
"draw-default"
"size-request"
"size-allocate"
"state-changed"
"parent-set"
"style-set"
"add-accelerator"
"remove-accelerator"
"grab-focus"
"event"
Emitted when any event is captured.
"button-press-event"
Emitted when a GDK_BUTTON_PRESS event is captured.
"button-release-event"
Emitted when a GDK_BUTTON_RELEASE event is captured.
"motion-notify-event"
Emitted when a GDK_MOTION_NOTIFY event is captured.
"delete-event"
Emitted when a GDK_DELETE event is captured.
"destroy-event"
Emitted when a GDK_DESTROY event is captured.
"expose-event"
Emitted when a GDK_EXPOSE event is captured.
"key-press-event"
Emitted when a GDK_KEY_PRESS event is captured.
"key-release-event"
Emitted when a GDK_KEY_RELEASE event is captured.
"enter-notify-event"
Emitted when a GDK_ENTER_NOTIFY event is captured.
"leave-notify-event"
Emitted when a GDK_LEAVE_NOTIFY event is captured.
"configure-event"
Emitted when a GDK_CONFIGURE event is captured.
"focus-in-event"
Emitted when a GDK_FOCUS_CHANGE event is captured.
"focus-out-event"
Emitted when a GDK_FOCUS_CHANGE event is captured.
"map-event"
Emitted when a GDK_MAP event is captured.
"unmap-event"
Emitted when a GDK_UNMAP event is captured.
"property-notify-event"
Emitted when a GDK_PROPERTY_NOTIFY event is captured.
"selection-clear-event"
Emitted when a GDK_SELECTION_CLEAR event is captured.
"selection-request-event"
Emitted when a GDK_SELECTION_REQUEST event is captured.
"selection-notify-event"
Emitted when a GDK_SELECTION_NOTIFY event is captured.
"selection-received"
"selection-get"
"proximity-in-event"
Emitted when a GDK_PROXIMITY_IN event is captured.
"proximity-out-event"
Emitted when a GDK_PROXIMITY_OUT event is captured.
"drag-begin" "drag-end" "drag-data-delete"
"drag-motion" The mouse cursor is moved over the drop target"drag-leave" The mouse leaves the drop target"drag-drop"
"drag-data-get"
Requests drag'n'drop data.
"drag-data-received"
Receives data dropped over the widget.
"visibility-notify-event"
Emitted when a GDK_VISIBILITY_NOTIFY event is captured.
"client-event"
Emitted when a GDK_CLIENT_EVENT event is captured.
"no-expose-event"
"debug-msg"
Properties
style:
Style associated with a widget.
window:
Underlying GdkWindow that captures events on a widget.
allocation:
Size and position allocated to a widget.
state:
Degree of response to events.
parent:
A widget's parent.