The members of Gtk.Widget are listed below.
See Also: Inherited members from Gtk.Object
Widget() | Protected constructor. | |
Protected Constructor. |
[read-only] | Accessible | Atk.Object. Obtains the default reading direction for widgets. |
[read-only] | Action | Action. The action the widget proxies. |
Allocation | Gdk.Rectangle. Gets or Sets the widget's allocation. | |
AppPaintable | bool. Whether the application will paint directly on the widget. | |
CanDefault | bool. Evaluates to true if the widget is allowed to receive the default focus. | |
CanFocus | bool. Determines whether the widget is able to receive the focus. | |
[read-only] | ChildRequisition | Requisition. Obtains the widget's requisition. |
ChildVisible | bool. Sets or obtains whether widget should be mapped along with its when its parent is mapped and widget has been shown with Widget.Show. | |
Colormap | Gdk.Colormap. Sets or obtains the colormap that will be used to render widget. | |
[read-only] | CompositeChild | bool. Whether the widget is part of a composite widget. |
CompositeName | string. Sets or obtains a widget composite name. | |
static | DefaultColormap | Gdk.Colormap. Sets or obtains the default colormap to use when creating widgets. |
static | DefaultDirection | TextDirection. Sets or obtains the default reading direction for widgets. |
[read-only] static | DefaultStyle | Style. Obtains the default style used by all widgets initially. |
[read-only] static | DefaultVisual | Gdk.Visual. Obtains the visual of the default colormap. |
Direction | TextDirection. Sets or obtains the reading direction on a particular widget. | |
[read-only] | Display | Gdk.Display. Obtains the Gdk.Display for the toplevel window associated with this widget. |
[write-only] | DoubleBuffered | bool. Use this property to turn off the double buffering. |
Events | Gdk.EventMask. Obtains or sets the event mask for the widget (a bitfield containing flags from Gdk.EventMask). | |
ExtensionEvents | Gdk.ExtensionMode. The mask that decides what kind of extension events the widget gets. | |
Flags | int. Obtains or sets the flags for this widget. | |
[read-only] | FocusLineWidth | int. The width of the focus line in a widget. |
GdkWindow | Gdk.Window. Obtains or sets the underlying Gdk.Window used to display the contents of the widget. | |
[read-only] static | GType | GLib.GType. GType Property. |
HasDefault | bool. true when the widget currently is receiving the default action. | |
HasFocus | bool. Whether the widget has the input focus. | |
[read-only] | HasGrab | bool. Convenience property to check Flags for WidgetFlags.HasGrab |
[read-only] | HasScreen | bool. Checks whether there is a Gdk.Screen is associated with this widget. |
HasTooltip | bool. Documentation for this section has not yet been entered. | |
HeightRequest | int. Override for the height request for the widget. | |
[read-only] | IsAppPaintable | bool. Convenience property to check Flags for WidgetFlags.AppPaintable |
[read-only] | IsCompositeChild | bool. Convenience property to check Flags for WidgetFlags.CompositeChild |
[read-only] | IsComposited | bool. Indicates if a widget can rely on its alpha channel being drawn correctly. |
[read-only] | IsDoubleBuffered | bool. Convenience property to check Flags for WidetFlags.DoubleBuffered |
[read-only] | IsDrawable | bool. Convenience property to check if the widget is Visible and Realized. |
IsFocus | bool. Determines if the widget is the focus widget within its toplevel. | |
[read-only] | IsMapped | bool. Check to see if the widget is Mapped |
[read-only] | IsNoWindow | bool. Convenience property to check Flags for WidgetFlags.NoWindow |
[read-only] | IsRealized | bool. Checks to see if the widget is Realized |
[read-only] | IsTopLevel | bool. Convenience property to check Flags for WidgetFlags.Toplevel |
[read-only] | ModifierStyle | RcStyle. Obtains the current modifier style for the widget.(As set by Widget.ModifyStyle) |
Name | string. The name of the widget. | |
NoShowAll | bool. This property determines whether the widget will be affected by Widget.ShowAll and Widget.HideAll. | |
[read-only] | PangoContext | Pango.Context. Obtains a Pango.Context with the appropriate colormap, font description and base direction for widget. |
Parent | Widget. The parent widget of this widget. | |
ParentWindow | Gdk.Window. Sets or obtains widget's parent window. | |
ReceivesDefault | bool. Whether to make the widget receive the default action when it is focused. | |
[write-only] | RedrawOnAllocate | bool. Sets whether a widget size allocation changes, the entire widget is queued for drawing. |
Requisition | Requisition. Gets or Sets the widget's requisition | |
[read-only] | RootWindow | Gdk.Window. The root window this Widget is attached to. |
[read-only] | Screen | Gdk.Screen. Obtains the Gdk.Screen from the toplevel window associated with this widget. |
Sensitive | bool. Sets the sensitivity of the Gtk.Widget. A widget is sensitive if the user can interact with it, otherwise, it is grayed. | |
[read-only] | Settings | Settings. Obtains the settings object holding the settings (global property settings, RC file information, etc) used for this widget. |
State | StateType. Sets or obtains the state of a widget (insensitive, prelighted, etc.). | |
Style | Style. The style of the widget. | |
TooltipMarkup | string. Documentation for this section has not yet been entered. | |
TooltipText | string. Documentation for this section has not yet been entered. | |
TooltipWindow | Window. Documentation for this section has not yet been entered. | |
[read-only] | Toplevel | Widget. Obtains the topmost widget in the container hierarchy widget is a part of. |
Visible | bool. Whether the widget is visible. | |
[read-only] | Visual | Gdk.Visual. Obtains the visual that will be used to render widget. |
WidgetFlags | WidgetFlags. Contains Widget specific flags values. | |
WidthRequest | int. Override for the width request for the widget. |
Activate()For widgets that can be "activated" (buttons, menu items, etc.) this method activates them. | ||
AddAccelerator(string, AccelGroup, AccelKey)Installs an accelerator for this widget in accel-group that causes accel_signal to be emitted if the accelerator is activated. | ||
AddAccelerator(string, AccelGroup, uint, Gdk.ModifierType, AccelFlags)Installs an accelerator for this widget in accel-group that causes accel_signal to be emitted if the accelerator is activated. | ||
AddEvents(int)Adds the events in the bitfield events to the event mask for widget. | ||
AddMnemonicLabel(Widget)Adds a widget to the list of mnemonic labels for this widget. | ||
CanActivateAccel(uint)Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. | ||
ChildFocus(DirectionType)Move focus to particular widget. | ||
ChildNotify(string)Emits a Widget.ChildNotified event for the child property on widget. | ||
ClassPath(out uint, out string, out string)Same as Widget.Path, but always uses the name of a widget's type, never uses a custom name set with Widget.Name. | ||
ClearFlag(WidgetFlags)Convenince method to clear a flag | ||
CreatePangoContext()Creates a new Widget.PangoContext with the appropriate colormap, font description, and base direction for drawing text for widget. | ||
CreatePangoLayout(string)Creates a new Pango.Layout with the appropriate colormap, font description, and base direction for drawing text for widget. | ||
Draw(Gdk.Rectangle)Deprecated. | ||
EnsureStyle()Ensures that widget has a style (widget->style). | ||
ErrorBell()Documentation for this section has not yet been entered. | ||
FreezeChildNotify()Stops emission of Widget.ChildNotified events on widget. | ||
GetAncestor(GLib.GType)Obtains the first ancestor of widget. | ||
GetClipboard(Gdk.Atom)Returns the clipboard object for the given selection to be used with widget. | ||
GetPointer(out int, out int)Obtains the location of the mouse pointer in widget coordinates. | ||
GetSizeRequest(out int, out int)Gets the size request that was explicitly set for the widget using Widget.SetSizeRequest. | ||
GrabDefault()Causes widget to become the default widget. | ||
GrabFocus()Causes a widget to have the keyboard focus for the Gtk.Window it's inside. | ||
Hide()Reverses the effects of Widget.Show, causing the widget to be hidden (invisible to the user). | ||
HideAll()Recursively hides a widget and any child widgets. | ||
HideOnDelete()Utility method; intended to be connected to the Widget.DeleteEvent event on a Gtk.Window. | ||
InputShapeCombineMask(Gdk.Pixmap, int, int)Sets an input shape mask for the widget. | ||
Intersect(Gdk.Rectangle, out Gdk.Rectangle)Computes the intersection of a widget's area and area. | ||
IsAncestor(Widget)Determines whether widget is somewhere inside ancestor, possibly with intermediate containers. | ||
KeynavFailed(DirectionType)Documentation for this section has not yet been entered. | ||
ListMnemonicLabels()Returns a list of the widgets, normally Labels, for which this widget is a the target of a mnemonic | ||
Map()Causes a widget to be mapped if it isn't already. | ||
MnemonicActivate(bool)Activates the targets associated with the mnemonic. | ||
ModifyBase(StateType)Resets the base color to the default color. | ||
ModifyBase(StateType, Gdk.Color)Sets the base color for a widget in a particular state. | ||
ModifyBg(StateType)Resets the background color to the default color. | ||
ModifyBg(StateType, Gdk.Color)Sets the background color for a widget in a particular state. | ||
ModifyCursor(Gdk.Color, Gdk.Color)Documentation for this section has not yet been entered. | ||
ModifyFg(StateType)Resets the foreground color to the default color. | ||
ModifyFg(StateType, Gdk.Color)Sets the foreground color for a widget in a particular state. | ||
ModifyFont(Pango.FontDescription)Sets the font to use for a widget. | ||
ModifyStyle(RcStyle)Modifies style values on the widget. | ||
ModifyText(StateType)Resets the text color to the default color. | ||
ModifyText(StateType, Gdk.Color)Sets the text color for a widget in a particular state. | ||
Path(out uint, out string, out string)Obtains the full path to widget. | ||
static | PopColormap()Removes a colormap pushed with Widget.PushColormap. | |
static | PopCompositeChild()Cancels the effect of a previous call to Widget.PushCompositeChild. | |
ProcessEvent(Gdk.Event)Rarely-used method. This method is used to emit the events on a widget. | ||
static | PushColormap(Gdk.Colormap)Pushes cmap onto a global stack of colormaps. | |
static | PushCompositeChild()Makes all newly-created widgets as composite children until the corresponding Widget.PopCompositeChild call. | |
QueueClear()Deprecated: Use Widget.QueueDraw() instead. | ||
QueueClearArea(int, int, int, int)Deprecated equivalent of Widget.QueueDrawArea() | ||
QueueDraw()Equivalent to calling Widget.QueueDrawArea for the entire area of a widget. | ||
QueueDrawArea(int, int, int, int)Invalidates the rectangular area of a widget. | ||
QueueResize()Flags a widget to have its size renegotiated; should be called when a widget for some reason has a new Widget.SizeRequest. | ||
QueueResizeNoRedraw()This function works like Widget.QueueResize(), except that the widget is not invalidated. | ||
Realize()Creates the GDK (windowing system) resources associated with a widget. | ||
RefAccessible()Gets a reference to an object's Atk.Object implementation. | ||
RegionIntersect(Gdk.Region)Computes the intersection of a widget's area and region, returning the intersection. | ||
RemoveAccelerator(AccelGroup, uint, Gdk.ModifierType)Removes an accelerator from widget, previously installed with Widget.AddAccelerator. | ||
RemoveMnemonicLabel(Widget)Removes a widget from the list of mnemonic labels for this widget. | ||
RenderIcon(string, IconSize, string)A convenience method that uses the theme engine and RC file settings for widget to look up stock_id and render it to a Gdk.Pixbuf. | ||
Reparent(Widget)Moves a widget from one Gtk.Container to another, handling reference count issues to avoid destroying the widget. | ||
ResetRcStyles()Reset the styles of widget and all descendents, so when they are looked up again, they get the correct values for the currently loaded RC file settings. | ||
ResetShapes()Recursively resets the shape on widget and its descendants. | ||
SendExpose(Gdk.Event)Very rarely-used method. This method is used to emit an Widget.ExposeEvent events on a widget. | ||
SetAccelPath(string, AccelGroup)Given an accelerator group, accel_group, and an accelerator path, accel_path, sets up an accelerator in accel_group so whenever the key binding that is defined for accel_path is pressed, widget will be activated. | ||
SetFlag(WidgetFlags)Convenience method to set a flag. | ||
SetScrollAdjustments(Adjustment, Adjustment)For widgets that support scrolling, sets the scroll adjustments. | ||
SetSizeRequest(int, int)Sets the minimum size of a widget; that is, the widget's size request will be width by height. | ||
SetUposition(int, int)Deprecated way to set the position of a widget. | ||
SetUsize(int, int)Sets the minimum size of a widget | ||
ShapeCombineMask(Gdk.Pixmap, int, int)Sets a shape for this widget's GDK window. This allows for transparent windows etc., see Gdk.Window.ShapeCombineMask for more information. | ||
Show()Flags a widget to be displayed. | ||
ShowAll()Recursively shows a widget, and any child widgets (if the widget is a container). | ||
ShowNow()Shows a widget. | ||
SizeAllocate(Gdk.Rectangle)This method is only used by Gtk.Container subclasses, to assign a size and position to their child widgets. | ||
SizeRequest()Obtains the preferred size of a widget. | ||
StyleGetProperty(string)Obtains the value of a style property of widget. | ||
ThawChildNotify()Reverts the effect of a previous call to Widget.FreezeChildNotify. | ||
TranslateCoordinates(Widget, int, int, out int, out int)Translate coordinates relative to widget's allocation to coordinates relative to dest_widget's allocations. | ||
TriggerTooltipQuery()Documentation for this section has not yet been entered. | ||
Unmap()Causes a widget to be unmapped if it's currently mapped. | ||
Unparent()Should be called by implementations of the remove method on Gtk.Container, to dissociate a child from the container. | ||
Unrealize()Causes a widget to be unrealized (frees all GDK resources associated with the widget). |
AccelCanActivate | This signal is present to allow applications and derived widgets to override the default Gtk.Widget handling for determining whether an accelerator can be activated. | |
AccelClosuresChanged | Raised when the closures for this widget's accelerator change. | |
ButtonPressEvent | Raised when a button is pressed. | |
ButtonReleaseEvent | Raised when a (mouse) button is released on this widget. | |
ChildNotified | Emitted when a child has been notified. | |
ClientEvent | Raised when a message is received from another application. | |
CompositedChanged | Raised with the composited status changes. | |
ConfigureEvent | Raised when the configuration of the window has changed (it has been moved or resized). | |
DeleteEvent | Raised when the user has clicked on the "close" button in the window's frame (the button that is automatically set by the window manager). | |
DestroyEvent | Raised when this widget is destroyed. | |
DirectionChanged | Raised when the text direction for this widget is changed. | |
DragBegin | Raised on a source widget when the user begins a drag. | |
DragDataDelete | Raised on a source widget when dragged data is deleted. | |
DragDataGet | Raised when the drag-and-drop process gets data from a source widget. | |
DragDataReceived | Raised on a destination widget when it receives dragged data. | |
DragDrop | Raised on a source widget when dragged data is dropped. | |
DragEnd | Raised on a source widget when a drag operation is completed. | |
DragFailed | Documentation for this section has not yet been entered. | |
DragLeave | Raised when a drag action leaves this widget. | |
DragMotion | Raised on a source widget when the user is moving a dragged selection. | |
EnterNotifyEvent | The pointer has just entered the widget. | |
ExposeEvent | Raised when the widget needs to be (fully or partially) redrawn. | |
Focused | Raised whenever this widget is focused. | |
FocusGrabbed | Raised when this widget grabs the keyboard focus. | |
FocusInEvent | Raised when the widget has just gained the focus. | |
FocusOutEvent | Raised when the focus leaves this widget. | |
GrabBrokenEvent | Raised when an existing grab is broken by another. | |
GrabNotify | Emitted when a widget grabs focus. | |
HelpShown | Raised when the help text is shown. | |
Hidden | Raised whenever this widget is hidden. | |
HierarchyChanged | Raised when the hierarchy (parent or child relationships) of this widget or its parent or children changes. | |
KeyPressEvent | Raised when a key is pressed within this widget. | |
KeyReleaseEvent | Raised when a key is released within this widget. | |
LeaveNotifyEvent | Raised when the mouse leaves this widget. | |
MapEvent | Raised just after the widget is mapped. | |
Mapped | Raised when this widget is mapped. | |
MnemonicActivated | Raised when someone presses a mnemonic key. | |
MotionNotifyEvent | Raised when the pointer moves within this widget. | |
NoExposeEvent | Emits NoExposeEvent | |
ParentSet | Raised whenever this widget's parent widget is set. | |
PopupMenu | Raised when this widget's popup menu is activated. | |
PropertyNotifyEvent | Emitted when a property is changed. | |
ProximityInEvent | Raised when the user is using a stylus or touch screen and their pointer comes near the widget. | |
ProximityOutEvent | Raised when the user is using a stylus or touch screen and their pointer leaves the area near the widget. | |
QueryTooltip | Documentation for this section has not yet been entered. | |
Realized | Emitted when a widget is realized. | |
ScreenChanged | Emitted when the screen has changed. | |
ScrollEvent | Raised when the widget is scrolled. | |
SelectionClearEvent | Raised when the current selection is cleared. | |
SelectionGet | Raised when this widget gets a selection from the clipboard. | |
SelectionNotifyEvent | Emitted when a selection is made. | |
SelectionReceived | Raised when this widget is the destination of a received selection. | |
SelectionRequestEvent | Raised whenever the widget receives a request for a selection. | |
Shown | Raised when the widget is shown. | |
SizeAllocated | Raised when size is allocated for this widget. | |
SizeRequested | Raised when this widget needs to notify another object of its preferred size. | |
StateChanged | Raised when the state of the widget changes. | |
StyleSet | Raised when a Gtk.Style is set for this widget.t | |
UnmapEvent | Raised whenever this widget (or its parent, if Widget.ChildVisible is true for the parent) is told to hide itself. | |
Unmapped | Raised when the widget is unmapped on the screen. | |
Unrealized | Raised when a widget is unrealized. | |
VisibilityNotifyEvent | Raised whenever the visibility state of the widget changes--- partially visible or fully visible, for example. | |
WidgetEvent | Emits the WidgetEvent. | |
WidgetEventAfter | Emits the WidgetEventAfter. | |
WindowStateEvent | Emitted when the Window state changes. |