GObject.Object
GObject.InitiallyUnowned
Gtk.Object
Gtk.Widget
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkWidget |
Class : | Widget |
Implements: | Atk.ImplementorIface, Gtk.Buildable |
Extends: | Gtk.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
allocation : Gdk.Rectangle
read only
|
Gtk.Widget | |
app_paintable : Boolean
|
Gtk.Widget | |
can_default : Boolean
|
Gtk.Widget | |
can_focus : Boolean
|
Gtk.Widget | |
composite_child : Boolean
read only
|
Gtk.Widget | |
double_buffered : Boolean
|
Gtk.Widget | |
events : Gdk.EventMask
|
Gtk.Widget | |
extension_events : Gdk.ExtensionMode
|
Gtk.Widget | |
flags : Number
read only
|
Gtk.Object | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
has_default : Boolean
|
Gtk.Widget | |
has_focus : Boolean
|
Gtk.Widget | |
has_tooltip : Boolean
Enables or disables the emission of GtkWidget::query-tooltip on widget.
Enables or disables the emission of GtkWidget::query-tooltip on widget. A value of TRUE indicates that widget can have a tooltip, in this case the widget will be queried using GtkWidget::query-tooltip to determine whether it will provide a tooltip or not. Note that setting this property to TRUE for the first time will change the event masks of the GdkWindows of this widget to include leave-notify and motion-notify events. This cannot and will not be undone when the property is set to FALSE again.
|
Gtk.Widget | |
height_request : Number
|
Gtk.Widget | |
is_focus : Boolean
|
Gtk.Widget | |
name : String
|
Gtk.Widget | |
name : String
read only
|
Gtk.Widget | |
no_show_all : Boolean
|
Gtk.Widget | |
object : Gtk.Object
read only
|
Gtk.Widget | |
parent : Gtk.Container
|
Gtk.Widget | |
parent : Gtk.Widget
read only
|
Gtk.Widget | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
private_flags : Number
read only
|
Gtk.Widget | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
receives_default : Boolean
|
Gtk.Widget | |
ref_count : Number
|
GObject.InitiallyUnowned | |
requisition : Gtk.Requisition
read only
|
Gtk.Widget | |
saved_state : Number
read only
|
Gtk.Widget | |
sensitive : Boolean
|
Gtk.Widget | |
state : Number
read only
|
Gtk.Widget | |
style : Gtk.Style
|
Gtk.Widget | |
style : Gtk.Style
read only
|
Gtk.Widget | |
tooltip_markup : String
Sets the text of tooltip to be the given string, which is marked up with the Pango text markup language.
Sets the text of tooltip to be the given string, which is marked up with the Pango text markup language. Also see gtk_tooltip_set_markup(). This is a convenience property which will take care of getting the will automatically be set to TRUE and there will be taken care of GtkWidget::query-tooltip in the default signal handler.
|
Gtk.Widget | |
tooltip_text : String
Sets the text of tooltip to be the given string.
Sets the text of tooltip to be the given string. Also see gtk_tooltip_set_text(). This is a convenience property which will take care of getting the will automatically be set to TRUE and there will be taken care of GtkWidget::query-tooltip in the default signal handler.
|
Gtk.Widget | |
user_data : void*
|
Gtk.Object | |
visible : Boolean
|
Gtk.Widget | |
width_request : Number
|
Gtk.Widget | |
window : Gdk.Window
read only
The widget's window if it is realized, NULL otherwise.
The widget's window if it is realized, NULL otherwise.
|
Gtk.Widget | |
window : Gdk.Window
read only
|
Gtk.Widget |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.Widget
(Object properties)
Create a new Gtk.Widget
Create a new Gtk.Widget
|
||
Gtk.Widget.get_default_colormap
()
:
Gdk.Colormap
Obtains the default colormap used to create widgets.
Obtains the default colormap used to create widgets.
|
Gtk.Widget | |
Gtk.Widget.get_default_direction
()
:
Gtk.TextDirection
Obtains the current default reading direction.
Obtains the current default reading direction. See gtk_widget_set_default_direction().
|
Gtk.Widget | |
Gtk.Widget.get_default_style
()
:
Gtk.Style
Returns the default style used by all widgets initially.
Returns the default style used by all widgets initially. by GTK+ and should not be modified or freed.
|
Gtk.Widget | |
Gtk.Widget.get_default_visual
()
:
Gdk.Visual
Obtains the visual of the default colormap.
Obtains the visual of the default colormap. Not really useful; used to be useful before gdk_colormap_get_visual() existed.
|
Gtk.Widget | |
Gtk.Widget.pop_colormap
()
:
none
Removes a colormap pushed with gtk_widget_push_colormap().
Removes a colormap pushed with gtk_widget_push_colormap().
|
Gtk.Widget | |
Gtk.Widget.pop_composite_child
()
:
none
Cancels the effect of a previous call to gtk_widget_push_composite_child().
Cancels the effect of a previous call to gtk_widget_push_composite_child().
|
Gtk.Widget | |
Gtk.Widget.push_colormap
(Colormap cmap)
:
none
Pushes cmap onto a global stack of colormaps; the topmost colormap on the stack will be used to create all widgets.
Pushes cmap onto a global stack of colormaps; the topmost colormap on the stack will be used to create all widgets. Remove cmap with gtk_widget_pop_colormap(). There's little reason to use this function.
|
Gtk.Widget | |
Gtk.Widget.push_composite_child
()
:
none
Makes all newly-created widgets as composite children until the corresponding gtk_widget_pop_composite_child() call.
Makes all newly-created widgets as composite children until the corresponding gtk_widget_pop_composite_child() call. A composite child is a child that's an implementation detail of the container it's inside and should not be visible to people using the container. Composite children aren't treated differently by GTK (but see gtk_container_foreach() vs. gtk_container_forall()), but e.g. GUI builders might want to treat them in a different way. Here is a simple example: |[ gtk_widget_push_composite_child (); scrolled_window->hscrollbar = gtk_hscrollbar_new (hadjustment); gtk_widget_set_composite_name (scrolled_window->hscrollbar, "hscrollbar"); gtk_widget_pop_composite_child (); gtk_widget_set_parent (scrolled_window->hscrollbar, GTK_WIDGET (scrolled_window)); g_object_ref (scrolled_window->hscrollbar); ]|
|
Gtk.Widget | |
Gtk.Widget.set_default_colormap
(Colormap colormap)
:
none
Sets the default colormap to use when creating widgets.
Sets the default colormap to use when creating widgets. gtk_widget_push_colormap() is a better function to use if you only want to affect a few widgets, rather than all widgets.
|
Gtk.Widget | |
Gtk.Widget.set_default_direction
(TextDirection dir)
:
none
Sets the default reading direction for widgets where the direction has not been explicitly set by gtk_widget_set_direction().
Sets the default reading direction for widgets where the direction has not been explicitly set by gtk_widget_set_direction().
|
Gtk.Widget | |
activate
()
:
Boolean
For widgets that can be "activated" (buttons, menu items, etc.
For widgets that can be "activated" (buttons, menu items, etc.) this function activates them. Activation is what happens when you press Enter on a widget during key navigation. If widget isn't activatable, the function returns FALSE.
|
Gtk.Widget | |
add_accelerator
(String accel_signal, AccelGroup accel_group, Number accel_key, ModifierType accel_mods, AccelFlags accel_flags)
:
none
|
Gtk.Widget | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string describing how the child should be added.
|
Gtk.Buildable | |
add_events
(Number events)
:
none
Adds the events in the bitfield events to the event mask for
Adds the events in the bitfield events to the event mask for
|
Gtk.Widget | |
add_mnemonic_label
(Widget label)
:
none
Adds a widget to the list of mnemonic labels for this widget.
Adds a widget to the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). Note the list of mnemonic labels for the widget is cleared when the widget is destroyed, so the caller must make sure to update its internal state at this point as well, by using a connection to the GtkWidget::destroy signal or a weak notifier.
|
Gtk.Widget | |
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated.
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This is done by emitting the GtkWidget::can-activate-accel signal on widget; if the signal isn't overridden by a handler or in a derived widget, then the default check is that the widget must be sensitive, and the widget and all its ancestors mapped.
|
Gtk.Widget | |
child_focus
(DirectionType direction)
:
Boolean
This function is used by custom widget implementations; if you're writing an app, you'd use gtk_widget_grab_focus() to move the focus to a particular widget, and gtk_container_set_focus_chain() to change the focus tab order.
This function is used by custom widget implementations; if you're writing an app, you'd use gtk_widget_grab_focus() to move the focus to a particular widget, and gtk_container_set_focus_chain() to change the focus tab order. So you may want to investigate those functions instead. gtk_widget_child_focus() is called by containers as the user moves around the window using keyboard shortcuts. direction indicates what kind of motion is taking place (up, down, left, right, tab forward, tab backward). gtk_widget_child_focus() emits the GtkWidget::focus signal; widgets override the default handler for this signal in order to implement appropriate focus behavior. The default ::focus handler for a widget should return TRUE if moving in direction left the focus on a focusable location inside that widget, and FALSE if moving in direction moved the focus outside the widget. If returning TRUE, widgets normally call gtk_widget_grab_focus() to place the focus accordingly; if returning FALSE, they don't modify the current focus location. This function replaces gtk_container_focus() from GTK+ 1.2. It was necessary to check that the child was visible, sensitive, and focusable before calling gtk_container_focus(). gtk_widget_child_focus() returns FALSE if the widget is not currently in a focusable state, so there's no need for those checks.
|
Gtk.Widget | |
child_notify
(String child_property)
:
none
Emits a GtkWidget::child-notify signal for the child property child_property on widget.
Emits a GtkWidget::child-notify signal for the child property child_property on widget. This is the analogue of g_object_notify() for child properties.
|
Gtk.Widget | |
class_path
()
:
Object
Same as gtk_widget_path(), but always uses the name of a widget's type, never uses a custom name set with gtk_widget_set_name().
|
Gtk.Widget | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name. GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
create_pango_context
()
:
Pango.Context
Creates a new PangoContext with the appropriate font map, font description, and base direction for drawing text for this widget.
Creates a new PangoContext with the appropriate font map, font description, and base direction for drawing text for this widget. See also gtk_widget_get_pango_context().
|
Gtk.Widget | |
create_pango_layout
(String text)
:
Pango.Layout
Creates a new PangoLayout with the appropriate font map, font description, and base direction for drawing text for this widget.
Creates a new PangoLayout with the appropriate font map, font description, and base direction for drawing text for this widget. If you keep a PangoLayout created in this way around, in order to notify the layout of changes to the base direction or font of this widget, you must call pango_layout_context_changed() in response to the GtkWidget::style-set and GtkWidget::direction-changed signals for the widget.
|
Gtk.Widget | |
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by the buildable.
This is called at the end of each custom element handled by the buildable.
|
Gtk.Buildable | |
custom_tag_start
(Builder builder, Object child, String tagname, MarkupParser parser, void* data)
:
Boolean
This is called for each unknown element under <child>.
This is called for each unknown element under <child>. if it doesn't.
|
Gtk.Buildable | |
destroy
()
:
none
Destroys a widget.
Destroys a widget. Equivalent to gtk_object_destroy(), except that you don't have to cast the widget to GtkObject. When a widget is destroyed, it will break any references it holds to other objects. If the widget is inside a container, the widget will be removed from the container. If the widget is a toplevel (derived from GtkWindow), it will be removed from the list of toplevels, and the reference GTK+ holds to it will be removed. Removing a widget from its container or the list of toplevels results in the widget being finalized, unless you've added additional references to the widget with g_object_ref(). In most cases, only toplevel widgets (windows) require explicit destruction, because when you destroy a toplevel its children will be destroyed as well.
|
Gtk.Widget | |
destroyed
(Widget widget_pointer)
:
none
This function sets *widget_pointer to NULL if widget_pointer != NULL.
This function sets *widget_pointer to NULL if widget_pointer != NULL. It's intended to be used as a callback connected to the "destroy" signal of a widget. You connect gtk_widget_destroyed() as a signal handler, and pass the address of your widget variable as user data. Then when the widget is destroyed, the variable will be set to NULL. Useful for example to avoid multiple copies of the same dialog.
|
Gtk.Widget | |
draw
(Rectangle area)
:
none
In GTK+ 1.2, this function would immediately render the region area of a widget, by invoking the virtual draw method of a widget.
In GTK+ 1.2, this function would immediately render the region area of a widget, by invoking the virtual draw method of a widget. In GTK+ 2.0, the draw method is gone, and instead gtk_widget_draw() simply invalidates the specified region of the widget, then updates the invalid region of the widget immediately. Usually you don't want to update the region immediately for performance reasons, so in general gtk_widget_queue_draw_area() is a better choice if you want to draw a region of a widget.
|
Gtk.Widget | |
ensure_style
()
:
none
Ensures that widget has a style (widget->style).
Ensures that widget has a style (widget->style). Not a very useful function; most of the time, if you want the style, the widget is realized, and realized widgets are guaranteed to have a style already.
|
Gtk.Widget | |
error_bell
()
:
none
Notifies the user about an input-related error on this widget.
Notifies the user about an input-related error on this widget. If the GtkSettings:gtk-error-bell setting is TRUE, it calls gdk_window_beep(), otherwise it does nothing. Note that the effect of gdk_window_beep() can be configured in many ways, depending on the windowing backend and the desktop environment or window manager that is used.
|
Gtk.Widget | |
Rarely-used function.
Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don't use this function; instead, use gtk_main_do_event() so the event will behave as if it were in the event queue. Don't synthesize expose events; instead, use gdk_window_invalidate_rect() to invalidate a region of the window. the event was handled)
|
Gtk.Widget | |
freeze_child_notify
()
:
none
Stops emission of GtkWidget::child-notify signals on widget.
Stops emission of GtkWidget::child-notify signals on widget. The signals are queued until gtk_widget_thaw_child_notify() is called on widget. This is the analogue of g_object_freeze_notify() for child properties.
|
Gtk.Widget | |
get_accessible
()
:
Atk.Object
Returns the accessible object that describes the widget to an assistive technology.
Returns the accessible object that describes the widget to an assistive technology. If no accessibility library is loaded (i.e. no ATK implementation library is loaded via
|
Gtk.Widget | |
get_action
()
:
Gtk.Action
Returns the GtkAction that widget is a proxy for.
Returns the GtkAction that widget is a proxy for. See also gtk_action_get_proxies(). NULL, if it is not attached to an action.
|
Gtk.Widget | |
get_allocation
()
:
Gdk.Rectangle
Retrieves the widget's allocation.
Retrieves the widget's allocation.
|
Gtk.Widget | |
get_ancestor
(Number widget_type)
:
Gtk.Widget
Gets the first ancestor of widget with type widget_type.
Gets the first ancestor of widget with type widget_type. For example,
|
Gtk.Widget | |
get_app_paintable
()
:
Boolean
Determines whether the application intends to draw on the widget in an GtkWidget::expose-event handler.
Determines whether the application intends to draw on the widget in an GtkWidget::expose-event handler. See gtk_widget_set_app_paintable()
|
Gtk.Widget | |
get_can_default
()
:
Boolean
Determines whether widget can be a default widget.
Determines whether widget can be a default widget. See gtk_widget_set_can_default().
|
Gtk.Widget | |
get_can_focus
()
:
Boolean
Determines whether widget can own the input focus.
Determines whether widget can own the input focus. See gtk_widget_set_can_focus().
|
Gtk.Widget | |
get_child_requisition
(Requisition requisition)
:
none
This function is only for use in widget implementations.
This function is only for use in widget implementations. Obtains geometry on the widget (e.g. with gtk_widget_set_size_request()), in which case it returns that geometry instead of the widget's requisition. This function differs from gtk_widget_size_request() in that it retrieves the last size request value from widget->requisition, while gtk_widget_size_request() actually calls the "size_request" method on widget to compute the size request and fill in widget->requisition, and only then returns widget->requisition. Because this function does not call the "size_request" method, it can only be used when you know that widget->requisition is up-to-date, that is, gtk_widget_size_request() has been called since the last time a resize was queued. In general, only container implementations have this information; applications should use gtk_widget_size_request().
|
Gtk.Widget | |
get_child_visible
()
:
Boolean
Gets the value set with gtk_widget_set_child_visible().
Gets the value set with gtk_widget_set_child_visible(). If you feel a need to use this function, your code probably needs reorganization. This function is only useful for container implementations and never should be called by an application.
|
Gtk.Widget | |
get_clipboard
(Atom selection)
:
Gtk.Clipboard
Returns the clipboard object for the given selection to be used with widget.
Returns the clipboard object for the given selection to be used with widget. widget must have a GdkDisplay associated with it, so must be attached to a toplevel window. clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.
|
Gtk.Widget | |
get_colormap
()
:
Gdk.Colormap
Gets the colormap that will be used to render widget.
Gets the colormap that will be used to render widget. No reference will be added to the returned colormap; it should not be unreferenced.
|
Gtk.Widget | |
get_composite_name
()
:
String
Obtains the composite name of a widget.
Obtains the composite name of a widget. a composite child. The string should be freed when it is no longer needed.
|
Gtk.Widget | |
Gtk.Object | ||
Gtk.Object | ||
get_direction
()
:
Gtk.TextDirection
Gets the reading direction for a particular widget.
Gets the reading direction for a particular widget. See gtk_widget_set_direction().
|
Gtk.Widget | |
get_display
()
:
Gdk.Display
Get the GdkDisplay for the toplevel window associated with this widget.
Get the GdkDisplay for the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a GtkWindow at the top. In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
|
Gtk.Widget | |
get_double_buffered
()
:
Boolean
Determines whether the widget is double buffered.
Determines whether the widget is double buffered. See gtk_widget_set_double_buffered()
|
Gtk.Widget | |
get_events
()
:
Number
Returns the event mask for the widget (a bitfield containing flags from the GdkEventMask enumeration).
Returns the event mask for the widget (a bitfield containing flags from the GdkEventMask enumeration). These are the events that the widget will receive.
|
Gtk.Widget | |
get_extension_events
()
:
Gdk.ExtensionMode
Retrieves the extension events the widget will receive; see gdk_input_set_extension_events().
Retrieves the extension events the widget will receive; see gdk_input_set_extension_events().
|
Gtk.Widget | |
get_has_tooltip
()
:
Boolean
Returns the current value of the has-tooltip property.
Returns the current value of the has-tooltip property. See GtkWidget:has-tooltip for more information.
|
Gtk.Widget | |
get_has_window
()
:
Boolean
Determines whether widget has a GdkWindow of its own.
Determines whether widget has a GdkWindow of its own. See gtk_widget_set_has_window().
|
Gtk.Widget | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_mapped
()
:
Boolean
Whether the widget is mapped.
Whether the widget is mapped.
|
Gtk.Widget | |
get_modifier_style
()
:
Gtk.RcStyle
Returns the current modifier style for the widget.
Returns the current modifier style for the widget. (As set by gtk_widget_modify_style().) If no style has previously set, a new GtkRcStyle will be created with all values unset, and set as the modifier style for the widget. If you make changes to this rc style, you must call gtk_widget_modify_style(), passing in the returned rc style, to make sure that your changes take effect. normally end up destroying it, because gtk_widget_modify_style() copies the passed-in style and sets the copy as the new modifier style, thus dropping any reference to the old modifier style. Add a reference to the modifier style if you want to keep it alive. owned by the widget. If you want to keep a pointer to value this around, you must add a refcount using g_object_ref().
|
Gtk.Widget | |
get_name
()
:
String
Retrieves the name of a widget.
Retrieves the name of a widget. See gtk_widget_set_name() for the significance of widget names. should not be modified or freed
|
Gtk.Widget | |
get_no_show_all
()
:
Boolean
Returns the current value of the GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() and gtk_widget_hide_all() will affect this widget.
Returns the current value of the GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() and gtk_widget_hide_all() will affect this widget.
|
Gtk.Widget | |
get_pango_context
()
:
Pango.Context
Gets a PangoContext with the appropriate font map, font description, and base direction for this widget.
Gets a PangoContext with the appropriate font map, font description, and base direction for this widget. Unlike the context returned by gtk_widget_create_pango_context(), this context is owned by the widget (it can be used until the screen for the widget changes or the widget is removed from its toplevel), and will be updated to match any changes to the widget's attributes. If you create and keep a PangoLayout using this context, you must deal with changes to the context by calling pango_layout_context_changed() on the layout in response to the GtkWidget::style-set and GtkWidget::direction-changed signals for the widget.
|
Gtk.Widget | |
get_parent
()
:
Gtk.Widget
Returns the parent container of widget.
Returns the parent container of widget.
|
Gtk.Widget | |
get_parent_window
()
:
Gdk.Window
Gets widget's parent window.
Gets widget's parent window.
|
Gtk.Widget | |
get_pointer
()
:
Object
Obtains the location of the mouse pointer in widget coordinates.
|
Gtk.Widget | |
get_realized
()
:
Boolean
Determines whether widget is realized.
Determines whether widget is realized.
|
Gtk.Widget | |
get_receives_default
()
:
Boolean
Determines whether widget is alyways treated as default widget withing its toplevel when it has the focus, even if another widget is the default.
Determines whether widget is alyways treated as default widget withing its toplevel when it has the focus, even if another widget is the default. See gtk_widget_set_receives_default(). FALSE otherwise
|
Gtk.Widget | |
get_requisition
()
:
Gtk.Requisition
Retrieves the widget's requisition.
Retrieves the widget's requisition. This function should only be used by widget implementations in order to figure whether the widget's requisition has actually changed after some internal state change (so that they can call gtk_widget_queue_resize() instead of gtk_widget_queue_draw()). Normally, gtk_widget_size_request() should be used.
|
Gtk.Widget | |
get_root_window
()
:
Gdk.Window
Get the root window where this widget is located.
Get the root window where this widget is located. This function can only be called after the widget has been added to a widget hierarchy with GtkWindow at the top. The root window is useful for such purposes as creating a popup GdkWindow associated with the window. In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
|
Gtk.Widget | |
get_screen
()
:
Gdk.Screen
Get the GdkScreen from the toplevel window associated with this widget.
Get the GdkScreen from the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a GtkWindow at the top. In general, you should only create screen specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.
|
Gtk.Widget | |
get_sensitive
()
:
Boolean
Returns the widget's sensitivity (in the sense of returning the value that has been set using gtk_widget_set_sensitive()).
Returns the widget's sensitivity (in the sense of returning the value that has been set using gtk_widget_set_sensitive()). The effective sensitivity of a widget is however determined by both its own and its parent widget's sensitivity. See gtk_widget_is_sensitive().
|
Gtk.Widget | |
get_settings
()
:
Gtk.Settings
Gets the settings object holding the settings (global property settings, RC file information, etc) used for this widget.
Gets the settings object holding the settings (global property settings, RC file information, etc) used for this widget. Note that this function can only be called when the GtkWidget is attached to a toplevel, since the settings object is specific to a particular GdkScreen.
|
Gtk.Widget | |
get_size_request
()
:
Object
Gets the size request that was explicitly set for the widget using gtk_widget_set_size_request().
Gets the size request that was explicitly set for the widget using gtk_widget_set_size_request(). A value of -1 stored in width or and the natural requisition of the widget will be used intead. See gtk_widget_set_size_request(). To get the size a widget will actually use, call gtk_widget_size_request() instead of this function.
|
Gtk.Widget | |
get_snapshot
(Rectangle clip_rect)
:
Gdk.Pixmap
Create a GdkPixmap of the contents of the widget and its children.
Create a GdkPixmap of the contents of the widget and its children. Works even if the widget is obscured. The depth and visual of the resulting pixmap is dependent on the widget being snapshot and likely differs from those of a target widget displaying the pixmap. The function gdk_pixbuf_get_from_drawable() can be used to convert the pixmap to a visual independant representation. The snapshot area used by this function is the widget's allocation plus any extra space occupied by additional windows belonging to this widget (such as the arrows of a spin button). Thus, the resulting snapshot pixmap is possibly larger than the allocation. If clip_rect is non-NULL, the resulting pixmap is shrunken to match the specified clip_rect. The (x,y) coordinates of clip_rect are interpreted widget relative. If width or height of clip_rect are 0 or negative, the width or height of the resulting pixmap will be shrunken by the respective amount. For instance a clip_rect
|
Gtk.Widget | |
get_state
()
:
Gtk.StateType
Returns the widget's state.
Returns the widget's state. See gtk_widget_set_state().
|
Gtk.Widget | |
get_style
()
:
Gtk.Style
Simply an accessor function that returns widget->style.
Simply an accessor function that returns widget->style.
|
Gtk.Widget | |
get_tooltip_markup
()
:
String
Gets the contents of the tooltip for widget.
Gets the contents of the tooltip for widget. returned string with g_free() when done.
|
Gtk.Widget | |
get_tooltip_text
()
:
String
Gets the contents of the tooltip for widget.
Gets the contents of the tooltip for widget. returned string with g_free() when done.
|
Gtk.Widget | |
get_tooltip_window
()
:
Gtk.Window
Returns the GtkWindow of the current tooltip.
Returns the GtkWindow of the current tooltip. This can be the GtkWindow created by default, or the custom tooltip window set using gtk_widget_set_tooltip_window().
|
Gtk.Widget | |
get_toplevel
()
:
Gtk.Widget
This function returns the topmost widget in the container hierarchy returned as the topmost widget.
This function returns the topmost widget in the container hierarchy returned as the topmost widget. No reference will be added to the returned widget; it should not be unreferenced. Note the difference in behavior vs. gtk_widget_get_ancestor();
|
Gtk.Widget | |
get_user_data
()
:
void*
|
Gtk.Object | |
get_visible
()
:
Boolean
Determines whether the widget is visible.
Determines whether the widget is visible. Note that this doesn't take into account whether the widget's parent is also visible or the widget is obscured in any way. See gtk_widget_set_visible().
|
Gtk.Widget | |
get_visual
()
:
Gdk.Visual
Gets the visual that will be used to render widget.
Gets the visual that will be used to render widget.
|
Gtk.Widget | |
get_window
()
:
Gdk.Window
Returns the widget's window if it is realized, NULL otherwise
Returns the widget's window if it is realized, NULL otherwise
|
Gtk.Widget | |
grab_default
()
:
none
Causes widget to become the default widget.
Causes widget to become the default widget. widget must have the GTK_CAN_DEFAULT flag set; typically you have to set this flag yourself by calling
|
Gtk.Widget | |
grab_focus
()
:
none
Causes widget to have the keyboard focus for the GtkWindow it's inside.
Causes widget to have the keyboard focus for the GtkWindow it's inside. widget must be a focusable widget, such as a GtkEntry; something like GtkFrame won't work. More precisely, it must have the GTK_CAN_FOCUS flag set. Use gtk_widget_set_can_focus() to modify that flag.
|
Gtk.Widget | |
has_default
()
:
Boolean
Determines whether widget is the current default widget within its toplevel.
Determines whether widget is the current default widget within its toplevel. See gtk_widget_set_can_default(). its toplevel, FALSE otherwise
|
Gtk.Widget | |
has_focus
()
:
Boolean
Determines if the widget has the global input focus.
Determines if the widget has the global input focus. See gtk_widget_is_focus() for the difference between having the global input focus, and only having the focus within a toplevel.
|
Gtk.Widget | |
has_grab
()
:
Boolean
Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).
Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse). See also gtk_grab_add().
|
Gtk.Widget | |
has_rc_style
()
:
Boolean
Determines if the widget style has been looked up through the rc mechanism.
Determines if the widget style has been looked up through the rc mechanism. mechanism, FALSE otherwise.
|
Gtk.Widget | |
has_screen
()
:
Boolean
Checks whether there is a GdkScreen is associated with this widget.
Checks whether there is a GdkScreen is associated with this widget. All toplevel widgets have an associated screen, and all widgets added into a hierarchy with a toplevel window at the top. with the widget.
|
Gtk.Widget | |
hide
()
:
none
Reverses the effects of gtk_widget_show(), causing the widget to be hidden (invisible to the user).
Reverses the effects of gtk_widget_show(), causing the widget to be hidden (invisible to the user).
|
Gtk.Widget | |
hide_all
()
:
none
Recursively hides a widget and any child widgets.
Recursively hides a widget and any child widgets.
|
Gtk.Widget | |
hide_on_delete
()
:
Boolean
Utility function; intended to be connected to the GtkWidget::delete-event signal on a GtkWindow.
Utility function; intended to be connected to the GtkWidget::delete-event signal on a GtkWindow. The function calls gtk_widget_hide() on its argument, then returns TRUE. If connected to ::delete-event, the result is that clicking the close button for a window (on the window frame, top right corner usually) will hide but not destroy the window. By default, GTK+ destroys windows when ::delete-event is received.
|
Gtk.Widget | |
Sets an input shape for this widget's GDK window.
Sets an input shape for this widget's GDK window. This allows for windows which react to mouse click in a nonrectangular region, see gdk_window_input_shape_combine_mask() for more information.
|
Gtk.Widget | |
Computes the intersection of a widget's area and area, storing the intersection in intersection, and returns TRUE if there was an intersection.
Computes the intersection of a widget's area and area, storing the intersection in intersection, and returns TRUE if there was an intersection. intersection may be NULL if you're only interested in whether there was an intersection.
|
Gtk.Widget | |
Determines whether widget is somewhere inside ancestor, possibly with intermediate containers.
Determines whether widget is somewhere inside ancestor, possibly with intermediate containers. grandchild, great grandchild, etc.
|
Gtk.Widget | |
is_composited
()
:
Boolean
Whether widget can rely on having its alpha channel drawn correctly.
Whether widget can rely on having its alpha channel drawn correctly. On X11 this function returns whether a compositing manager is running for widget's screen. Please note that the semantics of this call will change in the future if used on a widget that has a composited window in its hierarchy (as set by gdk_window_set_composited()). channel being drawn correctly.
|
Gtk.Widget | |
is_drawable
()
:
Boolean
Determines whether widget can be drawn to.
Determines whether widget can be drawn to. A widget can be drawn to if it is mapped and visible.
|
Gtk.Widget | |
is_focus
()
:
Boolean
Determines if the widget is the focus widget within its toplevel.
Determines if the widget is the focus widget within its toplevel. (This does not mean that the HAS_FOCUS flag is necessarily set; HAS_FOCUS will only be set if the toplevel widget additionally has the global input focus.)
|
Gtk.Widget | |
is_sensitive
()
:
Boolean
Returns the widget's effective sensitivity, which means it is sensitive itself and also its parent widget is sensntive
Returns the widget's effective sensitivity, which means it is sensitive itself and also its parent widget is sensntive
|
Gtk.Widget | |
is_toplevel
()
:
Boolean
Determines whether widget is a toplevel widget.
Determines whether widget is a toplevel widget. Currently only GtkWindow and GtkInvisible are toplevel widgets. Toplevel widgets have no parent widget.
|
Gtk.Widget | |
keynav_failed
(DirectionType direction)
:
Boolean
This function should be called whenever keyboard navigation within a single widget hits a boundary.
This function should be called whenever keyboard navigation within a single widget hits a boundary. The function emits the GtkWidget::keynav-failed signal on the widget and its return value should be interpreted in a way similar to the return value of gtk_widget_child_focus(): When TRUE is returned, stay in the widget, the failed keyboard navigation is Ok and/or there is nowhere we can/should move the focus to. When FALSE is returned, the caller should continue with keyboard navigation outside the widget, e.g. by calling gtk_widget_child_focus() on the widget's toplevel. The default ::keynav-failed handler returns TRUE for GTK_DIR_TAB_FORWARD and GTK_DIR_TAB_BACKWARD. For the other values of GtkDirectionType, it looks at the GtkSettings:gtk-keynav-cursor-only setting and returns FALSE if the setting is TRUE. This way the entire user interface becomes cursor-navigatable on input devices such as mobile phones which only have cursor keys but no tab key. Whenever the default handler returns TRUE, it also calls gtk_widget_error_bell() to notify the user of the failed keyboard navigation. A use case for providing an own implementation of ::keynav-failed (either by connecting to it or by overriding it) would be a row of GtkEntry widgets where the user should be able to navigate the entire row with the cursor keys, as e.g. known from user interfaces that require entering license keys. if the emitting widget should try to handle the keyboard navigation attempt in its parent container(s).
|
Gtk.Widget | |
list_mnemonic_labels
()
:
Array
Returns a newly allocated list of the widgets, normally labels, for which this widget is a the target of a mnemonic (see for example, gtk_label_set_mnemonic_widget()).
Returns a newly allocated list of the widgets, normally labels, for which this widget is a the target of a mnemonic (see for example, gtk_label_set_mnemonic_widget()). The widgets in the list are not individually referenced. If you want to iterate through the list and perform actions involving callbacks that might destroy the widgets, you
|
Gtk.Widget | |
map
()
:
none
This function is only for use in widget implementations.
This function is only for use in widget implementations. Causes a widget to be mapped if it isn't already.
|
Gtk.Widget | |
Gtk.Widget | ||
Sets the base color for a widget in a particular state.
Sets the base color for a widget in a particular state. All other style values are left untouched. The base color is the background color used along with the text color (see gtk_widget_modify_text()) for widgets such as GtkEntry and GtkTextView. See also gtk_widget_modify_style(). Note that "no window" widgets (which have the GTK_NO_WINDOW flag set) draw on their parent container's window and thus may not draw any background themselves. This is the case for e.g. GtkLabel. To modify the background of such widgets, you have to set the base color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a GtkEventBox widget and setting the base color on that.
|
Gtk.Widget | |
Sets the background color for a widget in a particular state.
Sets the background color for a widget in a particular state. All other style values are left untouched. See also gtk_widget_modify_style(). Note that "no window" widgets (which have the GTK_NO_WINDOW flag set) draw on their parent container's window and thus may not draw any background themselves. This is the case for e.g. GtkLabel. To modify the background of such widgets, you have to set the background color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a GtkEventBox widget and setting the background color on that.
|
Gtk.Widget | |
Sets the cursor color to use in a widget, overriding the GtkWidget:cursor-color and GtkWidget:secondary-cursor-color style properties.
Sets the cursor color to use in a widget, overriding the GtkWidget:cursor-color and GtkWidget:secondary-cursor-color style properties. All other style values are left untouched. See also gtk_widget_modify_style().
|
Gtk.Widget | |
Sets the foreground color for a widget in a particular state.
Sets the foreground color for a widget in a particular state. All other style values are left untouched. See also gtk_widget_modify_style().
|
Gtk.Widget | |
modify_font
(FontDescription font_desc)
:
none
Sets the font to use for a widget.
Sets the font to use for a widget. All other style values are left untouched. See also gtk_widget_modify_style().
|
Gtk.Widget | |
modify_style
(RcStyle style)
:
none
Modifies style values on the widget.
Modifies style values on the widget. Modifications made using this technique take precedence over style values set via an RC file, however, they will be overriden if a style is explicitely set on the widget using gtk_widget_set_style(). The GtkRcStyle structure is designed so each field can either be set or unset, so it is possible, using this function, to modify some style values and leave the others unchanged. Note that modifications made with this function are not cumulative with previous calls to gtk_widget_modify_style() or with such functions as gtk_widget_modify_fg(). If you wish to retain previous values, you must first call gtk_widget_get_modifier_style(), make your modifications to the returned style, then call gtk_widget_modify_style() with that style. On the other hand, if you first call gtk_widget_modify_style(), subsequent calls to such functions gtk_widget_modify_fg() will have a cumulative effect with the initial modifications.
|
Gtk.Widget | |
Sets the text color for a widget in a particular state.
Sets the text color for a widget in a particular state. All other style values are left untouched. The text color is the foreground color used along with the base color (see gtk_widget_modify_base()) for widgets such as GtkEntry and GtkTextView. See also gtk_widget_modify_style().
|
Gtk.Widget | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a GtkBuilder UI definition.
Called when the builder finishes the parsing of a GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
path
()
:
Object
Obtains the full path to widget.
Obtains the full path to widget. The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from gtk_widget_get_name(). Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. "GtkButton") or can be set to an application-specific value with gtk_widget_set_name(). By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. path_reversed_p fills in the path in reverse order, i.e. starting with widget's name instead of starting with the name of widget's outermost ancestor.
|
Gtk.Widget | |
queue_clear
()
:
none
This function does the same as gtk_widget_queue_draw().
This function does the same as gtk_widget_queue_draw().
|
Gtk.Widget | |
This function is no longer different from gtk_widget_queue_draw_area(), though it once was.
This function is no longer different from gtk_widget_queue_draw_area(), though it once was. Now it just calls gtk_widget_queue_draw_area(). Originally gtk_widget_queue_clear_area() would force a redraw of the background for GTK_NO_WINDOW widgets, and gtk_widget_queue_draw_area() would not. Now both functions ensure the background will be redrawn.
|
Gtk.Widget | |
queue_draw
()
:
none
Equivalent to calling gtk_widget_queue_draw_area() for the entire area of a widget.
Equivalent to calling gtk_widget_queue_draw_area() for the entire area of a widget.
|
Gtk.Widget | |
Invalidates the rectangular area of widget defined by x, y, widget's window and all its child windows.
Invalidates the rectangular area of widget defined by x, y, widget's window and all its child windows. Once the main loop becomes idle (after the current batch of events has been processed, roughly), the window will receive expose events for the union of all regions that have been invalidated. Normally you would only use this function in widget implementations. You might also use it, or gdk_window_invalidate_rect() directly, to schedule a redraw of a GtkDrawingArea or some portion thereof. Frequently you can just call gdk_window_invalidate_rect() or gdk_window_invalidate_region() instead of this function. Those functions will invalidate only a single window, instead of the widget and all its children. The advantage of adding to the invalidated region compared to simply drawing immediately is efficiency; using an invalid region ensures that you only have to redraw one time.
|
Gtk.Widget | |
queue_resize
()
:
none
This function is only for use in widget implementations.
This function is only for use in widget implementations. Flags a widget to have its size renegotiated; should be called when a widget for some reason has a new size request. For example, when you change the text in a GtkLabel, GtkLabel queues a resize to ensure there's enough space for the new text.
|
Gtk.Widget | |
queue_resize_no_redraw
()
:
none
This function works like gtk_widget_queue_resize(), except that the widget is not invalidated.
This function works like gtk_widget_queue_resize(), except that the widget is not invalidated.
|
Gtk.Widget | |
realize
()
:
none
Creates the GDK (windowing system) resources associated with a widget.
Creates the GDK (windowing system) resources associated with a widget. For example, widget->window will be created when a widget is realized. Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically. Realizing a widget requires all the widget's parent widgets to be realized; calling gtk_widget_realize() realizes the widget's parents in addition to when you realize it, bad things will happen. This function is primarily used in widget implementations, and isn't very useful otherwise. Many times when you think you might need it, a better approach is to connect to a signal that will be called after the widget is realized automatically, such as GtkWidget::expose-event. Or simply g_signal_connect () to the GtkWidget::realize signal.
|
Gtk.Widget | |
ref_accessible
()
:
Atk.Object
Gets a reference to an object's AtkObject implementation, if the object implements AtkObjectIface
Gets a reference to an object's AtkObject implementation, if the object implements AtkObjectIface
|
Atk.ImplementorIface | |
region_intersect
(Region region)
:
Gdk.Region
Computes the intersection of a widget's area and region, returning the intersection.
Computes the intersection of a widget's area and region, returning the intersection. The result may be empty, use gdk_region_empty() to check.
|
Gtk.Widget | |
Removes an accelerator from widget, previously installed with gtk_widget_add_accelerator().
Removes an accelerator from widget, previously installed with gtk_widget_add_accelerator().
|
Gtk.Widget | |
remove_data
(String key)
:
none
|
Gtk.Object | |
remove_data_by_id
(Number data_id)
:
none
|
Gtk.Object | |
remove_mnemonic_label
(Widget label)
:
none
Removes a widget from the list of mnemonic labels for this widget.
Removes a widget from the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). The widget must have previously been added to the list with gtk_widget_add_mnemonic_label().
|
Gtk.Widget | |
remove_no_notify
(String key)
:
none
|
Gtk.Object | |
remove_no_notify_by_id
(Number key_id)
:
none
|
Gtk.Object | |
A convenience function that uses the theme engine and RC file settings for widget to look up stock_id and render it to a pixbuf.
A convenience function that uses the theme engine and RC file settings for widget to look up stock_id and render it to a pixbuf. stock_id should be a stock icon ID such as GTK_STOCK_OPEN or GTK_STOCK_OK. size should be a size such as GTK_ICON_SIZE_MENU. detail should be a string that identifies the widget or code doing the rendering, so that theme engines can special-case rendering for that widget or code. The pixels in the returned GdkPixbuf are shared with the rest of the application and should not be modified. The pixbuf should be freed after use with g_object_unref().
|
Gtk.Widget | |
reparent
(Widget new_parent)
:
none
Moves a widget from one GtkContainer to another, handling reference count issues to avoid destroying the widget.
Moves a widget from one GtkContainer to another, handling reference count issues to avoid destroying the widget.
|
Gtk.Widget | |
reset_rc_styles
()
:
none
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.
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. This function is not useful for applications.
|
Gtk.Widget | |
reset_shapes
()
:
none
Recursively resets the shape on this widget and its descendants.
Recursively resets the shape on this widget and its descendants.
|
Gtk.Widget | |
Very rarely-used function.
Very rarely-used function. This function is used to emit an expose event signals on a widget. This function is not normally used directly. The only time it is used is when propagating an expose event to a child NO_WINDOW widget, and that is normally done using gtk_container_propagate_expose(). If you want to force an area of a window to be redrawn, use gdk_window_invalidate_rect() or gdk_window_invalidate_region(). To cause the redraw to be done immediately, follow that call with a call to gdk_window_process_updates(). the event was handled)
|
Gtk.Widget | |
Sends the focus change event to widget This function is not meant to be used by applications.
Sends the focus change event to widget This function is not meant to be used by applications. The only time it should be used is when it is necessary for a GtkWidget to assign focus to a widget that is semantically owned by the first widget even though it's not a direct child - for instance, a search entry in a floating window similar to the quick search in GtkTreeView. An example of its usage is: |[ GdkEvent *fevent = gdk_event_new (GDK_FOCUS_CHANGE); fevent->focus_change.type = GDK_FOCUS_CHANGE; fevent->focus_change.in = TRUE; fevent->focus_change.window = gtk_widget_get_window (widget); if (fevent->focus_change.window != NULL) g_object_ref (fevent->focus_change.window); gtk_widget_send_focus_change (widget, fevent); gdk_event_free (event); ]| if the event was handled, and FALSE otherwise
|
Gtk.Widget | |
set_accel_path
(String accel_path, AccelGroup accel_group)
:
none
Given an accelerator group, accel_group, and an accelerator path, key binding that is defined for accel_path is pressed, widget will be activated.
Given an accelerator group, accel_group, and an accelerator path, key binding that is defined for accel_path is pressed, widget will be activated. This removes any accelerators (for any accelerator group) installed by previous calls to gtk_widget_set_accel_path(). Associating accelerators with paths allows them to be modified by the user and the modifications to be saved for future use. (See gtk_accel_map_save().) This function is a low level function that would most likely be used by a menu creation system like GtkUIManager. If you use GtkUIManager, setting up accelerator paths will be done automatically. Even when you you aren't using GtkUIManager, if you only want to set up accelerators on menu items gtk_menu_item_set_accel_path() provides a somewhat more convenient interface. Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
|
Gtk.Widget | |
set_allocation
(Rectangle allocation)
:
none
Sets the widget's allocation.
Sets the widget's allocation. This should not be used directly, but from within a widget's size_allocate method.
|
Gtk.Widget | |
set_app_paintable
(Boolean app_paintable)
:
none
Sets whether the application intends to draw on the widget in an GtkWidget::expose-event handler.
Sets whether the application intends to draw on the widget in an GtkWidget::expose-event handler. This is a hint to the widget and does not affect the behavior of the GTK+ core; many widgets ignore this flag entirely. For widgets that do pay attention to the flag, such as GtkEventBox and GtkWindow, the effect is to suppress default themed drawing of the widget's background. (Children of the widget will still be drawn.) The application is then entirely responsible for drawing the widget background. Note that the background is still drawn when the widget is mapped. If this is not suitable (e.g. because you want to make a transparent window using an RGBA visual), you can work around this by doing: |[ gtk_widget_realize (window); gdk_window_set_back_pixmap (window->window, NULL, FALSE); gtk_widget_show (window); ]|
|
Gtk.Widget | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
set_can_default
(Boolean can_default)
:
none
Specifies whether widget can be a default widget.
Specifies whether widget can be a default widget. See gtk_widget_grab_default() for details about the meaning of "default".
|
Gtk.Widget | |
set_can_focus
(Boolean can_focus)
:
none
Specifies whether widget can own the input focus.
Specifies whether widget can own the input focus. See gtk_widget_grab_focus() for actually setting the input focus on a widget.
|
Gtk.Widget | |
set_child_visible
(Boolean is_visible)
:
none
Sets whether widget should be mapped along with its when its parent is mapped and widget has been shown with gtk_widget_show().
Sets whether widget should be mapped along with its when its parent is mapped and widget has been shown with gtk_widget_show(). The child visibility can be set for widget before it is added to a container with gtk_widget_set_parent(), to avoid mapping children unnecessary before immediately unmapping them. However it will be reset to its default state of TRUE when the widget is removed from a container. Note that changing the child visibility of a widget does not queue a resize on the widget. Most of the time, the size of a widget is computed from all visible children, whether or not they are mapped. If this is not the case, the container can queue a resize itself. This function is only useful for container implementations and never should be called by an application.
|
Gtk.Widget | |
set_colormap
(Colormap colormap)
:
none
Sets the colormap for the widget to the given value.
Sets the colormap for the widget to the given value. Widget must not have been previously realized. This probably should only be used from an
|
Gtk.Widget | |
set_composite_name
(String name)
:
none
Sets a widgets composite name.
Sets a widgets composite name. The widget must be a composite child of its parent; see gtk_widget_push_composite_child().
|
Gtk.Widget | |
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
set_direction
(TextDirection dir)
:
none
Sets the reading direction on a particular widget.
Sets the reading direction on a particular widget. This direction controls the primary direction for widgets containing text, and also the direction in which the children of a container are packed. The ability to set the direction is present in order so that correct localization into languages with right-to-left reading directions can be done. Generally, applications will let the default reading direction present, except for containers where the containers are arranged in an order that is explicitely visual rather than logical (such as buttons for text justification). If the direction is set to GTK_TEXT_DIR_NONE, then the value set by gtk_widget_set_default_direction() will be used.
|
Gtk.Widget | |
set_double_buffered
(Boolean double_buffered)
:
none
Widgets are double buffered by default; you can use this function to turn off the buffering.
Widgets are double buffered by default; you can use this function to turn off the buffering. "Double buffered" simply means that gdk_window_begin_paint_region() and gdk_window_end_paint() are called automatically around expose events sent to the widget. gdk_window_begin_paint() diverts all drawing to a widget's window to an offscreen buffer, and gdk_window_end_paint() draws the buffer to the screen. The result is that users see the window update in one smooth step, and don't see individual graphics primitives being rendered. In very simple terms, double buffered widgets don't flicker, so you would only use this function to turn off double buffering if you had special needs and really knew what you were doing. expose events, since even the clearing to the background color or pixmap will not happen automatically (as it is done in gdk_window_begin_paint()).
|
Gtk.Widget | |
set_events
(Number events)
:
none
Sets the event mask (see GdkEventMask) for a widget.
Sets the event mask (see GdkEventMask) for a widget. The event mask determines which events a widget will receive. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget's functionality, so be careful. This function must be called while a widget is unrealized. Consider gtk_widget_add_events() for widgets that are already realized, or if you want to preserve the existing event mask. This function can't be used with GTK_NO_WINDOW widgets; to get events on those widgets, place them inside a GtkEventBox and receive events on the event box.
|
Gtk.Widget | |
set_extension_events
(ExtensionMode mode)
:
none
Sets the extension events mask to mode.
Sets the extension events mask to mode. See GdkExtensionMode and gdk_input_set_extension_events().
|
Gtk.Widget | |
set_has_tooltip
(Boolean has_tooltip)
:
none
Sets the has-tooltip property on widget to has_tooltip.
Sets the has-tooltip property on widget to has_tooltip. See GtkWidget:has-tooltip for more information.
|
Gtk.Widget | |
set_has_window
(Boolean has_window)
:
none
Specifies whether widget has a GdkWindow of its own.
Specifies whether widget has a GdkWindow of its own. Note that all realized widgets have a non-NULL "window" pointer (gtk_widget_get_window() never returns a NULL window when a widget is realized), but for many of them it's actually the GdkWindow of one of its parent widgets. Widgets that create a window for themselves in GtkWidget::realize() however must announce this by calling this function with has_window = TRUE. This function should only be called by widget implementations, and they should call it in their init() function.
|
Gtk.Widget | |
set_mapped
(Boolean mapped)
:
none
Marks the widget as being realized.
Marks the widget as being realized. This function should only ever be called in a derived widget's "map" or "unmap" implementation.
|
Gtk.Widget | |
set_name
(String name)
:
none
Widgets can be named, which allows you to refer to them from a gtkrc file.
Widgets can be named, which allows you to refer to them from a gtkrc file. You can apply a style to widgets with a particular name in the gtkrc file. See the documentation for gtkrc files (on the same page as the docs for GtkRcStyle). Note that widget names are separated by periods in paths (see gtk_widget_path()), so names with embedded periods may cause confusion.
|
Gtk.Widget | |
set_no_show_all
(Boolean no_show_all)
:
none
Sets the GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() and gtk_widget_hide_all() will affect this widget.
Sets the GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() and gtk_widget_hide_all() will affect this widget. This is mostly for use in constructing widget hierarchies with externally controlled visibility, see GtkUIManager.
|
Gtk.Widget | |
set_parent
(Widget parent)
:
none
This function is useful only when implementing subclasses of GtkContainer.
This function is useful only when implementing subclasses of GtkContainer. Sets the container as the parent of widget, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite function is gtk_widget_unparent().
|
Gtk.Widget | |
set_parent_window
(Window parent_window)
:
none
Sets a non default parent window for widget.
Sets a non default parent window for widget.
|
Gtk.Widget | |
set_realized
(Boolean realized)
:
none
Marks the widget as being realized.
Marks the widget as being realized. This function should only ever be called in a derived widget's "realize" or "unrealize" implementation.
|
Gtk.Widget | |
set_receives_default
(Boolean receives_default)
:
none
Specifies whether widget will be treated as the default widget within its toplevel when it has the focus, even if another widget is the default.
Specifies whether widget will be treated as the default widget within its toplevel when it has the focus, even if another widget is the default. See gtk_widget_grab_default() for details about the meaning of "default".
|
Gtk.Widget | |
set_redraw_on_allocate
(Boolean redraw_on_allocate)
:
none
Sets whether the entire widget is queued for drawing when its size allocation changes.
Sets whether the entire widget is queued for drawing when its size allocation changes. By default, this setting is TRUE and the entire widget is redrawn on every size change. If your widget leaves the upper left unchanged when made bigger, turning this setting off will improve performance. Note that for NO_WINDOW widgets setting this flag to FALSE turns its position changes; this is to allow containers that don't draw anything to avoid excess invalidations. If you set this flag on a NO_WINDOW widget that
|
Gtk.Widget | |
For widgets that support scrolling, sets the scroll adjustments and returns TRUE.
For widgets that support scrolling, sets the scroll adjustments and returns TRUE. For widgets that don't support scrolling, does nothing and returns FALSE. Widgets that don't support scrolling can be scrolled by placing them in a GtkViewport, which does support scrolling.
|
Gtk.Widget | |
set_sensitive
(Boolean sensitive)
:
none
Sets the sensitivity of a widget.
Sets the sensitivity of a widget. A widget is sensitive if the user can interact with it. Insensitive widgets are "grayed out" and the user can't interact with them. Insensitive widgets are known as "inactive", "disabled", or "ghosted" in some other toolkits.
|
Gtk.Widget | |
Sets the minimum size of a widget; that is, the widget's size request will be width by height.
Sets the minimum size of a widget; that is, the widget's size request will be width by height. You can use this function to force a widget to be either larger or smaller than it normally would be. In most cases, gtk_window_set_default_size() is a better choice for toplevel windows than this function; setting the default size will still allow users to shrink the window. Setting the size request will force them to leave the window at least as large as the size request. When dealing with window sizes, gtk_window_set_geometry_hints() can be a useful function as well. Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can all change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct. The size request of a widget is the smallest size a widget can accept while still functioning well and drawing itself correctly. However in some strange cases a widget may be allocated less than its requested size, and in many cases a widget may be allocated more space than it requested. If the size request in a given direction is -1 (unset), then the "natural" size request of the widget will be used instead. Widgets can't actually be allocated a size less than 1 by 1, but you can pass 0,0 to this function to mean "as small as possible."
|
Gtk.Widget | |
set_state
(StateType state)
:
none
This function is for use in widget implementations.
This function is for use in widget implementations. Sets the state of a widget (insensitive, prelighted, etc.) Usually you should set the state using wrapper functions such as gtk_widget_set_sensitive().
|
Gtk.Widget | |
set_style
(Style style)
:
none
Sets the GtkStyle for a widget (widget->style).
Sets the GtkStyle for a widget (widget->style). You probably don't want to use this function; it interacts badly with themes, because themes work by replacing the GtkStyle. Instead, use gtk_widget_modify_style().
|
Gtk.Widget | |
set_tooltip_markup
(String markup)
:
none
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language.
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language. This function will take care of setting GtkWidget:has-tooltip to TRUE and of the default handler for the GtkWidget::query-tooltip signal. See also the GtkWidget:tooltip-markup property and gtk_tooltip_set_markup().
|
Gtk.Widget | |
set_tooltip_text
(String text)
:
none
Sets text as the contents of the tooltip.
Sets text as the contents of the tooltip. This function will take care of setting GtkWidget:has-tooltip to TRUE and of the default handler for the GtkWidget::query-tooltip signal. See also the GtkWidget:tooltip-text property and gtk_tooltip_set_text().
|
Gtk.Widget | |
set_tooltip_window
(Window custom_window)
:
none
Replaces the default, usually yellow, window used for displaying tooltips with custom_window.
Replaces the default, usually yellow, window used for displaying tooltips with custom_window. GTK+ will take care of showing and hiding custom_window at the right moment, to behave likewise as the default tooltip window. If custom_window is NULL, the default tooltip window will be used. If the custom window should have the default theming it needs to have the name "gtk-tooltip", see gtk_widget_set_name().
|
Gtk.Widget | |
Sets the position of a widget.
Sets the position of a widget. The funny "u" in the name comes from the "user position" hint specified by the X Window System, and exists for legacy reasons. This function doesn't work if a widget is inside a container; it's only really useful on GtkWindow. Don't use this function to center dialogs over the main application window; most window managers will do the centering on your behalf if you call gtk_window_set_transient_for(), and it's really not possible to get the centering to work correctly in all cases from application code. But if you insist, use gtk_window_set_position() to set GTK_WIN_POS_CENTER_ON_PARENT, don't do the centering manually. Note that although x and y can be individually unset, the position is not honoured unless both x and y are set.
|
Gtk.Widget | |
set_user_data
(void* data)
:
none
|
Gtk.Object | |
Sets the minimum size of a widget; that is, the widget's size request will be width by height.
Sets the minimum size of a widget; that is, the widget's size request will be width by height. You can use this function to force a widget to be either larger or smaller than it is. The strange "usize" name dates from the early days of GTK+, and derives from X Window System terminology. In many cases, gtk_window_set_default_size() is a better choice for toplevel windows than this function; setting the default size will still allow users to shrink the window. Setting the usize will force them to leave the window at least as large as the usize. When dealing with window sizes, gtk_window_set_geometry_hints() can be a useful function as well. Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can all change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct.
|
Gtk.Widget | |
set_visible
(Boolean visible)
:
none
Sets the visibility state of widget.
Sets the visibility state of widget. Note that setting this to TRUE doesn't mean the widget is actually viewable, see gtk_widget_get_visible(). This function simply calls gtk_widget_show() or gtk_widget_hide() but is nicer to use when the visibility of the widget depends on some condition.
|
Gtk.Widget | |
set_window
(Window window)
:
none
Sets a widget's window.
Sets a widget's window. This function should only be used in a widget's GtkWidget::realize() implementation. The window passed is usually either new window created with gdk_window_new(), or the window of its parent widget as returned by gtk_widget_get_parent_window(). Widgets must indicate whether they will create their own GdkWindow by calling gtk_widget_set_has_window(). This is usually done in the widget's init() function.
|
Gtk.Widget | |
Sets a shape for this widget's GDK window.
Sets a shape for this widget's GDK window. This allows for transparent windows etc., see gdk_window_shape_combine_mask() for more information.
|
Gtk.Widget | |
show
()
:
none
Flags a widget to be displayed.
Flags a widget to be displayed. Any widget that isn't shown will not appear on the screen. If you want to show all the widgets in a container, it's easier to call gtk_widget_show_all() on the container, instead of individually showing the widgets. Remember that you have to show the containers containing a widget, in addition to the widget itself, before it will appear onscreen. When a toplevel container is shown, it is immediately realized and mapped; other shown widgets are realized and mapped when their toplevel container is realized and mapped.
|
Gtk.Widget | |
show_all
()
:
none
Recursively shows a widget, and any child widgets (if the widget is a container).
Recursively shows a widget, and any child widgets (if the widget is a container).
|
Gtk.Widget | |
show_now
()
:
none
Shows a widget.
Shows a widget. If the widget is an unmapped toplevel widget (i.e. a GtkWindow that has not yet been shown), enter the main loop and wait for the window to actually be mapped. Be careful; because the main loop is running, anything can happen during this function.
|
Gtk.Widget | |
sink
()
:
none
|
Gtk.Object | |
size_allocate
(Rectangle allocation)
:
none
This function is only used by GtkContainer subclasses, to assign a size and position to their child widgets.
This function is only used by GtkContainer subclasses, to assign a size and position to their child widgets.
|
Gtk.Widget | |
size_request
(Requisition requisition)
:
none
This function is typically used when implementing a GtkContainer subclass.
This function is typically used when implementing a GtkContainer subclass. Obtains the preferred size of a widget. The container uses this information to arrange its child widgets and decide what size allocations to give them with gtk_widget_size_allocate(). You can also call this function from an application, with some caveats. Most notably, getting a size request requires the widget to be associated with a screen, because font information may be needed. Multihead-aware applications should keep this in mind. Also remember that the size request is not necessarily the size a widget will actually be allocated. See also gtk_widget_get_child_requisition().
|
Gtk.Widget | |
style_attach
()
:
none
This function attaches the widget's GtkStyle to the widget's GdkWindow.
This function attaches the widget's GtkStyle to the widget's GdkWindow. It is a replacement for
|
Gtk.Widget | |
Gets the value of a style property of widget.
Gets the value of a style property of widget.
|
Gtk.Widget | |
thaw_child_notify
()
:
none
Reverts the effect of a previous call to gtk_widget_freeze_child_notify().
Reverts the effect of a previous call to gtk_widget_freeze_child_notify(). This causes all queued GtkWidget::child-notify signals on widget to be emitted.
|
Gtk.Widget | |
Translate coordinates relative to src_widget's allocation to coordinates relative to dest_widget's allocations.
Translate coordinates relative to src_widget's allocation to coordinates relative to dest_widget's allocations. In order to perform this operation, both widgets must be realized, and must share a common toplevel. was no common ancestor. In this case, nothing is stored in *dest_x and *dest_y. Otherwise TRUE.
|
Gtk.Widget | |
trigger_tooltip_query
()
:
none
Triggers a tooltip query on the display where the toplevel of widget is located.
Triggers a tooltip query on the display where the toplevel of widget is located. See gtk_tooltip_trigger_tooltip_query() for more information.
|
Gtk.Widget | |
unmap
()
:
none
This function is only for use in widget implementations.
This function is only for use in widget implementations. Causes a widget to be unmapped if it's currently mapped.
|
Gtk.Widget | |
unparent
()
:
none
This function is only for use in widget implementations.
This function is only for use in widget implementations. Should be called by implementations of the remove method on GtkContainer, to dissociate a child from the container.
|
Gtk.Widget | |
unrealize
()
:
none
This function is only useful in widget implementations.
This function is only useful in widget implementations. Causes a widget to be unrealized (frees all GDK resources associated with the widget, such as widget->window).
|
Gtk.Widget |
Event | Defined By | |
---|---|---|
accel_closures_changed (Widget self)
:
none
|
Gtk.Widget | |
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_BUTTON_PRESS_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::button-release-event signal will be emitted when a button (typically from a mouse) is released.
The ::button-release-event signal will be emitted when a button (typically from a mouse) is released. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_BUTTON_RELEASE_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated.
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This signal is present to allow applications and derived widgets to override the default GtkWidget handling for determining whether an accelerator can be activated.
|
Gtk.Widget | |
The ::child-notify signal is emitted for each child property that has changed on an object.
The ::child-notify signal is emitted for each child property that has changed on an object. The signal's detail holds the property name.
|
Gtk.Widget | |
The ::client-event will be emitted when the widget's window receives a message (via a ClientMessage event) from another application.
The ::client-event will be emitted when the widget's window receives a message (via a ClientMessage event) from another application. the event. FALSE to propagate the event further.
|
Gtk.Widget | |
composited_changed (Widget self)
:
none
The ::composited-changed signal is emitted when the composited status of widgets screen changes.
The ::composited-changed signal is emitted when the composited status of widgets screen changes. See gdk_screen_is_composited().
|
Gtk.Widget | |
|
Gtk.Widget | |
Emitted when a redirected window belonging to widget gets drawn into.
Emitted when a redirected window belonging to widget gets drawn into. The region/area members of the event shows what area of the redirected drawable was drawn into. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::delete-event signal is emitted if a user requests that a toplevel window is closed.
The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Connecting gtk_widget_hide_on_delete() to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it. FALSE to propagate the event further.
|
Gtk.Widget | |
destroy (Object self)
:
none
|
Gtk.Object | |
The ::destroy-event signal is emitted when a GdkWindow is destroyed.
The ::destroy-event signal is emitted when a GdkWindow is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows. FALSE to propagate the event further.
|
Gtk.Widget | |
direction_changed (Widget self, TextDirection previous_direction)
:
none
The ::direction-changed signal is emitted when the text direction of a widget changes.
The ::direction-changed signal is emitted when the text direction of a widget changes.
|
Gtk.Widget | |
drag_begin (Widget self, DragContext drag_context)
:
none
The ::drag-begin signal is emitted on the drag source when a drag is started.
The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with gtk_drag_source_set_icon(). Note that some widgets set up a drag icon in the default handler of this signal, so you may have to use g_signal_connect_after() to override what the default handler did.
|
Gtk.Widget | |
drag_data_delete (Widget self, DragContext drag_context)
:
none
The ::drag-data-delete signal is emitted on the drag source when a drag with the action GDK_ACTION_MOVE is successfully completed.
The ::drag-data-delete signal is emitted on the drag source when a drag with the action GDK_ACTION_MOVE is successfully completed. The signal handler is responsible for deleting the data that has been dropped. What "delete" means depends on the context of the drag operation.
|
Gtk.Widget | |
drag_data_get (Widget self, DragContext drag_context, SelectionData data, Number info, Number time)
:
none
The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged.
The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info. See gtk_selection_data_set() and gtk_selection_data_set_text().
|
Gtk.Widget | |
drag_data_received (Widget self, DragContext drag_context, Number x, Number y, SelectionData data, Number info, Number time)
:
none
The ::drag-data-received signal is emitted on the drop site when the dragged data has been received.
The ::drag-data-received signal is emitted on the drop site when the dragged data has been received. If the data was received in order to determine whether the drop will be accepted, the handler is expected to call gdk_drag_status() and
|
Gtk.Widget | |
The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget.
The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler must ensure that gtk_drag_finish() is called to let the source know that the drop is done. The call to gtk_drag_finish() can be done either directly or in a GtkWidget::drag-data-received handler which gets triggered by calling gtk_drag_get_data() to receive the data for one or more of the supported targets.
|
Gtk.Widget | |
drag_end (Widget self, DragContext drag_context)
:
none
The ::drag-end signal is emitted on the drag source when a drag is finished.
The ::drag-end signal is emitted on the drag source when a drag is finished. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-begin.
|
Gtk.Widget | |
The ::drag-failed signal is emitted on the drag source when a drag has failed.
The ::drag-failed signal is emitted on the drag source when a drag has failed. The signal handler may hook custom code to handle a failed DND operation based on the type of error, it returns TRUE is the failure has been already handled (not showing the default "drag operation failed" animation), otherwise it returns FALSE.
|
Gtk.Widget | |
The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget.
The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-motion, e.g. undo highlighting with gtk_drag_unhighlight()
|
Gtk.Widget | |
The drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag.
The drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler is responsible for providing the necessary information for displaying feedback to the user, by calling gdk_drag_status(). If the decision whether the drop will be accepted or rejected can't be made based solely on the cursor position and the type of the data, the handler may inspect the dragged data by calling gtk_drag_get_data() and defer the gdk_drag_status() call to the GtkWidget::drag-data-received handler. Note that you cannot not pass GTK_DEST_DEFAULT_DROP, GTK_DEST_DEFAULT_MOTION or GTK_DEST_DEFAULT_ALL to gtk_drag_dest_set() when using the drag-motion signal that way. Also note that there is no drag-enter signal. The drag receiver has to keep track of whether he has received any drag-motion signals since the last GtkWidget::drag-leave and if not, treat the drag-motion signal as an "enter" signal. Upon an "enter", the handler will typically highlight the drop site with gtk_drag_highlight(). |[ static void drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { GdkAtom target; PrivateData *private_data = GET_PRIVATE_DATA (widget); if (!private_data->drag_highlight) { private_data->drag_highlight = 1; gtk_drag_highlight (widget); } target = gtk_drag_dest_find_target (widget, context, NULL); if (target == GDK_NONE) gdk_drag_status (context, 0, time); else { private_data->pending_status = context->suggested_action; gtk_drag_get_data (widget, context, target, time); } return TRUE; } static void drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time) { PrivateData *private_data = GET_PRIVATE_DATA (widget); if (private_data->suggested_action) { private_data->suggested_action = 0; /* We are getting this data due to a request in drag_motion, * rather than due to a request in drag_drop, so we are just * supposed to call gdk_drag_status (), not actually paste in * the data. */ str = gtk_selection_data_get_text (selection_data); if (!data_is_acceptable (str)) gdk_drag_status (context, 0, time); else gdk_drag_status (context, private_data->suggested_action, time); } else { /* accept the drop */ } } ]|
|
Gtk.Widget | |
The ::enter-notify-event will be emitted when the pointer enters the widget's window.
The ::enter-notify-event will be emitted when the pointer enters the widget's window. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_ENTER_NOTIFY_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
The GTK+ main loop will emit three signals for each GDK event delivered signal that matches the type of event delivered (e.g.
The GTK+ main loop will emit three signals for each GDK event delivered signal that matches the type of event delivered (e.g. GtkWidget::key-press-event) and finally a generic GtkWidget::event-after signal. and to cancel the emission of the second specific ::event signal. FALSE to propagate the event further and to allow the emission of the second signal. The ::event-after signal is emitted regardless of the return value.
|
Gtk.Widget | |
After the emission of the GtkWidget::event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.
After the emission of the GtkWidget::event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.
|
Gtk.Widget | |
The ::expose-event signal is emitted when an area of a previously obscured GdkWindow is made visible and needs to be redrawn.
The ::expose-event signal is emitted when an area of a previously obscured GdkWindow is made visible and needs to be redrawn. GTK_NO_WINDOW widgets will get a synthesized event from their parent widget. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_EXPOSURE_MASK mask. FALSE to propagate the event further.
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
Emitted when a pointer or keyboard grab on a window belonging to widget gets broken.
Emitted when a pointer or keyboard grab on a window belonging to widget gets broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again. the event. FALSE to propagate the event further.
|
Gtk.Widget | |
grab_focus (Widget self)
:
none
|
Gtk.Widget | |
The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.
The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed. A widget is shadowed by a gtk_grab_add() when the topmost grab widget in the grab stack of its window group is not its ancestor.
|
Gtk.Widget | |
hide (Widget self)
:
none
|
Gtk.Widget | |
The ::hierarchy-changed signal is emitted when the anchored state of a widget changes.
The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is
|
Gtk.Widget | |
The ::key-press-event signal is emitted when a key is pressed.
The ::key-press-event signal is emitted when a key is pressed. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_KEY_PRESS_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::key-release-event signal is emitted when a key is pressed.
The ::key-release-event signal is emitted when a key is pressed. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_KEY_RELEASE_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
Gets emitted if keyboard navigation fails.
Gets emitted if keyboard navigation fails. See gtk_widget_keynav_failed() for details. if the emitting widget should try to handle the keyboard navigation attempt in its parent container(s).
|
Gtk.Widget | |
The ::leave-notify-event will be emitted when the pointer leaves the widget's window.
The ::leave-notify-event will be emitted when the pointer leaves the widget's window. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_LEAVE_NOTIFY_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
map (Widget self)
:
none
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
The ::motion-notify-event signal is emitted when the pointer moves over the widget's GdkWindow.
The ::motion-notify-event signal is emitted when the pointer moves over the widget's GdkWindow. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_POINTER_MOTION_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
move_focus (Widget self, DirectionType direction)
:
none
|
Gtk.Widget | |
The ::no-expose-event will be emitted when the widget's window is drawn as a copy of another GdkDrawable (with gdk_draw_drawable() or gdk_window_copy_area()) which was completely unobscured.
The ::no-expose-event will be emitted when the widget's window is drawn as a copy of another GdkDrawable (with gdk_draw_drawable() or gdk_window_copy_area()) which was completely unobscured. If the source window was partially obscured GdkEventExpose events will be generated for those areas. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::parent-set signal is emitted when a new parent has been set on a widget.
The ::parent-set signal is emitted when a new parent has been set on a widget.
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
Emitted when GtkWidget:has-tooltip is TRUE and the GtkSettings:gtk-tooltip-timeout has expired with the cursor hovering "above" widget; or emitted when widget got focus in keyboard mode.
Emitted when GtkWidget:has-tooltip is TRUE and the GtkSettings:gtk-tooltip-timeout has expired with the cursor hovering "above" widget; or emitted when widget got focus in keyboard mode. Using the given coordinates, the signal handler should determine whether a tooltip should be shown for widget. If this is the case TRUE should be returned, FALSE otherwise. Note that if should not be used. The signal handler is free to manipulate tooltip with the therefore destined function calls.
|
Gtk.Widget | |
realize (Widget self)
:
none
|
Gtk.Widget | |
The ::screen-changed signal gets emitted when the screen of a widget has changed.
The ::screen-changed signal gets emitted when the screen of a widget has changed.
|
Gtk.Widget | |
The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed.
The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_BUTTON_PRESS_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
show (Widget self)
:
none
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
size_request (Widget self, Requisition requisition)
:
none
|
Gtk.Widget | |
The ::state-changed signal is emitted when the widget state changes.
The ::state-changed signal is emitted when the widget state changes. See gtk_widget_get_state().
|
Gtk.Widget | |
The ::style-set signal is emitted when a new style has been set on a widget.
The ::style-set signal is emitted when a new style has been set on a widget. Note that style-modifying functions like gtk_widget_modify_base() also cause this signal to be emitted.
|
Gtk.Widget | |
unmap (Widget self)
:
none
|
Gtk.Widget | |
|
Gtk.Widget | |
unrealize (Widget self)
:
none
|
Gtk.Widget | |
The ::visibility-notify-event will be emitted when the widget's window is obscured or unobscured.
The ::visibility-notify-event will be emitted when the widget's window is obscured or unobscured. To receive this signal the GdkWindow associated to the widget needs to enable the GDK_VISIBILITY_NOTIFY_MASK mask. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes.
The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes. To receive this signal the GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows. event. FALSE to propagate the event further.
|
Gtk.Widget |
Class / Namespace | Method / Signal / Properties |
---|---|
Epiphany
Method |
|
Epiphany
Method |
|
Epiphany
Method |
Epiphany.ephy_state_add_window
(Widget window, String name, Number default_width, Number default_heigth, Boolean maximize, EphyStateWindowFlags flags)
:
none
|
Epiphany.EggEditableToolbar
Method |
get_selected
()
:
Gtk.Widget
|
Epiphany.EggEditableToolbar
Method |
set_selected
(Widget widget)
:
none
|
Epiphany.EphyDialog
Method |
Create a new Epiphany.EphyDialog
|
Epiphany.EphyDialog
Method |
set_parent
(Widget parent)
:
none
Sets parent as the parent-window of dialog.
|
Epiphany.EphyDialog
Method |
get_parent
()
:
Gtk.Widget
Gets dialog's parent-window.
|
Epiphany.EphyDialog
Method |
get_control
(String property_id)
:
Gtk.Widget
Gets the internal widget corresponding to property_id from dialog.
|
Epiphany.EphyEmbed
Method |
destroyed on page transitions Adds a GtkWidget to the top of the embed.
|
Epiphany.EphyEmbed
Method |
remove_top_widget
(Widget widget)
:
none
Removes an GtkWidget from the top of the embed.
|
Epiphany.EphyEmbedContainer
Property |
active_child : Gtk.Widget
|
Epiphany.EphyEmbedSingle
Signal |
The ::new_window signal is emitted when a new window needs to be opened.
|
Epiphany.EphyEmbedSingle
Method |
Opens a new window, as if it were opened in parent using the Javascript "_blank", "features");.
|
Epiphany.EphyLink
Signal |
|
Epiphany.EphyNotebook
Signal |
tab_close_request
(EphyNotebook self, Widget object)
:
none
|
Epiphany.EphyShell
Method |
get_bookmarks_editor
()
:
Gtk.Widget
|
Epiphany.EphyShell
Method |
get_history_window
()
:
Gtk.Widget
|
Epiphany.EphyStatusbar
Method |
get_security_frame
()
:
Gtk.Widget
|
Epiphany.EphyStatusbar
Method |
add_widget
(Widget widget)
:
none
Adds the widget to the statusbar.
|
Epiphany.EphyStatusbar
Method |
remove_widget
(Widget widget)
:
none
Removes widget, which must have been added to statusbar using ephy_statusbar_add_widget ().
|
Epiphany.EphyWebView
Signal |
new_window
(EphyWebView self, Widget new_view)
:
none
The ::new-window signal is emitted after a new window has been opened by the view.
|
Epiphany.EphyWindow
Method |
get_toolbar
()
:
Gtk.Widget
Returns this window's toolbar as an EggEditableToolbar.
|
Epiphany.EphyWindow
Method |
get_notebook
()
:
Gtk.Widget
Returns the GtkNotebook used by this window.
|
Epiphany.EphyWindow
Method |
get_find_toolbar
()
:
Gtk.Widget
Returns the EphyFindToolbar used by this window.
|
Epiphany.EphyWindow
Method |
get_statusbar
()
:
Gtk.Widget
Returns this window's statusbar as an EphyStatusbar.
|
Gdaui.BasicForm
Method |
get_entry_widget
(Holder holder)
:
Gtk.Widget
|
Gdaui.BasicForm
Method |
get_label_widget
(Holder holder)
:
Gtk.Widget
|
Gdaui.BasicForm
Method |
get_place_holder
(String placeholder_id)
:
Gtk.Widget
|
Gdaui.Cloud
Method |
create_filter_widget
()
:
Gtk.Widget
|
Gdaui.EntryShell
Method |
pack_entry
(Widget main_widget)
:
none
|
Gladeui
Method |
Gladeui.util_add_selection
(Widget widget)
:
none
Add visual selection to this GtkWidget
|
Gladeui
Method |
Gladeui.util_check_and_warn_scrollable
(Widget parent, WidgetAdaptor child_adaptor, Widget parent_widget)
:
Boolean
|
Gladeui
Method |
Gladeui.util_file_dialog_new
(String title, Project project, Window parent, UtilFileDialogType action)
:
Gtk.Widget
|
Gladeui
Method |
Creates an image displaying the devhelp icon.
|
Gladeui
Method |
|
Gladeui
Method |
|
Gladeui
Method |
Gladeui.util_remove_selection
(Widget widget)
:
none
Remove visual selection from this GtkWidget
|
Gladeui.App
Method |
Gladeui.App.set_window
(Widget window)
:
none
|
Gladeui.App
Method |
Gladeui.App.get_window
()
:
Gtk.Widget
|
Gladeui.App
Method |
Gladeui.App.get_clipboard_view
()
:
Gtk.Widget
|
Gladeui.App
Method |
Gladeui.App.undo_button_new
()
:
Gtk.Widget
|
Gladeui.App
Method |
Gladeui.App.redo_button_new
()
:
Gtk.Widget
|
Gladeui.BaseEditor
Method |
This convenience function create a new dialog window and packs editor in it.
|
Gladeui.Editor
Method |
This convenience function creates a new dialog window to edit widget specifically.
|
Gladeui.EditorProperty
Method |
Gladeui.EditorProperty.show_i18n_dialog
(Widget parent, ProjectFormat fmt, Array text, Array context, Array comment, Object out_values)
:
Boolean
Runs a dialog and updates the provided values.
|
Gladeui.EditorProperty
Method |
Gladeui.EditorProperty.show_resource_dialog
(Project project, Widget parent, Array filename)
:
Boolean
|
Gladeui.EditorProperty
Method |
Gladeui.EditorProperty.show_object_dialog
(Project project, String title, Widget parent, Number object_type, Widget exception, Widget object)
:
Boolean
|
Gladeui.GObjectAdaptor
Method |
This delagate function is used to create dynamically customized submenus.
|
Gladeui.Project
Method |
undo_items
()
:
Gtk.Widget
Creates a menu of the undo items in the project stack
|
Gladeui.Project
Method |
redo_items
()
:
Gtk.Widget
Creates a menu of the undo items in the project stack
|
GooCanvas.CanvasWidget
Property |
widget : Gtk.Widget
|
Gtk
Method |
Gtk.drag_begin
(Widget widget, TargetList targets, DragAction actions, Number button, Event event)
:
Gdk.DragContext
Initiates a drag on the source side.
|
Gtk
Method |
Gtk.drag_check_threshold
(Widget widget, Number start_x, Number start_y, Number current_x, Number current_y)
:
Boolean
Checks to see if a mouse drag starting at (start_x, start_y) and ending at (current_x, current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.
|
Gtk
Method |
Gtk.drag_dest_add_image_targets
(Widget widget)
:
none
Add the image targets supported by GtkSelection to the target list of the drag destination.
|
Gtk
Method |
Gtk.drag_dest_add_text_targets
(Widget widget)
:
none
Add the text targets supported by GtkSelection to the target list of the drag destination.
|
Gtk
Method |
Gtk.drag_dest_add_uri_targets
(Widget widget)
:
none
Add the URI targets supported by GtkSelection to the target list of the drag destination.
|
Gtk
Method |
Looks for a match between context->targets and the returning GDK_NONE.
|
Gtk
Method |
Returns the list of targets this widget can accept from drag-and-drop.
|
Gtk
Method |
Returns whether the widget has been configured to always emit ::drag-motion signals.
|
Gtk
Method |
Gtk.drag_dest_set
(Widget widget, DestDefaults flags, Array targets, Number n_targets, DragAction actions)
:
none
Sets a widget as a potential drop destination, and adds default behaviors.
|
Gtk
Method |
Gtk.drag_dest_set_proxy
(Widget widget, Window proxy_window, DragProtocol protocol, Boolean use_coordinates)
:
none
|
Gtk
Method |
Sets the target types that this widget can accept from drag-and-drop.
|
Gtk
Method |
Tells the widget to emit ::drag-motion and ::drag-leave events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag.
|
Gtk
Method |
Gtk.drag_dest_unset
(Widget widget)
:
none
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
Gtk.drag_highlight
(Widget widget)
:
none
|
Gtk
Method |
Changes the icon for a widget to a given widget.
|
Gtk
Method |
Gtk.drag_source_add_image_targets
(Widget widget)
:
none
Add the writable image targets supported by GtkSelection to the target list of the drag source.
|
Gtk
Method |
Gtk.drag_source_add_text_targets
(Widget widget)
:
none
Add the text targets supported by GtkSelection to the target list of the drag source.
|
Gtk
Method |
Gtk.drag_source_add_uri_targets
(Widget widget)
:
none
Add the URI targets supported by GtkSelection to the target list of the drag source.
|
Gtk
Method |
Gets the list of targets this widget can provide for drag-and-drop.
|
Gtk
Method |
Gtk.drag_source_set
(Widget widget, ModifierType start_button_mask, Array targets, Number n_targets, DragAction actions)
:
none
Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget.
|
Gtk
Method |
Sets the icon that will be used for drags from a particular widget from a pixmap/mask.
|
Gtk
Method |
Sets the icon that will be used for drags from a particular source to a themed icon.
|
Gtk
Method |
Sets the icon that will be used for drags from a particular widget from a GdkPixbuf.
|
Gtk
Method |
Sets the icon that will be used for drags from a particular source to a stock icon.
|
Gtk
Method |
Changes the target types that this widget offers for drag-and-drop.
|
Gtk
Method |
Gtk.drag_source_unset
(Widget widget)
:
none
|
Gtk
Method |
Gtk.drag_unhighlight
(Widget widget)
:
none
|
Gtk
Method |
Gtk.draw_insertion_cursor
(Widget widget, Drawable drawable, Rectangle area, Rectangle location, Boolean is_primary, TextDirection direction, Boolean draw_arrow)
:
none
Draws a text caret on drawable at location.
|
Gtk
Method |
If event is NULL or the event was not associated with any widget, returns NULL, otherwise returns the widget that received the event originally.
|
Gtk
Method |
Gtk.grab_add
(Widget widget)
:
none
|
Gtk
Method |
Gtk.grab_get_current
()
:
Gtk.Widget
|
Gtk
Method |
Gtk.grab_remove
(Widget widget)
:
none
|
Gtk
Method |
Gtk.paint_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_expander
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
|
Gtk
Method |
Gtk.paint_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
|
Gtk
Method |
Gtk.paint_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_focus
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk
Method |
Gtk.paint_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk
Method |
Gtk.paint_hline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk
Method |
Gtk.paint_layout
(Style style, Window window, StateType state_type, Boolean use_text, Rectangle area, Widget widget, String detail, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
|
Gtk
Method |
Gtk.paint_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Point points, Number n_points, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
|
Gtk
Method |
Gtk.paint_resize_grip
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk
Method |
Gtk.paint_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk
Method |
Gtk.paint_spinner
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number step, Number x, Number y, Number width, Number height)
:
none
Draws a spinner on window using the given parameters.
|
Gtk
Method |
Gtk.paint_string
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
|
Gtk
Method |
Gtk.paint_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
|
Gtk
Method |
Gtk.paint_vline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk
Method |
Sends an event to a widget, propagating the event to parent widgets if the event remains unhandled.
|
Gtk
Method |
Finds all matching RC styles for a given widget, composites them together, and then creates a GtkStyle representing the composite appearance.
|
Gtk
Method |
Appends a specified target to the list of supported targets for a given widget and selection.
|
Gtk
Method |
Gtk.selection_add_targets
(Widget widget, Atom selection, TargetEntry targets, Number ntargets)
:
none
Prepends a table of targets to the list of supported targets for a given widget and selection.
|
Gtk
Method |
The default handler for the GtkWidget::selection-clear-event signal.
|
Gtk
Method |
Remove all targets registered for the given selection for the widget.
|
Gtk
Method |
Requests the contents of a selection.
|
Gtk
Method |
Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
|
Gtk
Method |
Gtk.selection_owner_set_for_display
(Display display, Widget widget, Atom selection, Number time_)
:
Boolean
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
|
Gtk
Method |
Gtk.selection_remove_all
(Widget widget)
:
none
Removes all handlers and unsets ownership of all selections for a widget.
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk
Method |
|
Gtk.AccelLabel
Property |
accel_widget : Gtk.Widget
|
Gtk.AccelLabel
Method |
get_accel_widget
()
:
Gtk.Widget
Fetches the widget monitored by this accelerator label.
|
Gtk.AccelLabel
Method |
set_accel_widget
(Widget accel_widget)
:
none
Sets the widget to be monitored by this accelerator label.
|
Gtk.Accessible
Method |
get_widget
()
:
Gtk.Widget
Gets the GtkWidget corresponding to the GtkAccessible.
|
Gtk.Action
Method |
create_icon
(Number icon_size)
:
Gtk.Widget
This function is intended for use by action implementations to create icons displayed in the proxy widgets.
|
Gtk.Action
Method |
create_menu_item
()
:
Gtk.Widget
Creates a menu item widget that proxies for the given action.
|
Gtk.Action
Method |
create_tool_item
()
:
Gtk.Widget
Creates a toolbar item widget that proxies for the given action.
|
Gtk.Action
Method |
create_menu
()
:
Gtk.Widget
If action provides a GtkMenu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu.
|
Gtk.Action
Method |
connect_proxy
(Widget proxy)
:
none
Connects a widget to an action object as a proxy.
|
Gtk.Action
Method |
disconnect_proxy
(Widget proxy)
:
none
Disconnects a proxy widget from an action.
|
Gtk.Action
Method |
block_activate_from
(Widget proxy)
:
none
Disables calls to the gtk_action_activate() function by signals on the given proxy widget.
|
Gtk.Action
Method |
unblock_activate_from
(Widget proxy)
:
none
Re-enables calls to the gtk_action_activate() function by signals on the given proxy widget.
|
Gtk.ActionGroup
Signal |
The ::connect-proxy signal is emitted after connecting a proxy to an action in the group.
|
Gtk.ActionGroup
Signal |
The ::disconnect-proxy signal is emitted after disconnecting a proxy from an action in the group.
|
Gtk.Assistant
Signal |
The ::prepare signal is emitted when a new page is set as the assistant's current page, before making the new page visible.
|
Gtk.Assistant
Method |
get_nth_page
(Number page_num)
:
Gtk.Widget
Returns the child widget contained in page number page_num.
|
Gtk.Assistant
Method |
Prepends a page to the assistant.
|
Gtk.Assistant
Method |
Appends a page to the assistant.
|
Gtk.Assistant
Method |
Inserts a page in the assistant at a given position.
|
Gtk.Assistant
Method |
set_page_type
(Widget page, AssistantPageType type)
:
none
Sets the page type for page.
|
Gtk.Assistant
Method |
get_page_type
(Widget page)
:
Gtk.AssistantPageType
Gets the page type of page.
|
Gtk.Assistant
Method |
Sets a title for page.
|
Gtk.Assistant
Method |
Gets the title for page.
|
Gtk.Assistant
Method |
Sets a header image for page.
|
Gtk.Assistant
Method |
get_page_header_image
(Widget page)
:
GdkPixbuf.Pixbuf
Gets the header image for page.
|
Gtk.Assistant
Method |
Sets a header image for page.
|
Gtk.Assistant
Method |
get_page_side_image
(Widget page)
:
GdkPixbuf.Pixbuf
Gets the header image for page.
|
Gtk.Assistant
Method |
Sets whether page contents are complete.
|
Gtk.Assistant
Method |
Gets whether page is complete.
|
Gtk.Assistant
Method |
add_action_widget
(Widget child)
:
none
Adds a widget to the action area of a GtkAssistant.
|
Gtk.Assistant
Method |
remove_action_widget
(Widget child)
:
none
Removes a widget from the action area of a GtkAssistant.
|
Gtk.Bin
Method |
get_child
()
:
Gtk.Widget
Gets the child of the GtkBin, or NULL if the bin contains no child widget.
|
Gtk.Box
Method |
Adds child to box, packed with reference to the start of box.
|
Gtk.Box
Method |
Adds child to box, packed with reference to the end of box.
|
Gtk.Box
Method |
pack_start_defaults
(Widget widget)
:
none
Adds widget to box, packed with reference to the start of box.
|
Gtk.Box
Method |
pack_end_defaults
(Widget widget)
:
none
Adds widget to box, packed with reference to the end of box.
|
Gtk.Box
Method |
Moves child to a new position in the list of box children.
|
Gtk.Box
Method |
query_child_packing
(Widget child, Boolean expand, Boolean fill, Number padding, PackType pack_type)
:
Object
Obtains information about how child is packed into box.
|
Gtk.Box
Method |
set_child_packing
(Widget child, Boolean expand, Boolean fill, Number padding, PackType pack_type)
:
none
Sets the way child is packed into box.
|
Gtk.Button
Property |
image : Gtk.Widget
|
Gtk.Button
Method |
set_image
(Widget image)
:
none
Set the image of button to the given widget.
|
Gtk.Button
Method |
get_image
()
:
Gtk.Widget
Gets the widget that is currenty set as the image of button.
|
Gtk.ButtonBox
Method |
Returns whether child should appear in a secondary group of children.
|
Gtk.ButtonBox
Method |
|
Gtk.CList
Method |
|
Gtk.CList
Method |
get_column_widget
(Number column)
:
Gtk.Widget
|
Gtk.CellRenderer
Method |
Obtains the width and height needed to render the cell.
|
Gtk.CellRenderer
Method |
render
(Window window, Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags)
:
none
Invokes the virtual render function of the GtkCellRenderer.
|
Gtk.CellRenderer
Method |
activate
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Boolean
Passes an activate event to the cell renderer for possible processing.
|
Gtk.CellRenderer
Method |
start_editing
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Gtk.CellEditable
Passes an activate event to the cell renderer for possible processing.
|
Gtk.ColorSelectionDialog
Property |
cancel_button : Gtk.Widget
read only
|
Gtk.ColorSelectionDialog
Property |
color_selection : Gtk.Widget
read only
|
Gtk.ColorSelectionDialog
Property |
help_button : Gtk.Widget
read only
|
Gtk.ColorSelectionDialog
Property |
ok_button : Gtk.Widget
read only
|
Gtk.ColorSelectionDialog
Method |
get_color_selection
()
:
Gtk.Widget
Retrieves the GtkColorSelection widget embedded in the dialog.
|
Gtk.Container
Property |
child : Gtk.Widget
|
Gtk.Container
Signal |
|
Gtk.Container
Signal |
|
Gtk.Container
Signal |
|
Gtk.Container
Method |
add
(Widget widget)
:
none
Adds widget to container.
|
Gtk.Container
Method |
remove
(Widget widget)
:
none
Removes widget from container.
|
Gtk.Container
Method |
propagate_expose
(Widget child, EventExpose event)
:
none
When a container receives an expose event, it must send synthetic expose events to all children that don't have their own GdkWindows.
|
Gtk.Container
Method |
set_focus_child
(Widget child)
:
none
Sets, or unsets if child is NULL, the focused child of container.
|
Gtk.Container
Method |
get_focus_child
()
:
Gtk.Widget
Returns the current focus child widget inside container.
|
Gtk.Container
Method |
Sets a child property for child and container.
|
Gtk.Container
Method |
Gets the value of a child property for child and container.
|
Gtk.Dialog
Method |
Adds an activatable widget to the action area of a GtkDialog, connecting a signal handler that will emit the GtkDialog::response signal on the dialog when the widget is activated.
|
Gtk.Dialog
Method |
Adds a button with the given text (or a stock button, if button_text is a stock ID) and sets things up so that clicking the button will emit the GtkDialog::response signal with the given response_id.
|
Gtk.Dialog
Method |
get_widget_for_response
(Number response_id)
:
Gtk.Widget
Gets the widget button that uses the given response ID in the action area of a dialog.
|
Gtk.Dialog
Method |
Gets the response id of a widget in the action area of a dialog.
|
Gtk.Dialog
Method |
get_action_area
()
:
Gtk.Widget
Returns the action area of dialog.
|
Gtk.Dialog
Method |
get_content_area
()
:
Gtk.Widget
Returns the content area of dialog.
|
Gtk.EntryCompletion
Method |
get_entry
()
:
Gtk.Widget
Gets the entry completion has been attached to.
|
Gtk.Expander
Property |
label_widget : Gtk.Widget
|
Gtk.Expander
Method |
set_label_widget
(Widget label_widget)
:
none
Set the label widget for the expander.
|
Gtk.Expander
Method |
get_label_widget
()
:
Gtk.Widget
Retrieves the label widget for the frame.
|
Gtk.FileChooser
Property |
extra_widget : Gtk.Widget
|
Gtk.FileChooser
Property |
preview_widget : Gtk.Widget
|
Gtk.FileChooser
Method |
set_preview_widget
(Widget preview_widget)
:
none
Sets an application-supplied widget to use to display a custom preview of the currently selected file.
|
Gtk.FileChooser
Method |
get_preview_widget
()
:
Gtk.Widget
Gets the current preview widget; see gtk_file_chooser_set_preview_widget().
|
Gtk.FileChooser
Method |
set_extra_widget
(Widget extra_widget)
:
none
Sets an application-supplied widget to provide extra options to the user.
|
Gtk.FileChooser
Method |
get_extra_widget
()
:
Gtk.Widget
Gets the current preview widget; see gtk_file_chooser_set_extra_widget().
|
Gtk.FileChooserButton
Method |
Create a new Gtk.FileChooserButton
|
Gtk.Fixed
Method |
|
Gtk.Fixed
Method |
|
Gtk.FontSelection
Method |
get_family_list
()
:
Gtk.Widget
This returns the GtkTreeView that lists font families, for example, 'Sans', 'Serif', etc.
|
Gtk.FontSelection
Method |
get_face_list
()
:
Gtk.Widget
This returns the GtkTreeView which lists all styles available for the selected font.
|
Gtk.FontSelection
Method |
get_size_entry
()
:
Gtk.Widget
This returns the GtkEntry used to allow the user to edit the font number manually instead of selecting it from the list of font sizes.
|
Gtk.FontSelection
Method |
get_size_list
()
:
Gtk.Widget
This returns the GtkTreeeView used to list font sizes.
|
Gtk.FontSelection
Method |
get_preview_entry
()
:
Gtk.Widget
This returns the GtkEntry used to display the font as a preview.
|
Gtk.FontSelectionDialog
Method |
get_ok_button
()
:
Gtk.Widget
Gets the 'OK' button.
|
Gtk.FontSelectionDialog
Method |
get_apply_button
()
:
Gtk.Widget
Obtains a button.
|
Gtk.FontSelectionDialog
Method |
get_cancel_button
()
:
Gtk.Widget
Gets the 'Cancel' button.
|
Gtk.Frame
Property |
label_widget : Gtk.Widget
|
Gtk.Frame
Method |
set_label_widget
(Widget label_widget)
:
none
Sets the label widget for the frame.
|
Gtk.Frame
Method |
get_label_widget
()
:
Gtk.Widget
Retrieves the label widget for the frame.
|
Gtk.HandleBox
Signal |
|
Gtk.HandleBox
Signal |
|
Gtk.IconSet
Method |
render_icon
(Style style, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders an icon using gtk_style_render_icon().
|
Gtk.ImageMenuItem
Property |
image : Gtk.Widget
|
Gtk.ImageMenuItem
Method |
set_image
(Widget image)
:
none
|
Gtk.ImageMenuItem
Method |
get_image
()
:
Gtk.Widget
Gets the widget that is currently set as the image of image_menu_item.
|
Gtk.InfoBar
Method |
get_action_area
()
:
Gtk.Widget
Returns the action area of info_bar.
|
Gtk.InfoBar
Method |
get_content_area
()
:
Gtk.Widget
Returns the content area of info_bar.
|
Gtk.InfoBar
Method |
Add an activatable widget to the action area of a GtkInfoBar, connecting a signal handler that will emit the GtkInfoBar::response signal on the message area when the widget is activated.
|
Gtk.InfoBar
Method |
Adds a button with the given text (or a stock button, if button_text is a stock ID) and sets things up so that clicking the button will emit the "response" signal with the given response_id.
|
Gtk.ItemFactory
Method |
Gtk.ItemFactory.add_foreign
(Widget accel_widget, String full_path, AccelGroup accel_group, Number keyval, ModifierType modifiers)
:
none
Installs an accelerator for accel_widget in accel_group, that causes the ::activate signal to be emitted if the accelerator is activated.
|
Gtk.ItemFactory
Method |
Obtains the item factory from which a widget was created.
|
Gtk.ItemFactory
Method |
If widget has been created by an item factory, returns the full path to it.
|
Gtk.ItemFactory
Method |
Obtains the popup_data which was passed to gtk_item_factory_popup_with_data().
|
Gtk.ItemFactory
Method |
get_item
(String path)
:
Gtk.Widget
|
Gtk.ItemFactory
Method |
get_widget
(String path)
:
Gtk.Widget
Obtains the widget which corresponds to path.
|
Gtk.ItemFactory
Method |
get_widget_by_action
(Number action)
:
Gtk.Widget
Obtains the widget which was constructed from the GtkItemFactoryEntry with the given action.
|
Gtk.ItemFactory
Method |
get_item_by_action
(Number action)
:
Gtk.Widget
Obtains the menu item which was constructed from the first GtkItemFactoryEntry with the given action.
|
Gtk.Label
Property |
mnemonic_widget : Gtk.Widget
|
Gtk.Label
Method |
set_mnemonic_widget
(Widget widget)
:
none
If the label has been set so that it has an mnemonic key (using i.e.
|
Gtk.Label
Method |
get_mnemonic_widget
()
:
Gtk.Widget
Retrieves the target of the mnemonic (keyboard shortcut) of this label.
|
Gtk.Layout
Method |
Adds child_widget to layout, at position (x,y).
|
Gtk.Layout
Method |
Moves a current child of layout to a new position.
|
Gtk.List
Signal |
|
Gtk.List
Signal |
|
Gtk.List
Method |
select_child
(Widget child)
:
none
|
Gtk.List
Method |
unselect_child
(Widget child)
:
none
|
Gtk.List
Method |
|
Gtk.List
Method |
toggle_row
(Widget item)
:
none
|
Gtk.Menu
Property |
attach_widget : Gtk.Widget
The widget the menu is attached to.
|
Gtk.Menu
Method |
Returns a list of the menus which are attached to this widget.
|
Gtk.Menu
Method |
popup
(Widget parent_menu_shell, Widget parent_menu_item, Function func, void* data, Number button, Number activate_time)
:
none
Displays a menu and makes it available for selection.
|
Gtk.Menu
Method |
get_active
()
:
Gtk.Widget
|
Gtk.Menu
Method |
|
Gtk.Menu
Method |
get_attach_widget
()
:
Gtk.Widget
|
Gtk.Menu
Method |
|
Gtk.Menu
Method |
attach
(Widget child, Number left_attach, Number right_attach, Number top_attach, Number bottom_attach)
:
none
Adds a new GtkMenuItem to a (table) menu.
|
Gtk.MenuItem
Method |
set_submenu
(Widget submenu)
:
none
Sets or replaces the menu item's submenu, or removes it when a NULL submenu is passed.
|
Gtk.MenuItem
Method |
get_submenu
()
:
Gtk.Widget
Gets the submenu underneath this menu item, if any.
|
Gtk.MenuShell
Method |
append
(Widget child)
:
none
|
Gtk.MenuShell
Method |
prepend
(Widget child)
:
none
|
Gtk.MenuShell
Method |
|
Gtk.MenuShell
Method |
select_item
(Widget menu_item)
:
none
|
Gtk.MenuShell
Method |
|
Gtk.MenuToolButton
Method |
Create a new Gtk.MenuToolButton
|
Gtk.MenuToolButton
Method |
set_menu
(Widget menu)
:
none
Sets the GtkMenu that is popped up when the user clicks on the arrow.
|
Gtk.MenuToolButton
Method |
get_menu
()
:
Gtk.Widget
Gets the GtkMenu associated with GtkMenuToolButton.
|
Gtk.MessageDialog
Property |
image : Gtk.Widget
The image for this dialog.
|
Gtk.MessageDialog
Method |
set_image
(Widget image)
:
none
Sets the dialog's image to image.
|
Gtk.MessageDialog
Method |
get_image
()
:
Gtk.Widget
Gets the dialog's image.
|
Gtk.Notebook
Signal |
The ::create-window signal is emitted when a detachable tab is dropped on the root window.
|
Gtk.Notebook
Signal |
the ::page-added signal is emitted in the notebook right after a page is added to the notebook.
|
Gtk.Notebook
Signal |
the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook.
|
Gtk.Notebook
Signal |
the ::page-reordered signal is emitted in the notebook right after a page has been reordered.
|
Gtk.Notebook
Method |
Appends a page to notebook.
|
Gtk.Notebook
Method |
Appends a page to notebook, specifying the widget to use as the label in the popup menu.
|
Gtk.Notebook
Method |
Prepends a page to notebook.
|
Gtk.Notebook
Method |
Prepends a page to notebook, specifying the widget to use as the label in the popup menu.
|
Gtk.Notebook
Method |
Insert a page into notebook at the given position.
|
Gtk.Notebook
Method |
Insert a page into notebook at the given position, specifying the widget to use as the label in the popup menu.
|
Gtk.Notebook
Method |
get_nth_page
(Number page_num)
:
Gtk.Widget
Returns the child widget contained in page number page_num.
|
Gtk.Notebook
Method |
Finds the index of the page which contains the given child widget.
|
Gtk.Notebook
Method |
get_tab_label
(Widget child)
:
Gtk.Widget
Returns the tab label widget for the page child.
|
Gtk.Notebook
Method |
Changes the tab label for child.
|
Gtk.Notebook
Method |
Creates a new label and sets it as the tab label for the page containing child.
|
Gtk.Notebook
Method |
Retrieves the text of the tab label for the page containing tab label widget is not a GtkLabel.
|
Gtk.Notebook
Method |
get_menu_label
(Widget child)
:
Gtk.Widget
Retrieves the menu label widget of the page containing child.
|
Gtk.Notebook
Method |
Changes the menu label for the page containing child.
|
Gtk.Notebook
Method |
Creates a new label and sets it as the menu label of child.
|
Gtk.Notebook
Method |
Retrieves the text of the menu label for the page containing widget does not have a menu label other than the default menu label, or the menu label widget is not a GtkLabel.
|
Gtk.Notebook
Method |
Query the packing attributes for the tab label of the page containing child.
|
Gtk.Notebook
Method |
Sets the packing parameters for the tab label of the page containing child.
|
Gtk.Notebook
Method |
Reorders the page containing child, so that it appears in position children in the list or negative, child will be moved to the end of the list.
|
Gtk.Notebook
Method |
Gets whether the tab can be reordered via drag and drop or not.
|
Gtk.Notebook
Method |
Sets whether the notebook tab can be reordered via drag and drop or not.
|
Gtk.Notebook
Method |
Returns whether the tab contents can be detached from notebook.
|
Gtk.Notebook
Method |
Sets whether the tab can be detached from notebook to another notebook or widget.
|
Gtk.Notebook
Method |
get_action_widget
(PackType pack_type)
:
Gtk.Widget
Gets one of the action widgets.
|
Gtk.Notebook
Method |
Sets widget as one of the action widgets.
|
Gtk.OptionMenu
Method |
get_menu
()
:
Gtk.Widget
|
Gtk.OptionMenu
Method |
set_menu
(Widget menu)
:
none
|
Gtk.Paned
Method |
add1
(Widget child)
:
none
|
Gtk.Paned
Method |
add2
(Widget child)
:
none
|
Gtk.Paned
Method |
|
Gtk.Paned
Method |
|
Gtk.Paned
Method |
get_child1
()
:
Gtk.Widget
Obtains the first child of the paned widget.
|
Gtk.Paned
Method |
get_child2
()
:
Gtk.Widget
Obtains the second child of the paned widget.
|
Gtk.PrintOperation
Signal |
custom_widget_apply
(PrintOperation self, Widget widget)
:
none
Emitted right before GtkPrintOperation::begin-print if you added a custom widget in the GtkPrintOperation::create-custom-widget handler.
|
Gtk.PrintOperation
Signal |
update_custom_widget
(PrintOperation self, Widget widget, PageSetup setup, PrintSettings settings)
:
none
Emitted after change of selected printer.
|
Gtk.ScaleButton
Method |
get_plus_button
()
:
Gtk.Widget
Retrieves the plus button of the GtkScaleButton.
|
Gtk.ScaleButton
Method |
get_minus_button
()
:
Gtk.Widget
Retrieves the minus button of the GtkScaleButton.
|
Gtk.ScaleButton
Method |
get_popup
()
:
Gtk.Widget
Retrieves the popup of the GtkScaleButton.
|
Gtk.ScrolledWindow
Method |
get_hscrollbar
()
:
Gtk.Widget
Returns the horizontal scrollbar of scrolled_window.
|
Gtk.ScrolledWindow
Method |
get_vscrollbar
()
:
Gtk.Widget
Returns the vertical scrollbar of scrolled_window.
|
Gtk.ScrolledWindow
Method |
add_with_viewport
(Widget child)
:
none
Used to add children without native scrolling capabilities.
|
Gtk.SizeGroup
Method |
add_widget
(Widget widget)
:
none
Adds a widget to a GtkSizeGroup.
|
Gtk.SizeGroup
Method |
remove_widget
(Widget widget)
:
none
Removes a widget from a GtkSizeGroup.
|
Gtk.Statusbar
Method |
get_message_area
()
:
Gtk.Widget
Retrieves the box containing the label widget.
|
Gtk.Style
Method |
render_icon
(IconSource source, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.
|
Gtk.Table
Method |
attach
(Widget child, Number left_attach, Number right_attach, Number top_attach, Number bottom_attach, AttachOptions xoptions, AttachOptions yoptions, Number xpadding, Number ypadding)
:
none
|
Gtk.Table
Method |
attach_defaults
(Widget widget, Number left_attach, Number right_attach, Number top_attach, Number bottom_attach)
:
none
|
Gtk.TextChildAnchor
Method |
register_child
(Widget child, TextLayout layout)
:
none
|
Gtk.TextChildAnchor
Method |
unregister_child
(Widget child)
:
none
|
Gtk.TextView
Method |
add_child_at_anchor
(Widget child, TextChildAnchor anchor)
:
none
Adds a child widget in the text buffer, at the given anchor.
|
Gtk.TextView
Method |
Adds a child at fixed coordinates in one of the text widget's windows.
|
Gtk.TextView
Method |
Updates the position of a child, as for gtk_text_view_add_child_in_window().
|
Gtk.TipsQuery
Property |
caller : Gtk.Widget
|
Gtk.TipsQuery
Signal |
|
Gtk.TipsQuery
Signal |
|
Gtk.TipsQuery
Method |
set_caller
(Widget caller)
:
none
|
Gtk.ToolButton
Property |
icon_widget : Gtk.Widget
|
Gtk.ToolButton
Property |
label_widget : Gtk.Widget
|
Gtk.ToolButton
Method |
Create a new Gtk.ToolButton
|
Gtk.ToolButton
Method |
set_icon_widget
(Widget icon_widget)
:
none
Sets icon as the widget used as icon on button.
|
Gtk.ToolButton
Method |
get_icon_widget
()
:
Gtk.Widget
Return the widget used as icon widget on button.
|
Gtk.ToolButton
Method |
set_label_widget
(Widget label_widget)
:
none
Sets label_widget as the widget that will be used as the label for button.
|
Gtk.ToolButton
Method |
get_label_widget
()
:
Gtk.Widget
Returns the widget used as label on button.
|
Gtk.ToolItem
Method |
retrieve_proxy_menu_item
()
:
Gtk.Widget
Returns the GtkMenuItem that was last set by gtk_tool_item_set_proxy_menu_item(), ie.
|
Gtk.ToolItem
Method |
get_proxy_menu_item
(String menu_item_id)
:
Gtk.Widget
If menu_item_id matches the string passed to gtk_tool_item_set_proxy_menu_item() return the corresponding GtkMenuItem.
|
Gtk.ToolItem
Method |
Sets the GtkMenuItem used in the toolbar overflow menu.
|
Gtk.ToolItemGroup
Property |
label_widget : Gtk.Widget
|
Gtk.ToolItemGroup
Method |
set_label_widget
(Widget label_widget)
:
none
Sets the label of the tool item group.
|
Gtk.ToolItemGroup
Method |
get_label_widget
()
:
Gtk.Widget
Gets the label widget of group.
|
Gtk.ToolPalette
Method |
get_drag_item
(SelectionData selection)
:
Gtk.Widget
Get the dragged item from the selection.
|
Gtk.ToolPalette
Method |
add_drag_dest
(Widget widget, DestDefaults flags, ToolPaletteDragTargets targets, DragAction actions)
:
none
Sets palette as drag source (see gtk_tool_palette_set_drag_source()) and sets widget as a drag destination for drags from palette.
|
Gtk.Toolbar
Method |
append_item
(String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data)
:
Gtk.Widget
Inserts a new item into the toolbar.
|
Gtk.Toolbar
Method |
prepend_item
(String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data)
:
Gtk.Widget
Adds a new button to the beginning (top or left edges) of the given toolbar.
|
Gtk.Toolbar
Method |
insert_item
(String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data, Number position)
:
Gtk.Widget
Inserts a new item into the toolbar.
|
Gtk.Toolbar
Method |
insert_stock
(String stock_id, String tooltip_text, String tooltip_private_text, Function callback, void* user_data, Number position)
:
Gtk.Widget
Inserts a stock item at the specified position of the toolbar.
|
Gtk.Toolbar
Method |
append_element
(ToolbarChildType type, Widget widget, String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data)
:
Gtk.Widget
Adds a new element to the end of a toolbar.
|
Gtk.Toolbar
Method |
prepend_element
(ToolbarChildType type, Widget widget, String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data)
:
Gtk.Widget
Adds a new element to the beginning of a toolbar.
|
Gtk.Toolbar
Method |
insert_element
(ToolbarChildType type, Widget widget, String text, String tooltip_text, String tooltip_private_text, Widget icon, Function callback, void* user_data, Number position)
:
Gtk.Widget
Inserts a new element in the toolbar at the given position.
|
Gtk.Toolbar
Method |
Adds a widget to the end of the given toolbar.
|
Gtk.Toolbar
Method |
Adds a widget to the beginning of the given toolbar.
|
Gtk.Toolbar
Method |
insert_widget
(Widget widget, String tooltip_text, String tooltip_private_text, Number position)
:
none
Inserts a widget in the toolbar at the given position.
|
Gtk.Tooltip
Method |
set_custom
(Widget custom_widget)
:
none
Replaces the widget packed into the tooltip with away.
|
Gtk.Tooltips
Method |
|
Gtk.Tooltips
Method |
Gtk.Tooltips.get_info_from_tip_window
(Window tip_window, Tooltips tooltips, Widget current_widget)
:
Boolean
Determines the tooltips and the widget they belong to from the window in which they are displayed.
|
Gtk.Tooltips
Method |
Adds a tooltip containing the message tip_text to the specified GtkWidget.
|
Gtk.TreeViewColumn
Property |
widget : Gtk.Widget
|
Gtk.TreeViewColumn
Method |
set_widget
(Widget widget)
:
none
Sets the widget in the header to be widget.
|
Gtk.TreeViewColumn
Method |
get_widget
()
:
Gtk.Widget
Returns the GtkWidget in the button on the column header.
|
Gtk.TreeViewColumn
Method |
get_tree_view
()
:
Gtk.Widget
Returns the GtkTreeView wherein tree_column has been inserted.
|
Gtk.UIManager
Signal |
The add_widget signal is emitted for each generated menubar and toolbar.
|
Gtk.UIManager
Signal |
The connect_proxy signal is emitted after connecting a proxy to an action in the group.
|
Gtk.UIManager
Signal |
The disconnect_proxy signal is emitted after disconnecting a proxy from an action in the group.
|
Gtk.UIManager
Method |
get_widget
(String path)
:
Gtk.Widget
Looks up a widget by following a path.
|
Gtk.Window
Signal |
|
Gtk.Window
Method |
set_focus
(Widget focus)
:
none
If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window.
|
Gtk.Window
Method |
get_focus
()
:
Gtk.Widget
Retrieves the current focused widget within the window.
|
Gtk.Window
Method |
set_default
(Widget default_widget)
:
none
The default widget is the widget that's activated when the user presses Enter in a dialog (for example).
|
Gtk.Window
Method |
get_default_widget
()
:
Gtk.Widget
Returns the default widget for window.
|
Gtk.Window
Method |
This function sets up hints about how a window can be resized by the user.
|
Gtk.Window
Method |
Adds a mnemonic to this window.
|
Gtk.Window
Method |
Removes a mnemonic from this window.
|
GtkClutter
Method |
Returns the GtkAllocation of a widget relative to a widget known to Clutter-GTK+.
|
GtkClutter
Method |
Returns the GtkAllocation of a widget relative to the top-level.
|
GtkClutter
Method |
Retrieves the base color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the background color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the dark color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the foreground color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the light color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the mid color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the text-aa color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the text color of widget for the given state and copies it into color.
|
GtkClutter
Method |
GtkClutter.texture_new_from_icon_name
(Widget widget, String icon_name, IconSize size)
:
Clutter.Actor
Creates a new ClutterTexture and sets its contents to be the icon_name from the current icon theme.
|
GtkClutter
Method |
Creates a new ClutterTexture and sets its contents using the stock icon stock_id as rendered by widget.
|
GtkClutter
Method |
GtkClutter.texture_set_from_icon_name
(Texture texture, Widget widget, String icon_name, IconSize size)
:
Boolean
Sets the contents of texture using the icon_name from the current icon theme.
|
GtkClutter
Method |
GtkClutter.texture_set_from_stock
(Texture texture, Widget widget, String stock_id, IconSize size)
:
Boolean
Sets the contents of texture using the stock icon stock_id, as rendered by widget.
|
GtkClutter.Actor
Method |
Create a new GtkClutter.Actor
|
GtkClutter.Actor
Method |
get_widget
()
:
Gtk.Widget
|
GtkSource.CompletionInfo
Method |
set_widget
(Widget widget)
:
none
Sets the content widget of the info window.
|
GtkSource.CompletionInfo
Method |
get_widget
()
:
Gtk.Widget
Get the current content widget.
|
GtkSource.CompletionProvider
Method |
get_info_widget
(CompletionProposal proposal)
:
Gtk.Widget
Get a customized info widget to show extra information of a proposal.
|
Notify.Notification
Property |
attach_widget : Gtk.Widget
|
Notify.Notification
Method |
new Notify.Notification.c_new
(String summary, String body, String icon, Widget attach)
:
Notify.Notification
Create a new Notify.Notification
|
Notify.Notification
Method |
attach_to_widget
(Widget attach)
:
none
|
PanelApplet.PanelApplet
Method |
set_background_widget
(Widget widget)
:
none
|