GObject.Object
GObject.InitiallyUnowned
Gtk.Widget
Gtk.Container
Gtk.Bin
Gtk.Window
GtkSource.CompletionInfo
Import line: | GtkSource = imports.gi.GtkSource; |
GIR File: | GtkSource-3.0.gir |
C documentation: | GtkSourceCompletionInfo |
Class : | CompletionInfo |
Implements: | Atk.ImplementorIface, Gtk.Buildable |
Extends: | Gtk.Window |
Properties | Defined By | |
---|---|---|
accept_focus : gboolean
Whether the window should receive the input focus.
Whether the window should receive the input focus.
|
Gtk.Window | |
app_paintable : gboolean
|
Gtk.Widget | |
application : Gtk.Application
The GtkApplication associated with the window.
The GtkApplication associated with the window.
The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows). Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the ::application property to NULL. |
Gtk.Window | |
bin : Gtk.Bin
read only
|
Gtk.Window | |
border_width : guint32
|
Gtk.Container | |
can_default : gboolean
|
Gtk.Widget | |
can_focus : gboolean
|
Gtk.Widget | |
child : Gtk.Widget
|
Gtk.Container | |
composite_child : gboolean
read only
|
Gtk.Widget | |
container : Gtk.Container
read only
|
Gtk.Bin | |
decorated : gboolean
Whether the window should be decorated by the window manager.
Whether the window should be decorated by the window manager.
|
Gtk.Window | |
default_height : gint32
|
Gtk.Window | |
default_width : gint32
|
Gtk.Window | |
deletable : gboolean
Whether the window frame should have a close button.
Whether the window frame should have a close button.
|
Gtk.Window | |
destroy_with_parent : gboolean
|
Gtk.Window | |
double_buffered : gboolean
Whether the widget is double buffered.
Whether the widget is double buffered.
|
Gtk.Widget | |
expand : gboolean
Whether to expand in both directions.
Whether to expand in both directions. Setting this sets both GtkWidget:hexpand and GtkWidget:vexpand
|
Gtk.Widget | |
focus_on_map : gboolean
Whether the window should receive the input focus when mapped.
Whether the window should receive the input focus when mapped.
|
Gtk.Window | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
halign : Gtk.Align
How to distribute horizontal space if widget gets extra space, see GtkAlign
How to distribute horizontal space if widget gets extra space, see GtkAlign
|
Gtk.Widget | |
has_default : gboolean
|
Gtk.Widget | |
has_focus : gboolean
|
Gtk.Widget | |
has_resize_grip : gboolean
Whether the window has a corner resize grip.
Whether the window has a corner resize grip.
Note that the resize grip is only shown if the window is actually resizable and not maximized. Use GtkWindow:resize-grip-visible to find out if the resize grip is currently shown. |
Gtk.Window | |
has_tooltip : gboolean
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 | |
has_toplevel_focus : gboolean
read only
|
Gtk.Window | |
height_request : gint32
|
Gtk.Widget | |
hexpand : gboolean
Whether to expand horizontally.
Whether to expand horizontally. See gtk_widget_set_hexpand().
|
Gtk.Widget | |
hexpand_set : gboolean
Whether to use the GtkWidget:hexpand property.
Whether to use the GtkWidget:hexpand property. See gtk_widget_get_hexpand_set().
|
Gtk.Widget | |
icon : GdkPixbuf.Pixbuf
|
Gtk.Window | |
icon_name : String
The :icon-name property specifies the name of the themed icon to
use as the window icon. The :icon-name property specifies the name of the themed icon to
use as the window icon. See GtkIconTheme for more details. |
Gtk.Window | |
is_active : gboolean
read only
|
Gtk.Window | |
is_focus : gboolean
|
Gtk.Widget | |
margin : gint32
Sets all four sides' margin at once.
Sets all four sides' margin at once. If read, returns max
margin on any side. |
Gtk.Widget | |
margin_bottom : gint32
Margin on bottom side of widget.
Margin on bottom side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example. |
Gtk.Widget | |
margin_left : gint32
Margin on left side of widget.
Margin on left side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example. |
Gtk.Widget | |
margin_right : gint32
Margin on right side of widget.
Margin on right side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example. |
Gtk.Widget | |
margin_top : gint32
Margin on top side of widget.
Margin on top side of widget.
This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example. |
Gtk.Widget | |
mnemonics_visible : gboolean
|
Gtk.Window | |
modal : gboolean
|
Gtk.Window | |
name : String
|
Gtk.Widget | |
no_show_all : gboolean
|
Gtk.Widget | |
opacity : gdouble
The requested opacity of the window.
The requested opacity of the window. See gtk_window_set_opacity() for
more details about window opacity. |
Gtk.Window | |
parent : Gtk.Window
read only
|
GtkSource.CompletionInfo | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Widget | |
priv : GtkSource.CompletionInfoPrivate
read only
|
GtkSource.CompletionInfo | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
receives_default : gboolean
|
Gtk.Widget | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned | |
resizable : gboolean
|
Gtk.Window | |
resize_grip_visible : gboolean
read only
Whether a corner resize grip is currently shown.
Whether a corner resize grip is currently shown.
|
Gtk.Window | |
resize_mode : Gtk.ResizeMode
|
Gtk.Container | |
role : String
|
Gtk.Window | |
screen : Gdk.Screen
|
Gtk.Window | |
sensitive : gboolean
|
Gtk.Widget | |
skip_pager_hint : gboolean
|
Gtk.Window | |
skip_taskbar_hint : gboolean
|
Gtk.Window | |
startup_id : String
The :startup-id is a write-only property for setting window's
startup notification identifier. The :startup-id is a write-only property for setting window's
startup notification identifier. See gtk_window_set_startup_id() for more details. |
Gtk.Window | |
style : Gtk.Style
|
Gtk.Widget | |
title : String
|
Gtk.Window | |
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 | |
transient_for : Gtk.Window
The transient parent of the window.
The transient parent of the window. See gtk_window_set_transient_for() for
more details about transient windows. |
Gtk.Window | |
type : Gtk.WindowType
|
Gtk.Window | |
ubuntu_no_proxy : gboolean
|
Gtk.Window | |
urgency_hint : gboolean
|
Gtk.Window | |
valign : Gtk.Align
How to distribute vertical space if widget gets extra space, see GtkAlign
How to distribute vertical space if widget gets extra space, see GtkAlign
|
Gtk.Widget | |
vexpand : gboolean
Whether to expand vertically.
Whether to expand vertically. See gtk_widget_set_vexpand().
|
Gtk.Widget | |
vexpand_set : gboolean
Whether to use the GtkWidget:vexpand property.
Whether to use the GtkWidget:vexpand property. See gtk_widget_get_vexpand_set().
|
Gtk.Widget | |
visible : gboolean
|
Gtk.Widget | |
widget : Gtk.Widget
read only
|
Gtk.Container | |
width_request : gint32
|
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_position : Gtk.WindowPosition
|
Gtk.Window |
Method / Constructor | Defined By | |
---|---|---|
new GtkSource.CompletionInfo
(Object properties)
Create a new GtkSource.CompletionInfo
Create a new GtkSource.CompletionInfo
|
||
activate
()
:
gboolean
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 | |
activate_default
()
:
gboolean
Activates the default widget for the window, unless the current
focused widget has been configured to receive the default action (see gtk_widget_set_receives_default()), in which case the focused widget is activated.
Activates the default widget for the window, unless the current
focused widget has been configured to receive the default action (see gtk_widget_set_receives_default()), in which case the focused widget is activated.
|
Gtk.Window | |
activate_focus
()
:
gboolean
Activates the current focused widget within the window.
Activates the current focused widget within the window.
|
Gtk.Window | |
Activates mnemonics and accelerators for this GtkWindow.
Activates mnemonics and accelerators for this GtkWindow. This is normally
called by the default ::key_press_event handler for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.
|
Gtk.Window | |
add
(Widget widget)
:
none
Adds widget to container.
Adds widget to container. Typically used for simple containers
such as GtkWindow, GtkFrame, or GtkButton; for more complicated layout containers such as GtkBox or GtkTable, this function will pick default packing parameters that may not be correct. So consider functions such as gtk_box_pack_start() and gtk_table_attach() as an alternative to gtk_container_add() in those cases. A widget may be added to only one container at a time; you can't place the same widget inside two different containers.
|
Gtk.Container | |
add_accel_group
(AccelGroup accel_group)
:
none
Associate accel_group with window, such that calling
gtk_accel_groups_activate() on window will activate accelerators in accel_group.
Associate accel_group with window, such that calling
gtk_accel_groups_activate() on window will activate accelerators in accel_group.
|
Gtk.Window | |
add_accelerator
(String accel_signal, AccelGroup accel_group, guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags)
:
none
Installs an accelerator for this widget in accel_group that causes
The accel_group needs to be added to the widget's toplevel via gtk_window_add_accel_group(), and the signal must be of type G_RUN_ACTION.
Installs an accelerator for this widget in accel_group that causes
The accel_group needs to be added to the widget's toplevel via gtk_window_add_accel_group(), and the signal must be of type G_RUN_ACTION. Accelerators added through this function are not user changeable during runtime. If you want to support accelerators that can be changed by the user, use gtk_accel_map_add_entry() and gtk_widget_set_accel_path() or gtk_menu_item_set_accel_path() instead.
|
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 | |
Adds the device events in the bitfield events to the event mask for
Adds the device events in the bitfield events to the event mask for
|
Gtk.Widget | |
add_events
(gint32 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 | |
Adds a mnemonic to this window.
Adds a mnemonic to this window.
|
Gtk.Window | |
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 | |
Starts moving a window.
Starts moving a window. This function is used if an application has
window movement grips. When GDK can support it, the window movement will be done using the standard mechanism for the linkend="gtk-X11-arch">window manager or windowing system. Otherwise, GDK will try to emulate window movement, potentially not all that well, depending on the windowing system.
|
Gtk.Window | |
begin_resize_drag
(WindowEdge edge, gint32 button, gint32 root_x, gint32 root_y, guint32 timestamp)
:
none
Starts resizing a window.
Starts resizing a window. This function is used if an application
has window resizing controls. When GDK can support it, the resize will be done using the standard mechanism for the linkend="gtk-X11-arch">window manager or windowing system. Otherwise, GDK will try to emulate window resizing, potentially not all that well, depending on the windowing system.
|
Gtk.Window | |
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 | |
check_resize
()
:
none
|
Gtk.Container | |
child_focus
(DirectionType direction)
:
gboolean
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.
|
Gtk.Widget | |
Gets the value of a child property for child and container.
Gets the value of a child property for child and container.
|
Gtk.Container | |
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 | |
Sets a child property for child and container.
Sets a child property for child and container.
|
Gtk.Container | |
child_type
()
:
Number
Returns the type of the children supported by the container.
Returns the type of the children supported by the container.
Note that this may return G_TYPE_NONE to indicate that no more children can be added, e.g. for a GtkPaned which already has two children.
|
Gtk.Container | |
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 | |
compute_expand
(Orientation orientation)
:
gboolean
Computes whether a container should give this widget extra space
when possible.
Computes whether a container should give this widget extra space
when possible. Containers should check this, rather than looking at gtk_widget_get_hexpand() or gtk_widget_get_vexpand(). This function already checks whether the widget is visible, so visibility does not need to be checked separately. Non-visible widgets are not expanded. The computed expand value uses either the expand setting explicitly set on the widget itself, or, if none has been explicitly set, the widget may expand if some of its children do.
|
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-updated 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 | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
deiconify
()
:
none
Asks to deiconify (i.e.
Asks to deiconify (i.e. unminimize) the specified window. Note
that you shouldn't assume the window is definitely deiconified afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could iconify it again before your code which assumes deiconification gets to run. You can track iconification via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
destroy
()
:
none
Destroys a widget.
Destroys a widget.
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 | |
Returns TRUE if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending events to widget.
Returns TRUE if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending events to widget. This may be used in the GtkWidget::grab-notify signal to check for specific devices. See gtk_device_grab_add(). by another GtkWidget than widget.
|
Gtk.Widget | |
Initiates a drag on the source side.
Initiates a drag on the source side. The function
only needs to be used when the application is starting drags itself, and is not needed when gtk_drag_source_set() is used. The event is used to retrieve the timestamp that will be used internally to grab the pointer. If event is NULL, then GDK_CURRENT_TIME will be used. However, you should try to pass a real event in all cases, since that can be used by GTK+ to get information about the start position of the drag, for example if the event is a GDK_MOTION_NOTIFY. Generally there are three cases when you want to start a drag by hand by calling this function: 1. During a button-press-event handler, if you want to start a drag immediately when the user presses the mouse button. Pass the event that you have in your button-press-event handler. 2. During a motion-notify-event handler, if you want to start a drag when the mouse moves past a certain threshold distance after a button-press. Pass the event that you have in your motion-notify-event handler. 3. During a timeout handler, if you want to start a drag after the mouse button is held down for some time. Try to save the last event that you got from the mouse, using gdk_event_copy(), and pass it to this function (remember to free the event with gdk_event_free() when you are done). If you can really not pass a real event, pass NULL instead.
|
Gtk.Widget | |
drag_check_threshold
(gint32 start_x, gint32 start_y, gint32 current_x, gint32 current_y)
:
gboolean
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.
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.Widget | |
drag_dest_add_image_targets
()
:
none
Add the image targets supported by GtkSelection to
the target list of the drag destination.
Add the image targets supported by GtkSelection to
the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_dest_set_target_list().
|
Gtk.Widget | |
drag_dest_add_text_targets
()
:
none
Add the text targets supported by GtkSelection to
the target list of the drag destination.
Add the text targets supported by GtkSelection to
the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_dest_set_target_list().
|
Gtk.Widget | |
drag_dest_add_uri_targets
()
:
none
Add the URI targets supported by GtkSelection to
the target list of the drag destination.
Add the URI targets supported by GtkSelection to
the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_dest_set_target_list().
|
Gtk.Widget | |
Looks for a match between the supported targets of context and the
returning GDK_NONE.
Looks for a match between the supported targets of context and the
returning GDK_NONE. dest_target_list should usually be the return value from gtk_drag_dest_get_target_list(), but some widgets may have different valid targets for different parts of the widget; in that case, they will have to implement a drag_motion handler that passes the correct target list to this function. and the dest can accept, or GDK_NONE
|
Gtk.Widget | |
drag_dest_get_target_list
()
:
Gtk.TargetList
Returns the list of targets this widget can accept from
drag-and-drop.
Returns the list of targets this widget can accept from
drag-and-drop.
|
Gtk.Widget | |
drag_dest_get_track_motion
()
:
gboolean
Returns whether the widget has been configured to always
emit ::drag-motion signals.
Returns whether the widget has been configured to always
emit ::drag-motion signals.
|
Gtk.Widget | |
Sets a widget as a potential drop destination, and adds default behaviors.
Sets a widget as a potential drop destination, and adds default behaviors.
The default behaviors listed in flags have an effect similar to installing default handlers for the widget's drag-and-drop signals (GtkWidget:drag-motion, GtkWidget:drag-drop, ...). They all exist for convenience. When passing GTK_DEST_DEFAULT_ALL for instance it is sufficient to connect to the widget's GtkWidget::drag-data-received signal to get primitive, but consistent drag-and-drop support. Things become more complicated when you try to preview the dragged data, as described in the documentation for GtkWidget:drag-motion. The default behaviors described by flags make some assumptions, that can conflict with your own signal handlers. For instance GTK_DEST_DEFAULT_DROP causes invokations of gdk_drag_status() in the context of GtkWidget:drag-motion, and invokations of gtk_drag_finish() in GtkWidget:drag-data-received. Especially the later is dramatic, when your own GtkWidget:drag-motion handler calls gtk_drag_get_data() to inspect the dragged data. There's no way to set a default action here, you can use the GtkWidget:drag-motion callback for that. Here's an example which selects the action to use depending on whether the control key is pressed or not: |[ static void drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { GdkModifierType mask; gdk_window_get_pointer (gtk_widget_get_window (widget), NULL, NULL, &mask); if (mask & GDK_CONTROL_MASK) gdk_drag_status (context, GDK_ACTION_COPY, time); else gdk_drag_status (context, GDK_ACTION_MOVE, time); } ]|
|
Gtk.Widget | |
Set up this widget to proxy drags elsewhere.
Set up this widget to proxy drags elsewhere.
|
Gtk.Widget | |
drag_dest_set_target_list
(TargetList target_list)
:
none
Sets the target types that this widget can accept from drag-and-drop.
Sets the target types that this widget can accept from drag-and-drop.
The widget must first be made into a drag destination with gtk_drag_dest_set().
|
Gtk.Widget | |
drag_dest_set_track_motion
(gboolean track_motion)
:
none
Tells the widget to emit ::drag-motion and ::drag-leave
events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag.
Tells the widget to emit ::drag-motion and ::drag-leave
events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag. This may be used when a widget wants to do generic actions regardless of the targets that the source offers.
|
Gtk.Widget | |
drag_dest_unset
()
:
none
Unregister this widget as a drag target.
Unregister this widget as a drag target.
|
Gtk.Widget | |
Get the data for a drag or drop
Get the data for a drag or drop
|
Gtk.Widget | |
drag_highlight
()
:
none
Highlight the given widget in the default manner.
Highlight the given widget in the default manner.
|
Gtk.Widget | |
drag_source_add_image_targets
()
:
none
Add the writable image targets supported by GtkSelection to
the target list of the drag source.
Add the writable image targets supported by GtkSelection to
the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_source_set_target_list().
|
Gtk.Widget | |
drag_source_add_text_targets
()
:
none
Add the text targets supported by GtkSelection to
the target list of the drag source.
Add the text targets supported by GtkSelection to
the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_source_set_target_list().
|
Gtk.Widget | |
drag_source_add_uri_targets
()
:
none
Add the URI targets supported by GtkSelection to
the target list of the drag source.
Add the URI targets supported by GtkSelection to
the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_source_set_target_list().
|
Gtk.Widget | |
drag_source_get_target_list
()
:
Gtk.TargetList
Gets the list of targets this widget can provide for
drag-and-drop.
Gets the list of targets this widget can provide for
drag-and-drop.
|
Gtk.Widget | |
drag_source_set
(ModifierType start_button_mask, Array targets, gint32 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.
Sets up a widget so that GTK+ will start a drag operation when the user
clicks and drags on the widget. The widget must have a window.
|
Gtk.Widget | |
drag_source_set_icon_name
(String icon_name)
:
none
Sets the icon that will be used for drags from a particular source
to a themed icon.
Sets the icon that will be used for drags from a particular source
to a themed icon. See the docs for GtkIconTheme for more details.
|
Gtk.Widget | |
drag_source_set_icon_pixbuf
(Pixbuf pixbuf)
:
none
Sets the icon that will be used for drags from a particular widget
from a GdkPixbuf.
Sets the icon that will be used for drags from a particular widget
from a GdkPixbuf. GTK+ retains a reference for pixbuf and will release it when it is no longer needed.
|
Gtk.Widget | |
drag_source_set_icon_stock
(String stock_id)
:
none
Sets the icon that will be used for drags from a particular source
to a stock icon.
Sets the icon that will be used for drags from a particular source
to a stock icon.
|
Gtk.Widget | |
drag_source_set_target_list
(TargetList target_list)
:
none
Changes the target types that this widget offers for drag-and-drop.
Changes the target types that this widget offers for drag-and-drop.
The widget must first be made into a drag source with gtk_drag_source_set().
|
Gtk.Widget | |
drag_source_unset
()
:
none
Unregister this widget as a drag source.
Unregister this widget as a drag source.
|
Gtk.Widget | |
drag_unhighlight
()
:
none
Refresh the given widget to remove the highlight.
Refresh the given widget to remove the highlight.
|
Gtk.Widget | |
draw
(Context cr)
:
none
Draws widget to cr.
Draws widget to cr. The top left corner of the widget will be
drawn to the currently set origin point of cr. You should pass a cairo context as cr argument that is in an original state. Otherwise the resulting drawing is undefined. For example changing the operator using cairo_set_operator() or the line width using cairo_set_line_width() might have unwanted side effects. You may however change the context's transform matrix - like with cairo_scale(), cairo_translate() or cairo_set_matrix() and clip region with cairo_clip() prior to calling this function. Also, it is fine to modify the context with cairo_save() and cairo_push_group() prior to calling this function. rendering to the screen and might appear differently on screen and when rendered using gtk_widget_draw().
|
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 | |
Invokes callback on each child of container, including children
that are considered "internal" (implementation details of the container).
Invokes callback on each child of container, including children
that are considered "internal" (implementation details of the container). "Internal" children generally weren't added by the user of the container, but were added by the container implementation itself. Most applications should use gtk_container_foreach(), rather than gtk_container_forall().
|
Gtk.Container | |
Invokes callback on each non-internal child of container.
Invokes callback on each non-internal child of container. See
gtk_container_forall() for details on what constitutes an "internal" child. Most applications should use gtk_container_foreach(), rather than gtk_container_forall().
|
Gtk.Container | |
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 | |
fullscreen
()
:
none
Asks to place window in the fullscreen state.
Asks to place window in the fullscreen state. Note that you
shouldn't assume the window is definitely full screen afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could unfullscreen it again, and not all window managers honor requests to fullscreen windows. But normally the window will end up fullscreen. Just don't write code that crashes if not. You can track the fullscreen state via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
get_accept_focus
()
:
gboolean
Gets the value set by gtk_window_set_accept_focus().
Gets the value set by gtk_window_set_accept_focus().
|
Gtk.Window | |
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 such as libgnome), then this AtkObject instance may be a no-op. Likewise, if no class-specific AtkObject implementation is available for the widget instance in question, it will inherit an AtkObject implementation from the first ancestor class for which such an implementation is defined. The documentation of the library contains more information about accessible objects and their uses.
|
Gtk.Widget | |
get_allocated_height
()
:
gint32
Returns the height that has currently been allocated to widget.
Returns the height that has currently been allocated to widget.
This function is intended to be used when implementing handlers for the GtkWidget::draw function.
|
Gtk.Widget | |
get_allocated_width
()
:
gint32
Returns the width that has currently been allocated to widget.
Returns the width that has currently been allocated to widget.
This function is intended to be used when implementing handlers for the GtkWidget::draw function.
|
Gtk.Widget | |
get_allocation
()
:
cairo.RectangleInt
Retrieves the widget's allocation.
Retrieves the widget's allocation.
be its "adjusted" allocation, that is, the widget's parent container typically calls gtk_widget_size_allocate() with an allocation, and that allocation is then adjusted (to handle margin and alignment for example) before assignment to the widget. gtk_widget_get_allocation() returns the adjusted allocation that was actually assigned to the widget. The adjusted allocation is guaranteed to be completely contained within the gtk_widget_size_allocate() allocation, however. So a GtkContainer is guaranteed that its children stay inside the assigned bounds, but not that they have exactly the bounds the container assigned. There is no way to get the original allocation assigned by gtk_widget_size_allocate(), since it isn't stored; if a container implementation needs that information it will have to track it itself.
|
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,
the first GtkBox that's an ancestor of widget. No reference will be added to the returned widget; it should not be unreferenced. See note about checking for a toplevel GtkWindow in the docs for gtk_widget_get_toplevel(). Note that unlike gtk_widget_is_ancestor(), gtk_widget_get_ancestor() considers widget to be an ancestor of itself.
|
Gtk.Widget | |
get_app_paintable
()
:
gboolean
Determines whether the application intends to draw on the widget in
an GtkWidget::draw handler.
Determines whether the application intends to draw on the widget in
an GtkWidget::draw handler. See gtk_widget_set_app_paintable()
|
Gtk.Widget | |
get_application
()
:
Gtk.Application
Gets the GtkApplication associated with the window (if any).
Gets the GtkApplication associated with the window (if any).
|
Gtk.Window | |
get_border_width
()
:
guint32
Retrieves the border width of the container.
Retrieves the border width of the container. See
gtk_container_set_border_width().
|
Gtk.Container | |
get_can_default
()
:
gboolean
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
()
:
gboolean
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
()
:
Gtk.Widget
Gets the child of the GtkBin, or NULL if the bin contains
no child widget.
Gets the child of the GtkBin, or NULL if the bin contains
no child widget. The returned widget does not have a reference added, so you do not need to unref it.
|
Gtk.Bin | |
get_child_requisition
()
:
Gtk.Requisition
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
()
:
gboolean
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_children
()
:
Array
Returns the container's non-internal children.
Returns the container's non-internal children. See
gtk_container_forall() for details on what constitutes an "internal" child.
|
Gtk.Container | |
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_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 | |
get_decorated
()
:
gboolean
Returns whether the window has been set to have decorations
such as a title bar via gtk_window_set_decorated().
Returns whether the window has been set to have decorations
such as a title bar via gtk_window_set_decorated().
|
Gtk.Window | |
get_default_size
()
:
Object
|
Gtk.Window | |
get_default_widget
()
:
Gtk.Widget
Returns the default widget for window.
Returns the default widget for window. See gtk_window_set_default()
for more details.
|
Gtk.Window | |
get_deletable
()
:
gboolean
Returns whether the window has been set to have a close button
via gtk_window_set_deletable().
Returns whether the window has been set to have a close button
via gtk_window_set_deletable().
|
Gtk.Window | |
get_destroy_with_parent
()
:
gboolean
Returns whether the window will be destroyed with its transient parent.
Returns whether the window will be destroyed with its transient parent. See
gtk_window_set_destroy_with_parent ().
|
Gtk.Window | |
Returns whether device can interact with widget and its
children.
Returns whether device can interact with widget and its
children. See gtk_widget_set_device_enabled().
|
Gtk.Widget | |
get_device_events
(Device device)
:
Gdk.EventMask
Returns the events mask for the widget corresponding to an specific device.
Returns the events mask for the widget corresponding to an specific device. These
are the events that the widget will receive when device operates on it.
|
Gtk.Widget | |
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
()
:
gboolean
Determines whether the widget is double buffered.
Determines whether the widget is double buffered.
See gtk_widget_set_double_buffered()
|
Gtk.Widget | |
get_events
()
:
gint32
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_focus
()
:
Gtk.Widget
Retrieves the current focused widget within the window.
Retrieves the current focused widget within the window.
Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then not be TRUE for the widget.
|
Gtk.Window | |
Retrieves the focus chain of the container, if one has been
set explicitly.
Retrieves the focus chain of the container, if one has been
set explicitly. If no focus chain has been explicitly set, GTK+ computes the focus chain based on the positions of the children. In that case, GTK+ stores NULL in has been set explicitly.
|
Gtk.Container | |
get_focus_child
()
:
Gtk.Widget
Returns the current focus child widget inside container.
Returns the current focus child widget inside container. This is not the
currently focused widget. That can be obtained by calling gtk_window_get_focus(). focus inside container when the conatiner is focussed, or NULL if none is set.
|
Gtk.Container | |
get_focus_hadjustment
()
:
Gtk.Adjustment
Retrieves the horizontal focus adjustment for the container.
Retrieves the horizontal focus adjustment for the container. See
gtk_container_set_focus_hadjustment (). none has been set.
|
Gtk.Container | |
get_focus_on_map
()
:
gboolean
Gets the value set by gtk_window_set_focus_on_map().
Gets the value set by gtk_window_set_focus_on_map().
mapped.
|
Gtk.Window | |
get_focus_vadjustment
()
:
Gtk.Adjustment
Retrieves the vertical focus adjustment for the container.
Retrieves the vertical focus adjustment for the container. See
gtk_container_set_focus_vadjustment(). none has been set.
|
Gtk.Container | |
get_gravity
()
:
Gdk.Gravity
Gets the value set by gtk_window_set_gravity().
Gets the value set by gtk_window_set_gravity().
|
Gtk.Window | |
get_group
()
:
Gtk.WindowGroup
Returns the group for window or the default group, if
window group.
Returns the group for window or the default group, if
window group.
|
Gtk.Window | |
get_halign
()
:
Gtk.Align
Gets the value of the GtkWidget:halign property.
Gets the value of the GtkWidget:halign property.
|
Gtk.Widget | |
get_has_resize_grip
()
:
gboolean
Determines whether the window may have a resize grip.
Determines whether the window may have a resize grip.
|
Gtk.Window | |
get_has_tooltip
()
:
gboolean
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
()
:
gboolean
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_hexpand
()
:
gboolean
Gets whether the widget would like any available extra horizontal
space.
Gets whether the widget would like any available extra horizontal
space. When a user resizes a GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand. Containers should use gtk_widget_compute_expand() rather than this function, to see whether a widget, or any of its children, has the expand flag set. If any child of a widget wants to expand, the parent may ask to expand also. This function only looks at the widget's own hexpand flag, rather than computing whether the entire widget tree rooted at this widget wants to expand.
|
Gtk.Widget | |
get_hexpand_set
()
:
gboolean
Gets whether gtk_widget_set_hexpand() has been used to
explicitly set the expand flag on this widget.
Gets whether gtk_widget_set_hexpand() has been used to
explicitly set the expand flag on this widget. If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand. There are few reasons to use this function, but it's here for completeness and consistency.
|
Gtk.Widget | |
get_icon
()
:
GdkPixbuf.Pixbuf
Gets the value set by gtk_window_set_icon() (or if you've
called gtk_window_set_icon_list(), gets the first icon in the icon list).
Gets the value set by gtk_window_set_icon() (or if you've
called gtk_window_set_icon_list(), gets the first icon in the icon list).
|
Gtk.Window | |
get_icon_list
()
:
Array
Retrieves the list of icons set by gtk_window_set_icon_list().
Retrieves the list of icons set by gtk_window_set_icon_list().
The list is copied, but the reference count on each member won't be incremented.
|
Gtk.Window | |
get_icon_name
()
:
String
Returns the name of the themed icon for the window,
see gtk_window_set_icon_name().
Returns the name of the themed icon for the window,
see gtk_window_set_icon_name(). no themed icon
|
Gtk.Window | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_mapped
()
:
gboolean
Whether the widget is mapped.
Whether the widget is mapped.
|
Gtk.Widget | |
get_margin_bottom
()
:
gint32
Gets the value of the GtkWidget:margin-bottom property.
Gets the value of the GtkWidget:margin-bottom property.
|
Gtk.Widget | |
get_margin_left
()
:
gint32
Gets the value of the GtkWidget:margin-left property.
Gets the value of the GtkWidget:margin-left property.
|
Gtk.Widget | |
get_margin_right
()
:
gint32
Gets the value of the GtkWidget:margin-right property.
Gets the value of the GtkWidget:margin-right property.
|
Gtk.Widget | |
get_margin_top
()
:
gint32
Gets the value of the GtkWidget:margin-top property.
Gets the value of the GtkWidget:margin-top property.
|
Gtk.Widget | |
get_mnemonic_modifier
()
:
Gdk.ModifierType
Returns the mnemonic modifier for this window.
Returns the mnemonic modifier for this window. See
gtk_window_set_mnemonic_modifier(). mnemonics on this window.
|
Gtk.Window | |
get_mnemonics_visible
()
:
gboolean
Gets the value of the GtkWindow:mnemonics-visible property.
Gets the value of the GtkWindow:mnemonics-visible property.
in this window.
|
Gtk.Window | |
get_modal
()
:
gboolean
Returns whether the window is modal.
Returns whether the window is modal. See gtk_window_set_modal().
establishes a grab when shown
|
Gtk.Window | |
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. This rc style is 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
()
:
gboolean
Returns the current value of the GtkWidget:no-show-all property,
which determines whether calls to gtk_widget_show_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() will affect this widget.
|
Gtk.Widget | |
get_opacity
()
:
gdouble
Fetches the requested opacity for this window.
Fetches the requested opacity for this window. See
gtk_window_set_opacity().
|
Gtk.Window | |
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-updated 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_path
()
:
Gtk.WidgetPath
Returns the GtkWidgetPath representing widget, if the widget
is not connected to a toplevel widget, a partial path will be created.
Returns the GtkWidgetPath representing widget, if the widget
is not connected to a toplevel widget, a partial path will be created.
|
Gtk.Widget | |
get_path_for_child
(Widget child)
:
Gtk.WidgetPath
Returns a newly created widget path representing all the widget hierarchy
from the toplevel down to child (this one not being included).
Returns a newly created widget path representing all the widget hierarchy
from the toplevel down to child (this one not being included).
|
Gtk.Container | |
get_pointer
()
:
Object
Obtains the location of the mouse pointer in widget coordinates.
|
Gtk.Widget | |
get_position
()
:
Object
This function returns the position you need to pass to
gtk_window_move() to keep window in its current position.
This function returns the position you need to pass to
gtk_window_move() to keep window in its current position. This means that the meaning of the returned value varies with window gravity. See gtk_window_move() for more details. If you haven't changed the window gravity, its gravity will be GDK_GRAVITY_NORTH_WEST. This means that gtk_window_get_position() gets the position of the top-left corner of the window manager frame for the window. gtk_window_move() sets the position of this same top-left corner. gtk_window_get_position() is not 100% reliable because the X Window System does not specify a way to obtain the geometry of the decorations placed on a window by the window manager. Thus GTK+ is using a "best guess" that works with most window managers. Moreover, nearly all window managers are historically broken with respect to their handling of window gravity. So moving a window to its current position as returned by gtk_window_get_position() tends to result in moving the window slightly. Window managers are slowly getting better over time. If a window has gravity GDK_GRAVITY_STATIC the window manager frame is not relevant, and thus gtk_window_get_position() will always produce accurate results. However you can't use static gravity to do things like place a window in a corner of the screen, because static gravity ignores the window manager decorations. If you are saving and restoring your application's window positions, you should know that it's impossible for applications to do this without getting it somewhat wrong because applications do not have sufficient knowledge of window manager state. The Correct Mechanism is to support the session management protocol (see the "GnomeClient" object in the GNOME libraries for example) and allow the window manager to save your window sizes and positions. |
Gtk.Window | |
get_preferred_height
()
:
Object
Retrieves a widget's initial minimum and natural height.
Retrieves a widget's initial minimum and natural height.
The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself. |
Gtk.Widget | |
Retrieves a widget's minimum and natural height if it would be given
the specified width.
Retrieves a widget's minimum and natural height if it would be given
the specified width. The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.
|
Gtk.Widget | |
get_preferred_size
()
:
Object
Retrieves the minimum and natural size of a widget, taking
into account the widget's preference for height-for-width management.
Retrieves the minimum and natural size of a widget, taking
into account the widget's preference for height-for-width management. This is used to retrieve a suitable size by container widgets which do not impose any restrictions on the child placement. It can be used to deduce toplevel window and menu sizes as well as child widgets in free-form containers such as GtkLayout. widget will generally be a smaller size than the minimum height, since the required height for the natural width is generally smaller than the required height for the minimum width.
|
Gtk.Widget | |
get_preferred_width
()
:
Object
Retrieves a widget's initial minimum and natural width.
Retrieves a widget's initial minimum and natural width.
requests. The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself. |
Gtk.Widget | |
Retrieves a widget's minimum and natural width if it would be given
the specified height.
Retrieves a widget's minimum and natural width if it would be given
the specified height. The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.
|
Gtk.Widget | |
get_realized
()
:
gboolean
Determines whether widget is realized.
Determines whether widget is realized.
|
Gtk.Widget | |
get_receives_default
()
:
gboolean
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_request_mode
()
:
Gtk.SizeRequestMode
Gets whether the widget prefers a height-for-width layout
or a width-for-height layout.
Gets whether the widget prefers a height-for-width layout
or a width-for-height layout. their child, container widgets need to request something either in context of their children or in context of their allocation capabilities.
|
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. removed, If you need to cache sizes across requests and allocations, add an explicit cache to the widget in question instead.
|
Gtk.Widget | |
get_resizable
()
:
gboolean
Gets the value set by gtk_window_set_resizable().
Gets the value set by gtk_window_set_resizable().
|
Gtk.Window | |
If a window has a resize grip, this will retrieve the grip
position, width and height into the specified GdkRectangle.
If a window has a resize grip, this will retrieve the grip
position, width and height into the specified GdkRectangle.
|
Gtk.Window | |
get_resize_mode
()
:
Gtk.ResizeMode
Returns the resize mode for the container.
Returns the resize mode for the container. See
gtk_container_set_resize_mode ().
|
Gtk.Container | |
get_role
()
:
String
Returns the role of the window.
Returns the role of the window. See gtk_window_set_role() for
further explanation. returned is owned by the widget and must not be modified or freed.
|
Gtk.Window | |
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
Returns the GdkScreen associated with window.
Returns the GdkScreen associated with window.
|
Gtk.Window | |
get_sensitive
()
:
gboolean
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 used for this widget.
Gets the settings object holding the settings 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
()
:
Object
Obtains the current size of window.
Obtains the current size of window. If window is not onscreen,
it returns the size GTK+ will suggest to the linkend="gtk-X11-arch">window manager for the initial window size (but this is not reliably the same as the size the window manager will actually select). The size obtained by gtk_window_get_size() is the last size received in a GdkEventConfigure, that is, GTK+ uses its locally-stored size, rather than querying the X server for the size. As a result, if you call gtk_window_resize() then immediately call gtk_window_get_size(), the size won't have taken effect yet. After the window manager processes the resize request, GTK+ receives notification that the size has changed via a configure event, and the size of the window gets updated. because the size of the window may change between the time that you get the size and the time that you perform some action assuming that size is the current size. To avoid race conditions, connect to "configure-event" on the window and adjust your size-dependent state to match the size delivered in the GdkEventConfigure. size of the window manager decorations (aka the window frame or border). Those are not drawn by GTK+ and GTK+ has no reliable method of determining their size. the window onscreen, there may be a better way. The preferred way is to simply set the window's semantic type with gtk_window_set_type_hint(), which allows the window manager to e.g. center dialogs. Also, if you set the transient parent of dialogs with gtk_window_set_transient_for() window managers will often center the dialog over its parent window. It's much preferred to let the window manager handle these things rather than doing it yourself, because all apps will behave consistently and according to user prefs if the window manager handles it. Also, the window manager can take the size of the window decorations/border into account, while your application cannot. In any case, if you insist on application-specified window positioning, there's doing it yourself - gtk_window_set_position() will frequently handle the details for you. |
Gtk.Window | |
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 request, call gtk_widget_get_preferred_size() instead of this function. |
Gtk.Widget | |
get_skip_pager_hint
()
:
gboolean
Gets the value set by gtk_window_set_skip_pager_hint().
Gets the value set by gtk_window_set_skip_pager_hint().
|
Gtk.Window | |
get_skip_taskbar_hint
()
:
gboolean
Gets the value set by gtk_window_set_skip_taskbar_hint()
Gets the value set by gtk_window_set_skip_taskbar_hint()
|
Gtk.Window | |
get_state
()
:
Gtk.StateType
Returns the widget's state.
Returns the widget's state. See gtk_widget_set_state().
|
Gtk.Widget | |
get_state_flags
()
:
Gtk.StateFlags
Returns the widget state as a flag set.
Returns the widget state as a flag set. It is worth mentioning
that the effective GTK_STATE_FLAG_INSENSITIVE state will be returned, that is, also based on parent insensitivity, even if
|
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_style_context
()
:
Gtk.StyleContext
Returns the style context associated to widget.
Returns the style context associated to widget.
must not be freed.
|
Gtk.Widget | |
get_support_multidevice
()
:
gboolean
Returns TRUE if widget is multiple pointer aware.
Returns TRUE if widget is multiple pointer aware. See
gtk_widget_set_support_multidevice() for more information.
|
Gtk.Widget | |
get_title
()
:
String
Retrieves the title of the window.
Retrieves the title of the window. See gtk_window_set_title().
been set explicitely. The returned string is owned by the widget and must not be modified or freed.
|
Gtk.Window | |
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(); would return NULL if widget wasn't inside a toplevel window, and if the window was inside a GtkWindow-derived widget which was in turn inside the toplevel GtkWindow. While the second case may seem unlikely, it actually happens when a GtkPlug is embedded inside a GtkSocket within the same application. To reliably find the toplevel GtkWindow, use gtk_widget_get_toplevel() and check if the TOPLEVEL flags is set on the result. |[ GtkWidget *toplevel = gtk_widget_get_toplevel (widget); if (gtk_widget_is_toplevel (toplevel)) { /* Perform action on toplevel. */ } ]| if there's no ancestor.
|
Gtk.Widget | |
get_transient_for
()
:
Gtk.Window
Fetches the transient parent for this window.
Fetches the transient parent for this window. See
gtk_window_set_transient_for(). if no transient parent has been set.
|
Gtk.Window | |
get_type_hint
()
:
Gdk.WindowTypeHint
Gets the type hint for this window.
Gets the type hint for this window. See gtk_window_set_type_hint().
|
Gtk.Window | |
get_urgency_hint
()
:
gboolean
Gets the value set by gtk_window_set_urgency_hint()
Gets the value set by gtk_window_set_urgency_hint()
|
Gtk.Window | |
get_valign
()
:
Gtk.Align
Gets the value of the GtkWidget:valign property.
Gets the value of the GtkWidget:valign property.
|
Gtk.Widget | |
get_vexpand
()
:
gboolean
Gets whether the widget would like any available extra vertical
space.
Gets whether the widget would like any available extra vertical
space. See gtk_widget_get_hexpand() for more detail.
|
Gtk.Widget | |
get_vexpand_set
()
:
gboolean
Gets whether gtk_widget_set_vexpand() has been used to
explicitly set the expand flag on this widget.
Gets whether gtk_widget_set_vexpand() has been used to
explicitly set the expand flag on this widget. See gtk_widget_get_hexpand_set() for more detail.
|
Gtk.Widget | |
get_visible
()
:
gboolean
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_widget
()
:
Gtk.Widget
|
GtkSource.CompletionInfo | |
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 | |
get_window_type
()
:
Gtk.WindowType
Gets the type of the window.
Gets the type of the window. See GtkWindowType.
|
Gtk.Window | |
grab_add
()
:
none
Makes widget the current grabbed widget.
Makes widget the current grabbed widget.
This means that interaction with other widgets in the same application is blocked and mouse as well as keyboard events are delivered to this widget. If widget is not sensitive, it is not set as the current grabbed widget and this function does nothing.
|
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 TRUE) the user presses Enter in a window. Default widgets must be activatable, that is, gtk_widget_activate() should affect them. Note that GtkEntry widgets require the "activates-default" property set to TRUE before they activate the default widget when Enter is pressed and the GtkEntry is focused.
|
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. The widget also needs to be realized and mapped. This is indicated by the related signals. Grabbing the focus immediately after creating the widget will likely fail and cause critical warnings.
|
Gtk.Widget | |
grab_remove
()
:
none
Removes the grab from the given widget.
Removes the grab from the given widget.
You have to pair calls to gtk_grab_add() and gtk_grab_remove(). If widget does not have the grab, this function does nothing.
|
Gtk.Widget | |
has_default
()
:
gboolean
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
()
:
gboolean
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
()
:
gboolean
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_group
()
:
gboolean
Returns whether window has an explicit window group.
Returns whether window has an explicit window group.
Since 2.22
|
Gtk.Window | |
has_rc_style
()
:
gboolean
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
()
:
gboolean
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 | |
has_toplevel_focus
()
:
gboolean
Returns whether the input focus is within this GtkWindow.
Returns whether the input focus is within this GtkWindow.
For real toplevel windows, this is identical to gtk_window_is_active(), but for embedded windows, like GtkPlug, the results will differ.
|
Gtk.Window | |
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_on_delete
()
:
gboolean
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 | |
iconify
()
:
none
Asks to iconify (i.e.
Asks to iconify (i.e. minimize) the specified window. Note that
you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc. But normally the window will end up iconified. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be iconified before it ever appears onscreen. You can track iconification via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
in_destruction
()
:
gboolean
Returns whether the widget is currently being destroyed.
Returns whether the widget is currently being destroyed.
This information can sometimes be used to avoid doing unnecessary work.
|
Gtk.Widget | |
input_shape_combine_region
(Region region)
:
none
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_region() 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 | |
is_active
()
:
gboolean
Returns whether the window is part of the current active toplevel.
Returns whether the window is part of the current active toplevel.
(That is, the toplevel window receiving keystrokes.) The return value is TRUE if the window is active toplevel itself, but also if it is, say, a GtkPlug embedded in the active toplevel. You might use this function if you wanted to draw a widget differently in an active window from a widget in an inactive window. See gtk_window_has_toplevel_focus()
|
Gtk.Window | |
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
()
:
gboolean
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
()
:
gboolean
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
()
:
gboolean
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
()
:
gboolean
Returns the widget's effective sensitivity, which means
it is sensitive itself and also its parent widget is sensitive
Returns the widget's effective sensitivity, which means
it is sensitive itself and also its parent widget is sensitive
|
Gtk.Widget | |
is_toplevel
()
:
gboolean
Determines whether widget is a toplevel widget.
Determines whether widget is a toplevel widget.
Currently only GtkWindow and GtkInvisible (and out-of-process GtkPlugs) are toplevel widgets. Toplevel widgets have no parent widget.
|
Gtk.Widget | |
keynav_failed
(DirectionType direction)
:
gboolean
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_accel_closures
()
:
Array
Lists the closures used by widget for accelerator group connections
with gtk_accel_group_connect_by_path() or gtk_accel_group_connect().
Lists the closures used by widget for accelerator group connections
with gtk_accel_group_connect_by_path() or gtk_accel_group_connect(). The closures can be used to monitor accelerator changes on widget, by connecting to the GtkAccelGroup::accel-changed signal of the GtkAccelGroup of a closure which can be found out with gtk_accel_group_from_accel_closure(). a newly allocated GList of closures
|
Gtk.Widget | |
list_mnemonic_labels
()
:
Array
Returns a newly allocated list of the widgets, normally labels, for
which this widget is 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 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 (GFunc)g_object_ref, NULL) widgets afterwards. mnemonic labels; free this list with g_list_free() when you are done with it.
|
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 | |
maximize
()
:
none
Asks to maximize window, so that it becomes full-screen.
Asks to maximize window, so that it becomes full-screen. Note that
you shouldn't assume the window is definitely maximized afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could unmaximize it again, and not all window managers support maximization. But normally the window will end up maximized. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be maximized when it appears onscreen initially. You can track maximization via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
Activates the targets associated with the mnemonic.
Activates the targets associated with the mnemonic.
|
Gtk.Window | |
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 overridden 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 | |
Asks the window manager to move
this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown.
Asks the window manager to move
this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown. reference point for the window. The gravity determines two things: first, the location of the reference point in root window coordinates; and second, which point on the window is positioned at the reference point. By default the gravity is GDK_GRAVITY_NORTH_WEST, so the reference point is simply the x, y supplied to gtk_window_move(). The top-left corner of the window decorations (aka window frame or border) will be placed at x, y. Therefore, to position a window at the top left of the screen, you want to use the default gravity (which is GDK_GRAVITY_NORTH_WEST) and move the window to 0,0. To position a window at the bottom right corner of the screen, you would set GDK_GRAVITY_SOUTH_EAST, which means that the reference point is at x + the window width and y + the window height, and the bottom-right corner of the window border will be placed at that reference point. So, to place a window in the bottom right corner you would first set gravity to south east, then write: gdk_screen_height () - window_height) example does not take multi-head scenarios into account). The Extended Window Manager Hints specification at http://www.freedesktop.org/Standards/wm-spec has a nice table of gravities in the "implementation notes" section. The gtk_window_get_position() documentation may also be relevant.
|
Gtk.Window | |
|
GtkSource.CompletionInfo | |
override_background_color
(StateFlags state, RGBA color)
:
none
Sets the background color to use for a widget.
Sets the background color to use for a widget.
All other style values are left untouched. See gtk_widget_override_color().
|
Gtk.Widget | |
override_color
(StateFlags state, RGBA color)
:
none
Sets the color to use for a widget.
Sets the color to use for a widget.
All other style values are left untouched. This API is mostly meant as a quick way for applications to change a widget appearance. If you are developing a widgets library and intend this change to be themeable, it is better done by setting meaningful CSS classes and regions in your widget/container implementation through gtk_style_context_add_class() and gtk_style_context_add_region(). This way, your widget library can install a GtkCssProvider with the GTK_STYLE_PROVIDER_PRIORITY_FALLBACK priority in order to provide a default styling for those widgets that need so, and this theming may fully overridden by the user's theme. Note that for complex widgets this may bring in undesired results (such as uniform background color everywhere), in these cases it is better to fully style such widgets through a GtkCssProvider with the GTK_STYLE_PROVIDER_PRIORITY_APPLICATION priority.
|
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(). Note that the underlying properties have the GdkColor type, so the alpha value in primary and secondary will be ignored.
|
Gtk.Widget | |
override_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 gtk_widget_override_color().
|
Gtk.Widget | |
Sets a symbolic color for a widget.
Sets a symbolic color for a widget.
All other style values are left untouched. See gtk_widget_override_color() for overriding the foreground or background color.
|
Gtk.Widget | |
Parses a standard X Window System geometry string - see the
manual page for X (type 'man X') for details on this.
Parses a standard X Window System geometry string - see the
manual page for X (type 'man X') for details on this. gtk_window_parse_geometry() does work on all GTK+ ports including Win32 but is primarily intended for an X environment. If either a size or a position can be extracted from the geometry string, gtk_window_parse_geometry() returns TRUE and calls gtk_window_set_default_size() and/or gtk_window_move() to resize/move the window. If gtk_window_parse_geometry() returns TRUE, it will also set the GDK_HINT_USER_POS and/or GDK_HINT_USER_SIZE hints indicating to the window manager that the size/position of the window was user-specified. This causes most window managers to honor the geometry. Note that for gtk_window_parse_geometry() to work as expected, it has to be called when the window has its "final" size, i.e. after calling gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints() on the window. |[ include static void fill_with_content (GtkWidget *vbox) { /* fill with content... */ } int main (int argc, char *argv[]) { GtkWidget *window, *vbox; GdkGeometry size_hints = { 100, 50, 0, 0, 100, 50, 10, 10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST }; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); fill_with_content (vbox); gtk_widget_show_all (vbox); gtk_window_set_geometry_hints (GTK_WINDOW (window), window, &size_hints, GDK_HINT_MIN_SIZE | GDK_HINT_BASE_SIZE | GDK_HINT_RESIZE_INC); if (argc > 1) { if (!gtk_window_parse_geometry (GTK_WINDOW (window), argv[1])) fprintf (stderr, "Failed to parse 's'\n", argv[1]); } gtk_widget_show_all (window); gtk_main (); return 0; } ]|
|
Gtk.Window | |
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 | |
present
()
:
none
Presents a window to the user.
Presents a window to the user. This may mean raising the window
in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user's platform, window manager, and preferences. If window is hidden, this function calls gtk_widget_show() as well. This function should be used when the user tries to open a window that's already open. Say for example the preferences dialog is currently open, and the user chooses Preferences from the menu a second time; use gtk_window_present() to move the already-open dialog where the user can see it. If you are calling this function in response to a user interaction, it is preferable to use gtk_window_present_with_time().
|
Gtk.Window | |
present_with_time
(guint32 timestamp)
:
none
Presents a window to the user in response to a user interaction.
Presents a window to the user in response to a user interaction.
If you need to present a window without a timestamp, use gtk_window_present(). See gtk_window_present() for details.
|
Gtk.Window | |
When a container receives a call to the draw function, it must send
synthetic GtkWidget::draw calls to all children that don't have their own GdkWindows.
When a container receives a call to the draw function, it must send
synthetic GtkWidget::draw calls to all children that don't have their own GdkWindows. This function provides a convenient way of doing this. A container, when it receives a call to its GtkWidget::draw function, calls gtk_container_propagate_draw() once for each child, passing in the cr the container received. gtk_container_propagate_draw() takes care of translating the origin of cr, and deciding whether the draw needs to be sent to the child. It is a convenient and optimized way of getting the same effect as calling gtk_widget_draw() on the child directly. In most cases, a container can simply either inherit the GtkWidget::draw implementation from GtkContainer, or do some drawing and then chain to the ::draw implementation from GtkContainer.
|
Gtk.Container | |
Propagate a key press or release event to the focus widget and
up the focus container chain until a widget handles event.
Propagate a key press or release event to the focus widget and
up the focus container chain until a widget handles event. This is normally called by the default ::key_press_event and ::key_release_event handlers for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.
|
Gtk.Window | |
queue_compute_expand
()
:
none
Mark widget as needing to recompute its expand flags.
Mark widget as needing to recompute its expand flags. Call
this function when setting legacy expand child properties on the child of a container. See gtk_widget_compute_expand().
|
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 | |
Convenience function that calls gtk_widget_queue_draw_region() on
the region created from the given coordinates.
Convenience function that calls gtk_widget_queue_draw_region() on
the region created from the given coordinates. The region here is specified in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that are not GTK_NO_WINDOW widgets, and are relative to widget->allocation.x,
|
Gtk.Widget | |
queue_draw_region
(Region region)
:
none
Invalidates the rectangular area of widget defined by region by
calling gdk_window_invalidate_region() on the widget's window and all its child windows.
Invalidates the rectangular area of widget defined by region by
calling gdk_window_invalidate_region() on the 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 to schedule a redraw of a GtkDrawingArea or some portion thereof.
|
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. from inside its implementation of the GtkWidgetClass::size_allocate virtual method. Calls to gtk_widget_queue_resize() from inside GtkWidgetClass::size_allocate will be silently ignored.
|
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::draw. Or simply g_signal_connect () to the GtkWidget::realize signal.
|
Gtk.Widget | |
region_intersect
(Region region)
:
cairo.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 cairo_region_is_empty() to check.
|
Gtk.Widget | |
remove
(Widget widget)
:
none
Removes widget from container.
Removes widget from container. widget must be inside container.
Note that container will own a reference to widget, and that this may be the last reference held; so removing a widget from its container can destroy that widget. If you want to use widget again, you need to add a reference to it while it's not inside a container, using g_object_ref(). If you don't want to use widget again it's usually more efficient to simply destroy it directly using gtk_widget_destroy() since this will remove it from the container and help break any circular reference count cycles.
|
Gtk.Container | |
remove_accel_group
(AccelGroup accel_group)
:
none
Reverses the effects of gtk_window_add_accel_group().
Reverses the effects of gtk_window_add_accel_group().
|
Gtk.Window | |
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 | |
Removes a mnemonic from this window.
Removes a mnemonic from this window.
|
Gtk.Window | |
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 | |
A convenience function that uses the theme settings for widget
to look up stock_id and render it to a pixbuf.
A convenience function that uses the theme 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(). stock ID wasn't known
|
Gtk.Widget | |
A convenience function that uses the theme engine and style
settings for widget to look up stock_id and render it to a pixbuf.
A convenience function that uses the theme engine and style
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. 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(). stock ID wasn't known
|
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_style
()
:
none
Updates the style context of widget and all descendents
by updating its widget path.
Updates the style context of widget and all descendents
by updating its widget path. GtkContainers may want to use this on a child when reordering it in a way that a different style might apply to it. See also gtk_container_get_path_for_child().
|
Gtk.Widget | |
reshow_with_initial_size
()
:
none
Hides window, then reshows it, resetting the
default size and position of the window.
Hides window, then reshows it, resetting the
default size and position of the window. Used by GUI builders only.
|
Gtk.Window | |
Resizes the window as if the user had done so, obeying geometry
constraints.
Resizes the window as if the user had done so, obeying geometry
constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call gtk_widget_set_size_request() to set the window's request to a smaller value. If gtk_window_resize() is called before showing a window for the first time, it overrides any default size set with gtk_window_set_default_size(). Windows may not be resized smaller than 1 by 1 pixels.
|
Gtk.Window | |
resize_children
()
:
none
|
Gtk.Container | |
resize_grip_is_visible
()
:
gboolean
Determines whether a resize grip is visible for the specified window.
Determines whether a resize grip is visible for the specified window.
|
Gtk.Window | |
Like gtk_window_resize(), but width and height are interpreted
in terms of the base size and increment set with gtk_window_set_geometry_hints.
Like gtk_window_resize(), but width and height are interpreted
in terms of the base size and increment set with gtk_window_set_geometry_hints.
|
Gtk.Window | |
Very rarely-used function.
Very rarely-used function. This function is used to emit
an expose event 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_draw(). 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_accept_focus
(gboolean setting)
:
none
Windows may set a hint asking the desktop environment not to receive
the input focus.
Windows may set a hint asking the desktop environment not to receive
the input focus. This function sets this hint.
|
Gtk.Window | |
set_allocation
(RectangleInt 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. The allocation set should be the "adjusted" or actual allocation. If you're implementing a GtkContainer, you want to use gtk_widget_size_allocate() instead of gtk_widget_set_allocation(). The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside gtk_widget_size_allocate() to create an adjusted allocation.
|
Gtk.Widget | |
set_app_paintable
(gboolean app_paintable)
:
none
Sets whether the application intends to draw on the widget in
an GtkWidget::draw handler.
Sets whether the application intends to draw on the widget in
an GtkWidget::draw 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.
|
Gtk.Widget | |
set_application
(Application application)
:
none
Sets or unsets the GtkApplication associated with the window.
Sets or unsets the GtkApplication associated with the window.
The application will be kept alive for at least as long as the window is open.
|
Gtk.Window | |
set_border_width
(guint32 border_width)
:
none
Sets the border width of the container.
Sets the border width of the container.
The border width of a container is the amount of space to leave around the outside of the container. The only exception to this is GtkWindow; because toplevel windows can't leave space outside, they leave the space inside. The border is added on all sides of the container. To add space to only one side, one approach is to create a GtkAlignment widget, call gtk_widget_set_size_request() to give it a size, and place it on the side of the container as a spacer.
|
Gtk.Container | |
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
(gboolean 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
(gboolean 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
(gboolean 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_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 | |
set_decorated
(gboolean setting)
:
none
By default, windows are decorated with a title bar, resize
controls, etc.
By default, windows are decorated with a title bar, resize
controls, etc. Some window managers allow GTK+ to disable these decorations, creating a borderless window. If you set the decorated property to FALSE using this function, GTK+ will do its best to convince the window manager not to decorate the window. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_widget_show(). On Windows, this function always works, since there's no window manager policy involved.
|
Gtk.Window | |
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).
The default widget is the widget that's activated when the user
presses Enter in a dialog (for example). This function sets or unsets the default widget for a GtkWindow about. When setting (rather than unsetting) the default widget it's generally easier to call gtk_widget_grab_focus() on the widget. Before making a widget the default widget, you must set the GTK_CAN_DEFAULT flag on the widget you'd like to make the default using GTK_WIDGET_SET_FLAGS().
|
Gtk.Window | |
Like gtk_window_set_default_size(), but width and height are interpreted
in terms of the base size and increment set with gtk_window_set_geometry_hints.
Like gtk_window_set_default_size(), but width and height are interpreted
in terms of the base size and increment set with gtk_window_set_geometry_hints.
|
Gtk.Window | |
Sets the default size of a window.
Sets the default size of a window. If the window's "natural" size
(its size request) is larger than the default, the default will be ignored. More generally, if the default size does not obey the geometry hints for the window (gtk_window_set_geometry_hints() can be used to set these explicitly), the default size will be clamped to the nearest permitted size. Unlike gtk_widget_set_size_request(), which sets a size request for a widget and thus would keep users from shrinking the window, this function only sets the initial size, just as if the user had resized the window themselves. Users can still shrink the window again as they normally would. Setting a default size of -1 means to use the "natural" default size (the size request of the window). For more control over a window's initial size and how resizing works, investigate gtk_window_set_geometry_hints(). For some uses, gtk_window_resize() is a more appropriate function. gtk_window_resize() changes the current size of the window, rather than the size to be used on initial display. gtk_window_resize() always affects the window itself, not the geometry widget. The default size of a window only affects the first time a window is shown; if a window is hidden and re-shown, it will remember the size it had prior to hiding, rather than using the default size. Windows can't actually be 0x0 in size, they must be at least 1x1, but passing 0 for width and height is OK, resulting in a 1x1 default size.
|
Gtk.Window | |
set_deletable
(gboolean setting)
:
none
By default, windows have a close button in the window frame.
By default, windows have a close button in the window frame. Some
window managers allow GTK+ to disable this button. If you set the deletable property to FALSE using this function, GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_window_show(). On Windows, this function always works, since there's no window manager policy involved.
|
Gtk.Window | |
set_destroy_with_parent
(gboolean setting)
:
none
If setting is TRUE, then destroying the transient parent of window
will also destroy window itself.
If setting is TRUE, then destroying the transient parent of window
will also destroy window itself. This is useful for dialogs that shouldn't persist beyond the lifetime of the main window they're associated with, for example.
|
Gtk.Window | |
Enables or disables a GdkDevice to interact with widget
and all its children.
Enables or disables a GdkDevice to interact with widget
and all its children. It does so by descending through the GdkWindow hierarchy and enabling the same mask that is has for core events (i.e. the one that gdk_window_get_events() returns).
|
Gtk.Widget | |
Sets the device event mask (see GdkEventMask) for a widget.
Sets the device event mask (see GdkEventMask) for a widget. The event
mask determines which events a widget will receive from device. 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_device_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_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
(gboolean 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
(gint32 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_focus
(Widget focus)
:
none
If focus is not the current focus widget, and is focusable, sets
it as the focus widget for the window.
If focus is not the current focus widget, and is focusable, sets
it as the focus widget for the window. If focus is NULL, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use gtk_widget_grab_focus() instead of this function.
|
Gtk.Window | |
set_focus_chain
(Array focusable_widgets)
:
none
Sets a focus chain, overriding the one computed automatically by GTK+.
Sets a focus chain, overriding the one computed automatically by GTK+.
In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it's allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn't always packed. The necessary checks are done when the focus chain is actually traversed.
|
Gtk.Container | |
set_focus_child
(Widget child)
:
none
Sets, or unsets if child is NULL, the focused child of container.
Sets, or unsets if child is NULL, the focused child of container.
This function emits the GtkContainer::set_focus_child signal of default behaviour by overriding the class closure of this signal. This is function is mostly meant to be used by widgets. Applications can use gtk_widget_grab_focus() to manualy set the focus to a specific widget.
|
Gtk.Container | |
set_focus_hadjustment
(Adjustment adjustment)
:
none
Hooks up an adjustment to focus handling in a container, so when a child
of the container is focused, the adjustment is scrolled to show that widget.
Hooks up an adjustment to focus handling in a container, so when a child
of the container is focused, the adjustment is scrolled to show that widget. This function sets the horizontal alignment. See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_vadjustment() for setting the vertical adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.
|
Gtk.Container | |
set_focus_on_map
(gboolean setting)
:
none
Windows may set a hint asking the desktop environment not to receive
the input focus when the window is mapped.
Windows may set a hint asking the desktop environment not to receive
the input focus when the window is mapped. This function sets this hint.
|
Gtk.Window | |
set_focus_vadjustment
(Adjustment adjustment)
:
none
Hooks up an adjustment to focus handling in a container, so when a
child of the container is focused, the adjustment is scrolled to show that widget.
Hooks up an adjustment to focus handling in a container, so when a
child of the container is focused, the adjustment is scrolled to show that widget. This function sets the vertical alignment. See gtk_scrolled_window_get_vadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_hadjustment() for setting the horizontal adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.
|
Gtk.Container | |
This function sets up hints about how a window can be resized by
the user.
This function sets up hints about how a window can be resized by
the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the GdkGeometry struct.
|
Gtk.Window | |
set_gravity
(Gravity gravity)
:
none
Window gravity defines the meaning of coordinates passed to
gtk_window_move().
Window gravity defines the meaning of coordinates passed to
gtk_window_move(). See gtk_window_move() and GdkGravity for more details. The default window gravity is GDK_GRAVITY_NORTH_WEST which will typically "do what you mean."
|
Gtk.Window | |
set_halign
(Align align)
:
none
Sets the horizontal alignment of widget.
Sets the horizontal alignment of widget.
See the GtkWidget:halign property.
|
Gtk.Widget | |
set_has_resize_grip
(gboolean value)
:
none
Sets whether window has a corner resize grip.
Sets whether window has a corner resize grip.
Note that the resize grip is only shown if the window is actually resizable and not maximized. Use gtk_window_resize_grip_is_visible() to find out if the resize grip is currently shown.
|
Gtk.Window | |
set_has_tooltip
(gboolean 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_user_ref_count
(gboolean setting)
:
none
Tells GTK+ whether to drop its extra reference to the window
when gtk_window_destroy() is called.
Tells GTK+ whether to drop its extra reference to the window
when gtk_window_destroy() is called. This function is only exported for the benefit of language bindings which may need to keep the window alive until their wrapper object is garbage collected. There is no justification for ever calling this function in an application.
|
Gtk.Window | |
set_has_window
(gboolean 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 do not create a window for themselves in GtkWidget::realize must announce this by calling this function with has_window = FALSE. This function should only be called by widget implementations, and they should call it in their init() function.
|
Gtk.Widget | |
set_hexpand
(gboolean expand)
:
none
Sets whether the widget would like any available extra horizontal
space.
Sets whether the widget would like any available extra horizontal
space. When a user resizes a GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand. Call this function to set the expand flag if you would like your widget to become larger horizontally when the window has extra room. By default, widgets automatically expand if any of their children want to expand. (To see if a widget will automatically expand given its current children and state, call gtk_widget_compute_expand(). A container can decide how the expandability of children affects the expansion of the container by overriding the compute_expand virtual method on GtkWidget.). Setting hexpand explicitly with this function will override the automatic expand behavior. This function forces the widget to expand or not to expand, regardless of children. The override occurs because gtk_widget_set_hexpand() sets the hexpand-set property (see gtk_widget_set_hexpand_set()) which causes the widget's hexpand value to be used, rather than looking at children and widget state.
|
Gtk.Widget | |
set_hexpand_set
(gboolean set)
:
none
Sets whether the hexpand flag (see gtk_widget_get_hexpand()) will
be used.
Sets whether the hexpand flag (see gtk_widget_get_hexpand()) will
be used. The hexpand-set property will be set automatically when you call gtk_widget_set_hexpand() to set hexpand, so the most likely reason to use this function would be to unset an explicit expand flag. If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand. There are few reasons to use this function, but it's here for completeness and consistency.
|
Gtk.Widget | |
set_icon
(Pixbuf icon)
:
none
Sets up the icon representing a GtkWindow.
Sets up the icon representing a GtkWindow. This icon is used when
the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. The icon should be provided in whatever size it was naturally drawn; that is, don't scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality. If you have your icon hand-drawn in multiple sizes, use gtk_window_set_icon_list(). Then the best size will be used. This function is equivalent to calling gtk_window_set_icon_list() with a 1-element list. See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.
|
Gtk.Window | |
Sets the icon for window.
|
Gtk.Window | |
set_icon_list
(Array list)
:
none
Sets up the icon representing a GtkWindow.
Sets up the icon representing a GtkWindow. The icon is used when
the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. gtk_window_set_icon_list() allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don't scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality. By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling. larger images (64x64, 128x128) if you have them. See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go. Note that transient windows (those who have been set transient for another window using gtk_window_set_transient_for()) will inherit their icon from their transient parent. So there's no need to explicitly set the icon on transient windows.
|
Gtk.Window | |
set_icon_name
(String name)
:
none
Sets the icon for the window from a named themed icon.
Sets the icon for the window from a named themed icon. See
the docs for GtkIconTheme for more details. Note that this has nothing to do with the WM_ICON_NAME property which is mentioned in the ICCCM.
|
Gtk.Window | |
set_keep_above
(gboolean setting)
:
none
Asks to keep window above, so that it stays on top.
Asks to keep window above, so that it stays on top. Note that
you shouldn't assume the window is definitely above afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could not keep it above, and not all window managers support keeping windows above. But normally the window will end kept above. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be kept above when it appears onscreen initially. You can track the above state via the "window-state-event" signal on GtkWidget. Note that, according to the Manager Hints specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.
|
Gtk.Window | |
set_keep_below
(gboolean setting)
:
none
Asks to keep window below, so that it stays in bottom.
Asks to keep window below, so that it stays in bottom. Note that
you shouldn't assume the window is definitely below afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could not keep it below, and not all window managers support putting windows below. But normally the window will be kept below. Just don't write code that crashes if not. It's permitted to call this function before showing a window, in which case the window will be kept below when it appears onscreen initially. You can track the below state via the "window-state-event" signal on GtkWidget. Note that, according to the Manager Hints specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.
|
Gtk.Window | |
set_mapped
(gboolean 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_margin_bottom
(gint32 margin)
:
none
Sets the bottom margin of widget.
Sets the bottom margin of widget.
See the GtkWidget:margin-bottom property.
|
Gtk.Widget | |
set_margin_left
(gint32 margin)
:
none
Sets the left margin of widget.
Sets the left margin of widget.
See the GtkWidget:margin-left property.
|
Gtk.Widget | |
set_margin_right
(gint32 margin)
:
none
Sets the right margin of widget.
Sets the right margin of widget.
See the GtkWidget:margin-right property.
|
Gtk.Widget | |
set_margin_top
(gint32 margin)
:
none
Sets the top margin of widget.
Sets the top margin of widget.
See the GtkWidget:margin-top property.
|
Gtk.Widget | |
set_mnemonic_modifier
(ModifierType modifier)
:
none
Sets the mnemonic modifier for this window.
Sets the mnemonic modifier for this window.
|
Gtk.Window | |
set_mnemonics_visible
(gboolean setting)
:
none
Sets the GtkWindow:mnemonics-visible property.
Sets the GtkWindow:mnemonics-visible property.
|
Gtk.Window | |
set_modal
(gboolean modal)
:
none
Sets a window modal or non-modal.
Sets a window modal or non-modal. Modal windows prevent interaction
with other windows in the same application. To keep modal dialogs on top of main application windows, use gtk_window_set_transient_for() to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent.
|
Gtk.Window | |
set_name
(String name)
:
none
Widgets can be named, which allows you to refer to them from a
CSS file.
Widgets can be named, which allows you to refer to them from a
CSS file. You can apply a style to widgets with a particular name in the CSS file. See the documentation for the CSS syntax (on the same page as the docs for GtkStyleContext). Note that the CSS syntax has certain special characters to delimit and represent elements in a selector (period, #, >, *...), so using these will make your widget impossible to match by name. Any combination of alphanumeric symbols, dashes and underscores will suffice.
|
Gtk.Widget | |
set_no_show_all
(gboolean no_show_all)
:
none
Sets the GtkWidget:no-show-all property, which determines whether
calls to gtk_widget_show_all() will affect this widget.
Sets the GtkWidget:no-show-all property, which determines whether
calls to gtk_widget_show_all() will affect this widget. This is mostly for use in constructing widget hierarchies with externally controlled visibility, see GtkUIManager.
|
Gtk.Widget | |
set_opacity
(gdouble opacity)
:
none
Request the windowing system to make window partially transparent,
with opacity 0 being fully transparent and 1 fully opaque.
Request the windowing system to make window partially transparent,
with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.) On X11 this has any effect only on X screens with a compositing manager running. See gtk_widget_is_composited(). On Windows it should work always. Note that setting a window's opacity after the window has been shown causes it to flicker once on Windows.
|
Gtk.Window | |
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.
For GtkWindow classes, setting a parent_window effects whether the window is a toplevel window or can be embedded into other widgets. For GtkWindow classes, this needs to be called before the window is realized.
|
Gtk.Widget | |
set_position
(WindowPosition position)
:
none
Sets a position constraint for this window.
Sets a position constraint for this window. If the old or new
constraint is GTK_WIN_POS_CENTER_ALWAYS, this will also cause the window to be repositioned to satisfy the new constraint.
|
Gtk.Window | |
set_realized
(gboolean 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_reallocate_redraws
(gboolean needs_redraws)
:
none
Sets the reallocate_redraws flag of the container to the given value.
Sets the reallocate_redraws flag of the container to the given value.
Containers requesting reallocation redraws get automatically redrawn if any of their children changed allocation.
|
Gtk.Container | |
set_receives_default
(gboolean 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
(gboolean 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 you are responsible for invalidating both the old and new allocation of the widget when the widget is moved and responsible for invalidating regions newly when the widget increases size.
|
Gtk.Widget | |
set_resizable
(gboolean resizable)
:
none
Sets whether the user can resize a window.
Sets whether the user can resize a window. Windows are user resizable
by default.
|
Gtk.Window | |
set_resize_mode
(ResizeMode resize_mode)
:
none
Sets the resize mode for the container.
Sets the resize mode for the container.
The resize mode of a container determines whether a resize request will be passed to the container's parent, queued for later execution or executed immediately.
|
Gtk.Container | |
set_role
(String role)
:
none
This function is only useful on X11, not with other GTK+ targets.
This function is only useful on X11, not with other GTK+ targets.
In combination with the window title, the window role allows a window manager to identify "the same" window when an application is restarted. So for example you might set the "toolbox" role on your app's toolbox window, so that when the user restarts their session, the window manager can put the toolbox back in the same place. If a window already has a unique title, you don't need to set the role, since the WM can use the title to identify the window when restoring the session.
|
Gtk.Window | |
set_screen
(Screen screen)
:
none
Sets the GdkScreen where the window is displayed; if
the window is already mapped, it will be unmapped, and then remapped on the new screen.
Sets the GdkScreen where the window is displayed; if
the window is already mapped, it will be unmapped, and then remapped on the new screen.
|
Gtk.Window | |
set_sensitive
(gboolean 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." The size request set here does not include any margin from the GtkWidget properties margin-left, margin-right, margin-top, and margin-bottom, but it does include pretty much all other padding or border properties set by any subclass of GtkWidget.
|
Gtk.Widget | |
set_skip_pager_hint
(gboolean setting)
:
none
Windows may set a hint asking the desktop environment not to display
the window in the pager.
Windows may set a hint asking the desktop environment not to display
the window in the pager. This function sets this hint. (A "pager" is any desktop navigation tool such as a workspace switcher that displays a thumbnail representation of the windows on the screen.)
|
Gtk.Window | |
set_skip_taskbar_hint
(gboolean setting)
:
none
Windows may set a hint asking the desktop environment not to display
the window in the task bar.
Windows may set a hint asking the desktop environment not to display
the window in the task bar. This function sets this hint.
|
Gtk.Window | |
set_startup_id
(String startup_id)
:
none
Startup notification identifiers are used by desktop environment to
track application startup, to provide user feedback and other features.
Startup notification identifiers are used by desktop environment to
track application startup, to provide user feedback and other features. This function changes the corresponding property on the underlying GdkWindow. Normally, startup identifier is managed automatically and you should only use this function in special cases like transferring focus from other processes. You should use this function before calling gtk_window_present() or any equivalent function generating a window map event. This function is only useful on X11, not with other GTK+ targets.
|
Gtk.Window | |
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_state_flags
(StateFlags flags, gboolean clear)
:
none
This function is for use in widget implementations.
This function is for use in widget implementations. Turns on flag
values in the current widget state (insensitive, prelighted, etc.). It is worth mentioning that any other state than GTK_STATE_FLAG_INSENSITIVE, will be propagated down to all non-internal children if widget is a GtkContainer, while GTK_STATE_FLAG_INSENSITIVE itself will be propagated down to all GtkContainer children by different means than turning on the state flag down the hierarchy, both gtk_widget_get_state_flags() and gtk_widget_is_sensitive() will make use of these.
|
Gtk.Widget | |
set_style
(Style style)
:
none
Used to set the GtkStyle for a widget (widget->style).
Used to set the GtkStyle for a widget (widget->style). Since
GTK 3, this function does nothing, the passed in style is ignored.
|
Gtk.Widget | |
set_support_multidevice
(gboolean support_multidevice)
:
none
Enables or disables multiple pointer awareness.
Enables or disables multiple pointer awareness. If this setting is TRUE,
that if custom GdkWindows are created in GtkWidget::realize, gdk_window_set_support_multidevice() will have to be called manually on them.
|
Gtk.Widget | |
set_title
(String title)
:
none
Sets the title of the GtkWindow.
Sets the title of the GtkWindow. The title of a window will be
displayed in its title bar; on the X Window System, the title bar is rendered by the window manager, so exactly how the title appears to users may vary according to a user's exact configuration. The title should help a user distinguish this window from other windows they may have open. A good title might include the application name and current document filename, for example.
|
Gtk.Window | |
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 | |
set_transient_for
(Window parent)
:
none
Dialog windows should be set transient for the main application
window they were spawned from.
Dialog windows should be set transient for the main application
window they were spawned from. This allows linkend="gtk-X11-arch">window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf. Passing NULL for parent unsets the current transient window. On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X.
|
Gtk.Window | |
set_type_hint
(WindowTypeHint hint)
:
none
By setting the type hint for the window, you allow the window
manager to decorate and handle the window in a way which is suitable to the function of the window in your application.
By setting the type hint for the window, you allow the window
manager to decorate and handle the window in a way which is suitable to the function of the window in your application. This function should be called before the window becomes visible. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_type_hint() on your behalf.
|
Gtk.Window | |
set_urgency_hint
(gboolean setting)
:
none
Windows may set a hint asking the desktop environment to draw
the users attention to the window.
Windows may set a hint asking the desktop environment to draw
the users attention to the window. This function sets this hint.
|
Gtk.Window | |
set_valign
(Align align)
:
none
Sets the vertical alignment of widget.
Sets the vertical alignment of widget.
See the GtkWidget:valign property.
|
Gtk.Widget | |
set_vexpand
(gboolean expand)
:
none
Sets whether the widget would like any available extra vertical
space.
Sets whether the widget would like any available extra vertical
space. See gtk_widget_set_hexpand() for more detail.
|
Gtk.Widget | |
set_vexpand_set
(gboolean set)
:
none
Sets whether the vexpand flag (see gtk_widget_get_vexpand()) will
be used.
Sets whether the vexpand flag (see gtk_widget_get_vexpand()) will
be used. See gtk_widget_set_hexpand_set() for more detail.
|
Gtk.Widget | |
set_visible
(gboolean 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_visual
(Visual visual)
:
none
Sets the visual that should be used for by widget and its children for
creating GdkWindows.
Sets the visual that should be used for by widget and its children for
creating GdkWindows. The visual must be on the same GdkScreen as returned by gdk_widget_get_screen(), so handling the GtkWidget::screen-changed signal is necessary. Setting a new visual will not cause widget to recreate its windows, so you should call this function before widget is realized.
|
Gtk.Widget | |
set_widget
(Widget widget)
:
none
|
GtkSource.CompletionInfo | |
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 | |
Don't use this function.
Don't use this function. It sets the X Window System "class" and
"name" hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call gtk_window_set_role() on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session.
|
Gtk.Window | |
shape_combine_region
(Region region)
:
none
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_region() 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 | |
size_allocate
(RectangleInt 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. In this function, the allocation may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual method on the child will be used to adjust the allocation. Standard adjustments include removing the widget's margins, and applying the widget's GtkWidget:halign and GtkWidget:valign properties.
|
Gtk.Widget | |
size_request
()
:
Gtk.Requisition
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.
|
Gtk.Widget | |
stick
()
:
none
Asks to stick window, which means that it will appear on all user
desktops.
Asks to stick window, which means that it will appear on all user
desktops. Note that you shouldn't assume the window is definitely stuck afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don't write code that crashes if not. It's permitted to call this function before showing a window. You can track stickiness via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
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 widget->style = gtk_style_attach (widget->style, widget->window); and should only ever be called in a derived widget's "realize" implementation which does not chain up to its parent class' "realize" implementation, because one of the parent classes (finally GtkWidget) would attach the style itself.
|
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
(Widget dest_widget, gint32 src_x, gint32 src_y, Object out_values)
:
gboolean
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 | |
unfullscreen
()
:
none
Asks to toggle off the fullscreen state for window.
Asks to toggle off the fullscreen state for window. Note that you
shouldn't assume the window is definitely not full screen afterward, because other entities (e.g. the user or linkend="gtk-X11-arch">window manager) could fullscreen it again, and not all window managers honor requests to unfullscreen windows. But normally the window will end up restored to its normal state. Just don't write code that crashes if not. You can track the fullscreen state via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
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 | |
unmaximize
()
:
none
Asks to unmaximize window.
Asks to unmaximize window. Note that you shouldn't assume the
window is definitely unmaximized afterward, because other entities (e.g. the user or window manager) could maximize it again, and not all window managers honor requests to unmaximize. But normally the window will end up unmaximized. Just don't write code that crashes if not. You can track maximization via the "window-state-event" signal on GtkWidget.
|
Gtk.Window | |
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 | |
unset_focus_chain
()
:
none
Removes a focus chain explicitly set with gtk_container_set_focus_chain().
Removes a focus chain explicitly set with gtk_container_set_focus_chain().
|
Gtk.Container | |
unset_state_flags
(StateFlags flags)
:
none
This function is for use in widget implementations.
This function is for use in widget implementations. Turns off flag
values for the current widget state (insensitive, prelighted, etc.). See gtk_widget_set_state_flags().
|
Gtk.Widget | |
unstick
()
:
none
Asks to unstick window, which means that it will appear on only
one of the user's desktops.
Asks to unstick window, which means that it will appear on only
one of the user's desktops. Note that you shouldn't assume the window is definitely unstuck afterward, because other entities (e.g. the user or window manager) could stick it again. But normally the window will end up stuck. Just don't write code that crashes if not. You can track stickiness via the "window-state-event" signal on GtkWidget.
|
Gtk.Window |
Event | Defined By | |
---|---|---|
accel_closures_changed (Widget self)
:
none
|
Gtk.Widget | |
activate_default (Window self)
:
none
The ::activate-default signal is a
keybinding signal which gets emitted when the user activates the default widget of window.
The ::activate-default signal is a
keybinding signal which gets emitted when the user activates the default widget of window.
|
Gtk.Window | |
activate_focus (Window self)
:
none
The ::activate-focus signal is a
keybinding signal which gets emitted when the user activates the currently focused widget of window.
The ::activate-focus signal is a
keybinding signal which gets emitted when the user activates the currently focused widget of window.
|
Gtk.Window | |
|
Gtk.Container | |
before_show (CompletionInfo self)
:
none
|
GtkSource.CompletionInfo | |
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 | |
check_resize (Container self)
:
none
|
Gtk.Container | |
|
Gtk.Container | |
|
Gtk.Container | |
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 | |
The ::configure-event signal will be emitted when the size, position or
stacking of the widget's window has changed.
The ::configure-event signal will be emitted when the size, position or
stacking of the widget's window has changed. 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 | |
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 (Widget self)
:
none
Signals that all holders of a reference to the widget should release
the reference that they hold.
Signals that all holders of a reference to the widget should release
the reference that they hold. May result in finalization of the widget if all references are released.
|
Gtk.Widget | |
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, guint32 info, guint32 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, gint32 x, gint32 y, SelectionData data, guint32 info, guint32 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 If the data was received in response to a GtkWidget::drag-drop signal (and this is the last target to be received), the handler for this signal is expected to process the received data and then call gtk_drag_finish(), setting the success parameter depending on whether the data was processed successfully. The handler may inspect and modify drag_context->action before calling gtk_drag_finish(), e.g. to implement GDK_ACTION_ASK as shown in the following example: |[ void drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint time) { if ((data->length >= 0) && (data->format == 8)) { if (drag_context->action == GDK_ACTION_ASK) { GtkWidget *dialog; gint response; dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_YES_NO, "Move the data ?\n"); response = gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); if (response == GTK_RESPONSE_YES) drag_context->action = GDK_ACTION_MOVE; else drag_context->action = GDK_ACTION_COPY; } gtk_drag_finish (drag_context, TRUE, FALSE, time); return; } gtk_drag_finish (drag_context, FALSE, FALSE, time); } ]|
|
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 | |
This signal is emitted when a widget is supposed to render itself.
This signal is emitted when a widget is supposed to render itself.
The widget's top left corner must be painted at the origin of the passed in context and be sized to the values returned by gtk_widget_get_allocated_width() and gtk_widget_get_allocated_height(). Signal handlers connected to this signal can modify the cairo context passed as cr in any way they like and don't need to restore it. The signal emission takes care of calling cairo_save() before and cairo_restore() after invoking the handler.
|
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 | |
|
Gtk.Widget | |
The ::focus-in-event signal will be emitted when the keyboard focus
enters the widget's window.
The ::focus-in-event signal will be emitted when the keyboard focus
enters the widget's window. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask. FALSE to propagate the event further.
|
Gtk.Widget | |
The ::focus-out-event signal will be emitted when the keyboard focus
leaves the widget's window.
The ::focus-out-event signal will be emitted when the keyboard focus
leaves the widget's window. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask. FALSE to propagate the event further.
|
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 ancestor is a GtkWindow. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.
|
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. The signal
emission will reoccur at the key-repeat rate when the key is kept 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 released.
The ::key-release-event signal is emitted when a key is released.
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 | |
keys_changed (Window self)
:
none
The ::keys-changed signal gets emitted when the set of accelerators
or mnemonics that are associated with window changes.
The ::keys-changed signal gets emitted when the set of accelerators
or mnemonics that are associated with window changes.
|
Gtk.Window | |
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 | |
The ::map-event signal will be emitted when the widget's window is
mapped.
The ::map-event signal will be emitted when the widget's window is
mapped. A window is mapped when it becomes visible on the screen. 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 | |
|
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 object)
:
none
|
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 | |
This signal gets emitted whenever a widget should pop up a context
menu.
This signal gets emitted whenever a widget should pop up a context
menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the GtkEntry widget creates a menu with clipboard commands. See for an example of how to use this signal.
|
Gtk.Widget | |
The ::property-notify-event signal will be emitted when a property on
the widget's window has been changed or deleted.
The ::property-notify-event signal will be emitted when a property on
the widget's window has been changed or deleted. To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_PROPERTY_CHANGE_MASK mask. FALSE to propagate the event further.
|
Gtk.Widget | |
To receive this signal the GdkWindow associated to the widget needs
to enable the GDK_PROXIMITY_IN_MASK mask.
To receive this signal the GdkWindow associated to the widget needs
to enable the GDK_PROXIMITY_IN_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
Gtk.Widget | |
To receive this signal the GdkWindow associated to the widget needs
to enable the GDK_PROXIMITY_OUT_MASK mask.
To receive this signal the GdkWindow associated to the widget needs
to enable the GDK_PROXIMITY_OUT_MASK mask. This signal will be sent to the grab widget if there is one. FALSE to propagate the event further.
|
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 | |
|
Gtk.Container | |
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 | |
The ::selection-clear-event signal will be emitted when the
the widget's window has lost ownership of a selection.
The ::selection-clear-event signal will be emitted when the
the widget's window has lost ownership of a selection. FALSE to propagate the event further.
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
|
Gtk.Widget | |
The ::selection-request-event signal will be emitted when
another client requests ownership of the selection owned by the widget's window.
The ::selection-request-event signal will be emitted when
another client requests ownership of the selection owned by the widget's window. FALSE to propagate the event further.
|
Gtk.Widget | |
|
Gtk.Window | |
|
Gtk.Container | |
show (Widget self)
:
none
|
Gtk.Widget | |
|
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 | |
state_flags_changed (Widget self, StateFlags flags)
:
none
The ::state-flags-changed signal is emitted when the widget state
changes, see gtk_widget_get_state_flags().
The ::state-flags-changed signal is emitted when the widget state
changes, see gtk_widget_get_state_flags().
|
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. Note that this signal is emitted for changes to the deprecated GtkStyle. To track changes to the GtkStyleContext associated with a widget, use the GtkWidget::style-updated signal.
|
Gtk.Widget | |
style_updated (Widget self)
:
none
The ::style-updated signal is emitted when the GtkStyleContext
of a widget is changed.
The ::style-updated signal is emitted when the GtkStyleContext
of a widget is changed. Note that style-modifying functions like gtk_widget_override_color() also cause this signal to be emitted.
|
Gtk.Widget | |
unmap (Widget self)
:
none
|
Gtk.Widget | |
The ::unmap-event signal will be emitted when the widget's window is
unmapped.
The ::unmap-event signal will be emitted when the widget's window is
unmapped. A window is unmapped when it becomes invisible on the screen. 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 | |
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 |
---|---|
GtkSource.Completion
Method |
get_info_window
()
:
GtkSource.CompletionInfo
|
GtkSource.CompletionProvider
Method |
update_info
(CompletionProposal proposal, CompletionInfo info)
:
none
|