The methods of Gtk.Widget are listed below. For a list of all members, see the Widget Members list.
See Also: Inherited members from Gtk.Object
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). | ||