Pike v8.0 release 1738

Class GTK2.Widget

Inheritance graph
Description

The basic widget, inherited (directly or indirectly) by all widgets. Thus, all functions and signals defined in this widget work on all widgets.

One of the most important functions in this class is 'show', it lets GTK2 know that we are done setting the attributes of the widget, and it is ready to be displayed. You may also use hide to make it disappear again. The order in which you show the widgets is not important, but I suggest showing the toplevel window last so the whole window pops up at once rather than seeing the individual widgets come up on the screen as they're formed. The children of a widget (a window is a widget too) will not be displayed until the window itself is shown using the show() function.

Properties: int app-paintable int can-default int can-focus int composite-child int events (GDK2.EventMask) int extension-events (GDK_EXTENSION_EVENTS_ALL, GDK_EXTENSION_EVENTS_CURSOR and GDK_EXTENSION_EVENTS_NONE) int has-default int has-focus int has-tooltip int height-request int is-focus string name int no-show-all GTK2.Container parent int receives-default int sensitive GTK2.Style style string tooltip-markup string tooltip-text int visible int width-request

Style properties: float cursor-aspect-ratio GDK2.Color cursor-color int draw-border string focus-line-pattern int focus-line-width int focus-padding int interior-focus GDK2.Color link-color int scroll-arrow-hlength int scroll-arrow-vlength int separator-height int separator-width GDK2.Color visited-link-color int wide-separators

Signals: accel_closures_changed

button_press_event Called when a mouse button is pressed

button_release_event Called when a mouse button is released

can_activate_accel

child_notify

client_event An event sent by another client application

composited_changed

configure_event The size, position or stacking order of the widget has changed

delete_event Called when the user has requested that the widget should be closed

destroy_event Called when the widget is destroyed

direction_changed

drag_begin Called when the drag is initiated, on the sending side

drag_data_delete Called when the data can be safely deleted (there is no need to use this function in pigtk, it's all handled automatically)

drag_data_get Called on the sending side when the drop is initiated

drag_data_received Called on the receiving side when the drop is finished

drag_drop Called on the receiving side when the drop is initiated

drag_end Called when the drag is finished, on the sending side

drag_failed

drag_leave Called when the mouse leaves the widget while the user is dragging something

drag_motion Called on the receiving side when the cursor is moved over the widget while dragging something

enter_notify_event Calls when the mouse enters the widget

event Called for all events

event_after

expose_event Called when the widget, or a part of the widget, gets an expose event

focus

focus_in_event The keyboard focus has entered the widget

focus_out_event The keyboard focus has left the widget

grab_broken_event

grab_focus

grab_notify

hide Called when the widget is hidden

hierarchy_changed

key_press_event Called when a keyboard key is pressed

key_release_event Called when a keyboard key is released

keynav_failed

leave_notify_event Called when the mouse leaves the widget

map Called when the window associated with the widget is mapped

map_event Called just before the 'map' signal

mnemonic_activate

motion_notify_event Called when the mouse is moved inside the widget

no_expose_event

parent_set Called when the parent widget is changed

popup_menu

property_notify_event Called when a property of the GDK window associated with the widget is changed

proximity_in_event

proximity_out_event

query_tooltip

realize Called when the widget is realized. Some methods cannot be used until the widget has been realized; if you get assertion errors related to 'w->window' or similar, this is probably the cause.

screen_changed

scroll_event

selection_clear_event

selection_get

selection_notify_event

selection_received

selection_request_event

show Called when the widget is shown

show_help

size_allocate Called when the widget gets the size it should be

size_request Called when the widget should calculate how big it wants to be

state_changed

style_set Called when the style is changed

unmap Called when the window associated with the widget is unmapped

unmap_event Called just before the 'unmap' signal

unrealize Called when the widget is unrealized;

visibility_notify_event The widget has been mapped, unmapped, hidden, or otherwise had it's visibility modified

window_state_event


Inherit Object

inherit GTK2.Object : Object