Sets our main struct and passes it to the parent class.
Creates a new terminal widget.
This signal is emitted when the a child sends a bell request to the terminal.
Emitted whenever the cell size changes, e.g. due to a change in font, font-scale or cell-width/height-scale.
This signal is emitted when the terminal detects that a child watched using Terminal.watchChild has exited.
Emitted whenever the terminal receives input from the user and prepares to send it to the child process. The signal is emitted even when there is no child process.
Emitted whenever the visible appearance of the terminal has changed. Used primarily by VteTerminalAccessible
Emitted whenever Terminal.copyClipboard is called.
Emitted when the current directory URI is modified.
Emitted when the current file URI is modified.
Emitted whenever the cursor moves to a new character cell. Used primarily by VteTerminalAccessible
Emitted when the user hits the '-' key while holding the Control key.
Emitted at the child application's request.
Emitted whenever the terminal's current encoding has changed.
Emitted when the terminal receives an end-of-file from a child which is running in the terminal. This signal is frequently (but not always) emitted with a child-exited signal.
Emitted when the hovered hyperlink changes.
Emitted at the child application's request.
Emitted when the user hits the '+' key while holding the Control key.
Emitted at the child application's request.
Emitted at the child application's request.
Emitted at the child application's request.
Emitted whenever Terminal.pasteClipboard is called.
Emitted at the child application's request.
Emitted at the child application's request.
Emitted at the child application's request.
Emitted at the child application's request.
Emitted whenever the contents of terminal's selection changes.
An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.
An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.
An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.
An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.
Emitted when the terminal's window_title field is modified.
Places the selected text in the terminal in the GDK_SELECTION_CLIPBOARD selection.
Places the selected text in the terminal in the GDK_SELECTION_CLIPBOARD selection in the form specified by format.
Places the selected text in the terminal in the GDK_SELECTION_PRIMARY selection.
This function does nothing.
Checks each regex in regexes if the text in and around the position of the event matches the regular expressions. If a match exists, the matched text is stored in matches at the position of the regex in regexes; otherwise NULL is stored there.
Interprets data as if it were data received from a child process. This can either be used to drive the terminal without a child process, or just to mess with your users.
Sends a block of UTF-8 text to the child as if it were entered by the user at the keyboard.
Sends a block of binary data to the child.
Checks whether or not the terminal will attempt to draw bold text, either by using a bold font variant or by repainting text with a different offset.
Checks whether or not hyperlinks (OSC 8 escape sequence) are allowed.
Checks whether or not the terminal will beep when the child outputs the "bl" sequence.
Checks whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
Returns whether ambiguous-width characters are narrow or wide. (Note that when using a non-UTF-8 encoding set via Terminal.setEncoding, the width of ambiguous-width characters is fixed and determined by the encoding itself.)
Returns the background colour, as used by terminal when drawing the background, which may be different from the color set by Terminal.setColorBackground.
Returns the currently set cursor blink mode.
Reads the location of the insertion cursor and returns it. The row coordinate is absolute.
Returns the currently set cursor shape.
Determines the name of the encoding in which the terminal expects data to be encoded, or NULL if UTF-8 is in use.
Queries the terminal for information about the fonts which will be used to draw text in the terminal. The actual font takes the font scale into account, this is not reflected in the return value, the unscaled font is returned.
Fills in some hints from terminal's geometry. The hints filled are those covered by the GDK_HINT_RESIZE_INC, GDK_HINT_MIN_SIZE and GDK_HINT_BASE_SIZE flags.
Checks if the terminal currently contains selected text. Note that this is different from determining if the terminal is the owner of any gtk.Clipboard items.
Returns whether the terminal allow user input.
Determines the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse. This setting can be changed using Terminal.setMouseAutohide.
Returns the vte.Pty of terminal.
Checks whether or not the terminal will rewrap its contents upon resize.
the main Gtk struct as a void*
Get the main Gtk struct
Extracts a view of the visible part of the terminal. If is_selected is not NULL, characters will only be read if is_selected returns TRUE after being passed the column and row, respectively. A VteCharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics.
Checks whether or not the terminal will allow blinking text.
Extracts a view of the visible part of the terminal. If is_selected is not NULL, characters will only be read if is_selected returns TRUE after being passed the column and row, respectively. A VteCharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics.
Extracts a view of the visible part of the terminal. If is_selected is not NULL, characters will only be read if is_selected returns TRUE after being passed the column and row, respectively. A VteCharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics. The entire scrollback buffer is scanned, so it is possible to read the entire contents of the buffer using this function.
Returns the set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
Returns a nonempty string: the target of the explicit hyperlink (printed using the OSC 8 escape sequence) at the position of the event, or NULL.
Adds the regular expression regex to the list of matching expressions. When the user moves the mouse cursor over a section of displayed text which matches this expression, the text will be highlighted.
Adds the regular expression regex to the list of matching expressions. When the user moves the mouse cursor over a section of displayed text which matches this expression, the text will be highlighted.
Checks if the text in and around the specified position matches any of the regular expressions previously set using Terminal.matchAdd. If a match exists, the text string is returned and if tag is not NULL, the number associated with the matched regular expression will be stored in tag.
Checks if the text in and around the position of the event matches any of the regular expressions previously set using Terminal.matchAdd. If a match exists, the text string is returned and if tag is not NULL, the number associated with the matched regular expression will be stored in tag.
Removes the regular expression which is associated with the given tag from the list of expressions which the terminal will highlight when the user moves the mouse cursor over matching text.
Clears the list of regular expressions the terminal uses to highlight text when the user moves the mouse cursor.
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag. The terminal keeps a reference to cursor.
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.
Sends the contents of the GDK_SELECTION_CLIPBOARD selection to the terminal's child. It's called on paste menu item, or when user presses Shift+Insert.
Sends the contents of the GDK_SELECTION_PRIMARY selection to the terminal's child. The terminal will call also paste the GDK_SELECTION_PRIMARY selection when the user clicks with the the second mouse button.
Creates a new vte.Pty, and sets the emulation property from emulation.
Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.
Searches the next string matching the search regex set with Terminal.searchSetRegex.
Searches the previous string matching the search regex set with Terminal.searchSetRegex.
Sets the vte.Regex regex to search for. Unsets the search regex when passed NULL.
Sets the regex to search for. Unsets the search regex when passed NULL.
Sets whether search should wrap around to the beginning of the terminal content when reaching its end.
Selects all text within the terminal (including the scrollback buffer).
Controls whether or not the terminal will attempt to draw bold text, either by using a bold font variant or by repainting text with a different offset.
Controls whether or not hyperlinks (OSC 8 escape sequence) are allowed.
Controls whether or not the terminal will beep when the child outputs the "bl" sequence.
Modifies the terminal's backspace key binding, which controls what string or control sequence the terminal sends to its child when the user presses the backspace key.
Sets whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
Sets the terminal's cell height scale to scale.
Sets the terminal's cell width scale to scale.
This setting controls whether ambiguous-width characters are narrow or wide. (Note that when using a non-UTF-8 encoding set via Terminal.setEncoding, the width of ambiguous-width characters is fixed and determined by the encoding itself.)
Sets whether to paint the background with the background colour. The default is TRUE.
Sets the background color for text which does not have a specific background color assigned. Only has effect when no background image is set and when the terminal is not transparent.
Sets the color used to draw bold text in the default foreground color. If bold is NULL then the default color is used.
Sets the background color for text which is under the cursor. If NULL, text under the cursor will be drawn with foreground and background colors reversed.
Sets the foreground color for text which is under the cursor. If NULL, text under the cursor will be drawn with foreground and background colors reversed.
Sets the foreground color used to draw normal text.
Sets the background color for text which is highlighted. If NULL, it is unset. If neither highlight background nor highlight foreground are set, highlighted text (which is usually highlighted because it is selected) will be drawn with foreground and background colors reversed.
Sets the foreground color for text which is highlighted. If NULL, it is unset. If neither highlight background nor highlight foreground are set, highlighted text (which is usually highlighted because it is selected) will be drawn with foreground and background colors reversed.
palette specifies the new values for the 256 palette colors: 8 standard colors, their 8 bright counterparts, 6x6x6 color cube, and 24 grayscale colors. Omitted entries will default to a hardcoded value.
Sets whether or not the cursor will blink. Using VTE_CURSOR_BLINK_SYSTEM will use the gtk-cursor-blink setting.
Sets the shape of the cursor drawn.
Reset the terminal palette to reasonable compiled-in default color.
Modifies the terminal's delete key binding, which controls what string or control sequence the terminal sends to its child when the user presses the delete key.
Changes the encoding the terminal will expect data from the child to be encoded with. For certain terminal types, applications executing in the terminal can change the encoding. If codeset is NULL, it uses "UTF-8".
Sets the font used for rendering all text displayed by the terminal, overriding any fonts set using Widget.modifyFont. The terminal will immediately attempt to load the desired font, retrieve its metrics, and attempt to resize itself to keep the same number of rows and columns. The font scale is applied to the specified font.
Sets the terminal's font scale to scale.
Sets terminal as window's geometry widget. See Window.setGeometryHints for more information.
Enables or disables user input. When user input is disabled, the terminal's child will not receive any key press, or mouse button press or motion events sent to it.
Changes the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse. This setting can be read using Terminal.getMouseAutohide.
Sets pty as the PTY to use in terminal. Use NULL to unset the PTY.
Controls whether or not the terminal will rewrap its contents, including the scrollback history, whenever the terminal's width changes.
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the user presses a key. Modifier keys do not trigger this behavior.
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the new data is received from the child.
Sets the length of the scrollback buffer used by the terminal. The size of the scrollback buffer will be set to the larger of this value and the number of visible rows the widget can display, so 0 can safely be used to disable scrollback.
Attempts to change the terminal's size in terms of rows and columns. If the attempt succeeds, the widget will resize itself to the proper size.
Controls whether or not the terminal will allow blinking text.
With this function you can provide a set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
A convenience function that wraps creating the vte.Pty and spawning the child process on it. See Pty.newSync, Pty.spawnAsync, and Pty.spawnFinish for more information.
Starts the specified command under a newly-allocated controlling pseudo-terminal. The argv and envv lists should be NULL-terminated. The "TERM" environment variable is automatically set to a default value, but can be overridden from envv. pty_flags controls logging the session to the specified system log files.
Clears the current selection.
Watches child_pid. When the process exists, the child-exited signal will be called with the child's exit status.
Write contents of the current contents of terminal (including any scrollback history) to stream according to flags.
Gets the user's shell, or NULL. In the latter case, the system default (usually "/bin/sh") should be used.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Sets the cursor.
Resets the cursor. don't know if this is implemented by GTK+. Seems that it's not
Modifies the font for this widget. This just calls modifyFont(new PgFontDescription(PgFontDescription.fromString(family ~ " " ~ size)));
Queues an animation frame update and adds a callback to be called before each frame. Until the tick callback is removed, it will be called frequently (usually at the frame rate of the output device or as quickly as the application can be repainted, whichever is slower). For this reason, is most suitable for handling graphics that change every frame or every few frames. The tick callback does not automatically imply a relayout or repaint. If you want a repaint or relayout, and aren't changing widget properties that would trigger that (for example, changing the text of a gtk.Label), then you will have to call queueResize() or queuDrawArea() yourself.
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 Widget.getAllocatedWidth and Widget.getAllocatedHeight.
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 Widget.getAllocatedWidth and Widget.getAllocatedHeight.
Obtains the current default reading direction. See Widget.setDefaultDirection.
Returns the default style used by all widgets initially.
Cancels the effect of a previous call to Widget.pushCompositeChild.
Makes all newly-created widgets as composite children until the corresponding Widget.popCompositeChild call.
Sets the default reading direction for widgets where the direction has not been explicitly set by Widget.setDirection.
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.
Installs an accelerator for this widget in accel_group that causes accel_signal to be emitted if the accelerator is activated. The accel_group needs to be added to the widget’s toplevel via Window.addAccelGroup, and the signal must be of type G_SIGNAL_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 AccelMap.addEntry and Widget.setAccelPath or Menu.itemSetAccelPath instead.
Adds the device events in the bitfield events to the event mask for widget. See Widget.setDeviceEvents for details.
Adds the events in the bitfield events to the event mask for widget. See Widget.setEvents and the [input handling overview][event-masks] for details.
Adds a widget to the list of mnemonic labels for this widget. (See Widget.listMnemonicLabels). 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 destroy signal or a weak notifier.
Queues an animation frame update and adds a callback to be called before each frame. Until the tick callback is removed, it will be called frequently (usually at the frame rate of the output device or as quickly as the application can be repainted, whichever is slower). For this reason, is most suitable for handling graphics that change every frame or every few frames. The tick callback does not automatically imply a relayout or repaint. If you want a repaint or relayout, and aren’t changing widget properties that would trigger that (for example, changing the text of a gtk.Label), then you will have to call Widget.queueResize or Widget.queueDrawArea yourself.
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This is done by emitting the 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.
This function is used by custom widget implementations; if you're writing an app, you’d use Widget.grabFocus to move the focus to a particular widget, and Container.setFocusChain to change the focus tab order. So you may want to investigate those functions instead.
Emits a child-notify signal for the [child property][child-properties] child_property on widget.
Same as Widget.path, but always uses the name of a widget’s type, never uses a custom name set with Widget.setName.
Computes whether a container should give this widget extra space when possible. Containers should check this, rather than looking at Widget.getHexpand or Widget.getVexpand.
Creates a new gstreamer.Context with the appropriate font map, font options, font description, and base direction for drawing text for this widget. See also Widget.getPangoContext.
Creates a new gtk.Layout with the appropriate font map, font description, and base direction for drawing text for this widget.
Destroys a widget.
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 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.
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 grab-notify signal to check for specific devices. See Device.grabAdd.
This function is equivalent to gtk_drag_begin_with_coordinates(), passing -1, -1 as coordinates.
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.
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.
Add the image targets supported by gtk.SelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use TargetList.addImageTargets and gtk_drag_dest_set_target_list().
Add the text targets supported by gtk.SelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use TargetList.addTextTargets and gtk_drag_dest_set_target_list().
Add the URI targets supported by gtk.SelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use TargetList.addUriTargets and gtk_drag_dest_set_target_list().
Looks for a match between the supported targets of context and the dest_target_list, returning the first matching target, otherwise 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.
Returns the list of targets this widget can accept from drag-and-drop.
Returns whether the widget has been configured to always emit drag-motion signals.
Sets a widget as a potential drop destination, and adds default behaviors.
Sets this widget as a proxy for drops to another window.
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().
Tells the widget to emit drag-motion and drag-leave events regardless of the targets and the GTK_DEST_DEFAULT_MOTION flag.
Clears information about a drop destination set with gtk_drag_dest_set(). The widget will no longer receive notification of drags.
Gets the data associated with a drag. When the data is received or the retrieval fails, GTK+ will emit a drag-data-received signal. Failure of the retrieval is indicated by the length field of the selection_data signal parameter being negative. However, when gtk_drag_get_data() is called implicitely because the GTK_DEST_DEFAULT_DROP was set, then the widget will not receive notification of failed drops.
Highlights a widget as a currently hovered drop target. To end the highlight, call gtk_drag_unhighlight(). GTK+ calls this automatically if GTK_DEST_DEFAULT_HIGHLIGHT is set.
Add the writable image targets supported by gtk.SelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use TargetList.addImageTargets and gtk_drag_source_set_target_list().
Add the text targets supported by gtk.SelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use TargetList.addTextTargets and gtk_drag_source_set_target_list().
Add the URI targets supported by gtk.SelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use TargetList.addUriTargets and gtk_drag_source_set_target_list().
Gets the list of targets this widget can provide for drag-and-drop.
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.
Sets the icon that will be used for drags from a particular source to icon. See the docs for gtk.IconTheme for more details.
Sets the icon that will be used for drags from a particular source to a themed icon. See the docs for gtk.IconTheme for more details.
Sets the icon that will be used for drags from a particular widget from a gdk.Pixbuf GTK+ retains a reference for pixbuf and will release it when it is no longer needed.
Sets the icon that will be used for drags from a particular source to a stock icon.
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().
Undoes the effects of gtk_drag_source_set().
Removes a highlight set by gtk_drag_highlight() from a widget.
Draws widget to cr. The top left corner of the widget will be drawn to the currently set origin point of cr.
Ensures that widget has a style (widget->style).
Notifies the user about an input-related error on this widget. If the gtk-error-bell setting is TRUE, it calls Window.beep, otherwise it does nothing.
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 Main.doEvent so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use Window.invalidateRect to invalidate a region of the window.
Stops emission of child-notify signals on widget. The signals are queued until Widget.thawChildNotify is called on widget.
Returns the accessible object that describes the widget to an assistive technology.
Retrieves the gtk.ActionGroup that was registered using prefix. The resulting gtk.ActionGroup may have been registered to widget or any gtk.Widget in its ancestry.
Returns the baseline that has currently been allocated to widget. This function is intended to be used when implementing handlers for the draw function, and when allocating child widgets in size_allocate.
Returns the height that has currently been allocated to widget. This function is intended to be used when implementing handlers for the draw function.
Retrieves the widget’s allocated size.
Returns the width that has currently been allocated to widget. This function is intended to be used when implementing handlers for the draw function.
Retrieves the widget’s allocation.
Gets the first ancestor of widget with type widget_type. For example, gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets the first gtk.Box 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 gtk.Window in the docs for Widget.getToplevel.
Determines whether the application intends to draw on the widget in an draw handler.
Determines whether widget can be a default widget. See Widget.setCanDefault.
Determines whether widget can own the input focus. See Widget.setCanFocus.
This function is only for use in widget implementations. Obtains widget->requisition, unless someone has forced a particular geometry on the widget (e.g. with Widget.setSizeRequest), in which case it returns that geometry instead of the widget's requisition.
Gets the value set with Widget.setChildVisible. If you feel a need to use this function, your code probably needs reorganization.
Retrieves the widget’s clip area.
Returns the clipboard object for the given selection to be used with widget. widget must have a gdk.Display associated with it, so must be attached to a toplevel window.
Obtains the composite name of a widget.
Returns whether device can interact with widget and its children. See Widget.setDeviceEnabled.
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.
Gets the reading direction for a particular widget. See Widget.setDirection.
Get the gdk.Display 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 gtk.Window at the top.
Determines whether the widget is double buffered.
Returns the event mask (see GdkEventMask) for the widget. These are the events that the widget will receive.
Returns whether the widget should grab focus when it is clicked with the mouse. See Widget.setFocusOnClick.
Gets the font map that has been set with Widget.setFontMap.
Returns the cairo_font_options_t used for Pango rendering. When not set, the defaults font options for the gdk.Screen will be used.
Obtains the frame clock for a widget. The frame clock is a global “ticker” that can be used to drive animations and repaints. The most common reason to get the frame clock is to call Frame.clockGetFrameTime, in order to get a time to use for animating. For example you might record the start of the animation with an initial value from Frame.clockGetFrameTime, and then update the animation by calling Frame.clockGetFrameTime again during each repaint.
Gets the value of the halign property.
Returns the current value of the has-tooltip property. See has-tooltip for more information.
Determines whether widget has a gdk.Window of its own. See Widget.setHasWindow.
Gets whether the widget would like any available extra horizontal space. When a user resizes a gtk.Window, 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.
Gets whether Widget.setHexpand has been used to explicitly set the expand flag on this widget.
Whether the widget is mapped.
Gets the value of the margin-bottom property.
Gets the value of the margin-end property.
Gets the value of the margin-left property.
Gets the value of the margin-right property.
Gets the value of the margin-start property.
Gets the value of the margin-top property.
Returns the modifier mask the widget’s windowing system backend uses for a particular purpose.
Returns the current modifier style for the widget. (As set by Widget.modifyStyle.) If no style has previously set, a new gtk.RcStyle 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 Widget.modifyStyle, passing in the returned rc style, to make sure that your changes take effect.
Retrieves the name of a widget. See Widget.setName for the significance of widget names.
Returns the current value of the no-show-all property, which determines whether calls to Widget.showAll will affect this widget.
Fetches the requested opacity for this widget. See Widget.setOpacity.
Gets a gstreamer.Context with the appropriate font map, font description, and base direction for this widget. Unlike the context returned by Widget.createPangoContext, 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. This can be tracked by using the screen-changed signal on the widget.
Returns the parent container of widget.
Gets widget’s parent window, or NULL if it does not have one.
Returns the gtk.WidgetPath representing widget, if the widget is not connected to a toplevel widget, a partial path will be created.
Obtains the location of the mouse pointer in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that return TRUE for Widget.getHasWindow; and are relative to widget->allocation.x, widget->allocation.y otherwise.
Retrieves a widget’s initial minimum and natural height.
Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given the specified width, or the default height if width is -1. The baselines may be -1 which means that no baseline is requested for this widget.
Retrieves a widget’s minimum and natural height if it would be given the specified width.
Retrieves the minimum and natural size of a widget, taking into account the widget’s preference for height-for-width management.
Retrieves a widget’s initial minimum and natural width.
Retrieves a widget’s minimum and natural width if it would be given the specified height.
Determines whether widget is realized.
Determines whether widget is always treated as the default widget within its toplevel when it has the focus, even if another widget is the default.
Gets whether the widget prefers a height-for-width layout or a width-for-height layout.
Retrieves the widget’s requisition.
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 gtk.Window at the top.
Retrieves the internal scale factor that maps from window coordinates to the actual device pixels. On traditional systems this is 1, on high density outputs, it can be a higher value (typically 2).
Get the gdk.Screen from the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a gtk.Window at the top.
Returns the widget’s sensitivity (in the sense of returning the value that has been set using Widget.setSensitive).
Gets the settings object holding the settings used for this widget.
Gets the size request that was explicitly set for the widget using Widget.setSizeRequest. A value of -1 stored in width or height indicates that that dimension has not been set explicitly and the natural requisition of the widget will be used instead. See Widget.setSizeRequest. To get the size a widget will actually request, call Widget.getPreferredSize instead of this function.
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 widget itself is sensitive.
Simply an accessor function that returns widget->style.
Returns the style context associated to widget. The returned object is guaranteed to be the same for the lifetime of widget.
Returns TRUE if widget is multiple pointer aware. See Widget.setSupportMultidevice for more information.
Fetch an object build from the template XML for widget_type in this widget instance.
Gets the contents of the tooltip for widget.
Gets the contents of the tooltip for widget.
Returns the gtk.Window of the current tooltip. This can be the GtkWindow created by default, or the custom tooltip window set using Widget.setTooltipWindow.
This function returns the topmost widget in the container hierarchy widget is a part of. If widget has no parent widgets, it will be returned as the topmost widget. No reference will be added to the returned widget; it should not be unreferenced.
Gets the value of the valign property.
Gets the value of the valign property, including GTK_ALIGN_BASELINE.
Gets whether the widget would like any available extra vertical space.
Gets whether Widget.setVexpand has been used to explicitly set the expand flag on this widget.
Determines whether the widget is visible. If you want to take into account whether the widget’s parent is also marked as visible, use Widget.isVisible instead.
Gets the visual that will be used to render widget.
Returns the widget’s window if it is realized, NULL otherwise
Makes widget the current grabbed widget.
Causes widget to become the default widget. widget must be able to be a default widget; typically you would ensure this yourself by calling Widget.setCanDefault with a TRUE value. The default widget is activated when the user presses Enter in a window. Default widgets must be activatable, that is, Widget.activate should affect them. Note that gtk.Entry widgets require the “activates-default” property set to TRUE before they activate the default widget when Enter is pressed and the gtk.Entry is focused.
Causes widget to have the keyboard focus for the gtk.Window it's inside. widget must be a focusable widget, such as a gtk.Entry; something like gtk.Frame won’t work.
Removes the grab from the given widget.
Determines whether widget is the current default widget within its toplevel. See Widget.setCanDefault.
Determines if the widget has the global input focus. See Widget.isFocus for the difference between having the global input focus, and only having the focus within a toplevel.
Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).
Determines if the widget style has been looked up through the rc mechanism.
Checks whether there is a gdk.Screen 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.
Determines if the widget should show a visible indication that it has the global input focus. This is a convenience function for use in ::draw handlers that takes into account whether focus indication should currently be shown in the toplevel window of widget. See Window.getFocusVisible for more information about focus indication.
Reverses the effects of Widget.show, causing the widget to be hidden (invisible to the user).
Utility function; intended to be connected to the delete-event signal on a gtk.Window The function calls 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.
Returns whether the widget is currently being destroyed. This information can sometimes be used to avoid doing unnecessary work.
Creates and initializes child widgets defined in templates. This function must be called in the instance initializer for any class which assigned itself a template using Widget.classSetTemplate
Sets an input shape for this widget’s GDK window. This allows for windows which react to mouse click in a nonrectangular region, see Window.inputShapeCombineRegion for more information.
Inserts group into widget. Children of widget that implement GtkActionable can then be associated with actions in group by setting their “action-name” to prefix.action-name.
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.
Determines whether widget is somewhere inside ancestor, possibly with intermediate containers.
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.
Determines whether widget can be drawn to. A widget can be drawn to if it is mapped and visible.
Returns the widget’s effective sensitivity, which means it is sensitive itself and also its parent widget is sensitive
Determines whether widget is a toplevel widget.
Determines whether the widget and all its parents are marked as visible.
This function should be called whenever keyboard navigation within a single widget hits a boundary. The function emits the keynav-failed signal on the widget and its return value should be interpreted in a way similar to the return value of Widget.childFocus:
Lists the closures used by widget for accelerator group connections with AccelGroup.connectByPath or AccelGroup.connect. The closures can be used to monitor accelerator changes on widget, by connecting to the GtkAccelGroup::accel-changed signal of the gtk.AccelGroup of a closure which can be found out with AccelGroup.fromAccelClosure.
Retrieves a NULL-terminated array of strings containing the prefixes of gtk.ActionGroup's available to widget.
Returns a newly allocated list of the widgets, normally labels, for which this widget is the target of a mnemonic (see for example, Label.setMnemonicWidget).
This function is only for use in widget implementations. Causes a widget to be mapped if it isn’t already.
Emits the mnemonic-activate signal.
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 Widget.modifyText) for widgets such as gtk.Entry and gtk.TextView See also Widget.modifyStyle.
Sets the background color for a widget in a particular state.
Sets the cursor color to use in a widget, overriding the gtk.Widget cursor-color and secondary-cursor-color style properties.
Sets the foreground color for a widget in a particular state.
Sets the font to use for a widget.
Modifies style values on the widget.
Sets the text color for a widget in a particular state.
Sets the background color to use for a widget.
Sets the color to use for a widget.
Sets the cursor color to use in a widget, overriding the cursor-color and secondary-cursor-color style properties. All other style values are left untouched. See also Widget.modifyStyle.
Sets the font to use for a widget. All other style values are left untouched. See Widget.overrideColor.
Sets a symbolic color for a 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 Widget.getName. 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 Widget.setName. 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.
This function is only for use in widget implementations.
Mark widget as needing to recompute its expand flags. Call this function when setting legacy expand child properties on the child of a container.
Equivalent to calling Widget.queueDrawArea for the entire area of a widget.
Convenience function that calls Widget.queueDrawRegion on the region created from the given coordinates.
Invalidates the area of widget defined by region by calling Window.invalidateRegion 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.
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 gtk.Label, gtk.Label queues a resize to ensure there’s enough space for the new text.
This function works like Widget.queueResize, except that the widget is not invalidated.
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.
Computes the intersection of a widget’s area and region, returning the intersection. The result may be empty, use Region.isEmpty to check.
Registers a gdk.Window with the widget and sets it up so that the widget receives events for it. Call Widget.unregisterWindow when destroying the window.
Removes an accelerator from widget, previously installed with Widget.addAccelerator.
Removes a widget from the list of mnemonic labels for this widget. (See Widget.listMnemonicLabels). The widget must have previously been added to the list with Widget.addMnemonicLabel.
Removes a tick callback previously registered with Widget.addTickCallback.
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.
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
Moves a widget from one gtk.Container to another, handling reference count issues to avoid destroying the widget.
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.
Updates the style context of widget and all descendants by updating its widget path. gtk.Containers may want to use this on a child when reordering it in a way that a different style might apply to it. See also Container.getPathForChild.
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 windowless child widget (Widget.getHasWindow is FALSE), and that is normally done using Container.propagateDraw.
Sends the focus change event to widget
Given an accelerator group, accel_group, and an accelerator path, accel_path, sets up an accelerator in accel_group so whenever the key binding that is defined for accel_path is pressed, widget will be activated. This removes any accelerators (for any accelerator group) installed by previous calls to Widget.setAccelPath. Associating accelerators with paths allows them to be modified by the user and the modifications to be saved for future use. (See AccelMap.save.)
Sets the widget’s allocation. This should not be used directly, but from within a widget’s size_allocate method.
Sets whether the application intends to draw on the widget in an draw handler.
Specifies whether widget can be a default widget. See Widget.grabDefault for details about the meaning of “default”.
Specifies whether widget can own the input focus. See Widget.grabFocus for actually setting the input focus on a widget.
Sets whether widget should be mapped along with its when its parent is mapped and widget has been shown with Widget.show.
Sets the widget’s clip. This must not be used directly, but from within a widget’s size_allocate method. It must be called after Widget.setAllocation (or after chaining up to the parent class), because that function resets the clip.
Sets a widgets composite name. The widget must be a composite child of its parent; see Widget.pushCompositeChild.
Enables or disables a gdk.Device to interact with widget and all its children.
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 Widget.addDeviceEvents for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with windowless widgets (which return FALSE from Widget.getHasWindow); to get events on those widgets, place them inside a gtk.EventBox and receive events on the event box.
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 explicitly visual rather than logical (such as buttons for text justification).
Widgets are double buffered by default; you can use this function to turn off the buffering. “Double buffered” simply means that Window.beginDrawFrame and Window.endDrawFrame are called automatically around expose events sent to the widget. Window.beginDrawFrame diverts all drawing to a widget's window to an offscreen buffer, and Window.endDrawFrame 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.
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 Widget.addEvents for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with widgets that have no window. (See Widget.getHasWindow). To get events on those widgets, place them inside a gtk.EventBox and receive events on the event box.
Sets whether the widget should grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.
Sets the font map to use for Pango rendering. When not set, the widget will inherit the font map from its parent.
Sets the cairo_font_options_t used for Pango rendering in this widget. When not set, the default font options for the gdk.Screen will be used.
Sets the horizontal alignment of widget. See the halign property.
Sets the has-tooltip property on widget to has_tooltip. See has-tooltip for more information.
Specifies whether widget has a gdk.Window of its own. Note that all realized widgets have a non-NULL “window” pointer (Widget.getWindow never returns a NULL window when a widget is realized), but for many of them it’s actually the gdk.Window of one of its parent widgets. Widgets that do not create a window for themselves in realize must announce this by calling this function with has_window = FALSE.
Sets whether the widget would like any available extra horizontal space. When a user resizes a gtk.Window, 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.
Sets whether the hexpand flag (see Widget.getHexpand) will be used.
Marks the widget as being mapped.
Sets the bottom margin of widget. See the margin-bottom property.
Sets the end margin of widget. See the margin-end property.
Sets the left margin of widget. See the margin-left property.
Sets the right margin of widget. See the margin-right property.
Sets the start margin of widget. See the margin-start property.
Sets the top margin of widget. See the margin-top property.
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 gtk.StyleContext).
Sets the no-show-all property, which determines whether calls to Widget.showAll will affect this widget.
Request the widget to be rendered partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Opacity values are clamped to the [0,1] range.). This works on both toplevel widget, and child widgets, although there are some limitations:
This function is useful only when implementing subclasses of gtk.Container
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 Widget.unparent.
Sets a non default parent window for widget.
Marks the widget as being realized. This function must only be called after all gdk.Windows for the widget have been created and registered.
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.
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.
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.
Sets the minimum size of a widget; that is, the widget’s size request will be at least width by height. You can use this function to force a widget to be larger than it normally would be.
This function is for use in widget implementations. Turns on flag values in the current widget state (insensitive, prelighted, etc.).
Used to set the gtk.Style for a widget (widget->style). Since GTK 3, this function does nothing, the passed in style is ignored.
Enables or disables multiple pointer awareness. If this setting is TRUE, widget will start receiving multiple, per device enter/leave events. Note that if custom gdk.Windows are created in realize, Window.setSupportMultidevice will have to be called manually on them.
Sets markup as the contents of the tooltip, which is marked up with the [Pango text markup language]PangoMarkupFormat.
Sets text as the contents of the tooltip. This function will take care of setting has-tooltip to TRUE and of the default handler for the query-tooltip signal.
Replaces the default 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.
Sets the vertical alignment of widget. See the valign property.
Sets whether the widget would like any available extra vertical space.
Sets whether the vexpand flag (see Widget.getVexpand) will be used.
Sets the visibility state of widget. Note that setting this to TRUE doesn’t mean the widget is actually viewable, see Widget.getVisible.
Sets the visual that should be used for by widget and its children for creating gdk.Windows The visual must be on the same gdk.Screen as returned by Widget.getScreen, so handling the screen-changed signal is necessary.
Sets a widget’s window. This function should only be used in a widget’s realize implementation. The window passed is usually either new window created with Window.new, or the window of its parent widget as returned by Widget.getParentWindow.
Sets a shape for this widget’s GDK window. This allows for transparent windows etc., see Window.shapeCombineRegion for more information.
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 Widget.showAll on the container, instead of individually showing the widgets.
Recursively shows a widget, and any child widgets (if the widget is a container).
Shows a widget. If the widget is an unmapped toplevel widget (i.e. a gtk.Window 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.
This function is only used by gtk.Container subclasses, to assign a size and position to their child widgets.
This function is only used by gtk.Container subclasses, to assign a size, position and (optionally) baseline to their child widgets.
This function is typically used when implementing a gtk.Container 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 Widget.sizeAllocate.
This function attaches the widget’s gtk.Style to the widget's gdk.Window It is a replacement for
Gets the value of a style property of widget.
Non-vararg variant of Widget.styleGet. Used primarily by language bindings.
Reverts the effect of a previous call to Widget.freezeChildNotify. This causes all queued child-notify signals on widget to be emitted.
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.
Triggers a tooltip query on the display where the toplevel of widget is located. See Tooltip.triggerTooltipQuery for more information.
This function is only for use in widget implementations. Causes a widget to be unmapped if it’s currently mapped.
This function is only for use in widget implementations. Should be called by implementations of the remove method on gtk.Container, to dissociate a child from the container.
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).
Unregisters a gdk.Window from the widget that was previously set up with Widget.registerWindow. You need to call this when the window is no longer used by the widget, such as when you destroy it.
This function is for use in widget implementations. Turns off flag values for the current widget state (insensitive, prelighted, etc.). See Widget.setStateFlags.
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.
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.
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 gtk.Widget handling for determining whether an accelerator can be activated.
The ::child-notify signal is emitted for each [child property][child-properties] that has changed on an object. The signal's detail holds the property name.
The ::composited-changed signal is emitted when the composited status of widgets screen changes. See Screen.isComposited.
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.
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.
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.
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 Widget.hideOnDelete to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it.
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.
The ::destroy-event signal is emitted when a gdk.Window 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.
The ::direction-changed signal is emitted when the text direction of a widget changes.
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 e.g. gtk_drag_source_set_icon_pixbuf().
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.
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 SelectionData.set and SelectionData.setText.
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 not finish the drag. If the data was received in response to a 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 ::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 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.
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 drag-begin.
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.
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 drag-motion, e.g. undo highlighting with gtk_drag_unhighlight().
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().
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.
The GTK+ main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. key-press-event) and finally a generic event-after signal.
After the emission of the event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.
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.
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.
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.
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 ::hide signal is emitted when widget is hidden, for example with Widget.hide.
The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is “anchored” when its toplevel ancestor is a gtk.Window This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.
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.
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.
The ::key-release-event signal is emitted when a key is released.
The ::key-release-event signal is emitted when a key is released.
Gets emitted if keyboard navigation fails. See Widget.keynavFailed for details.
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.
The ::map signal is emitted when widget is going to be mapped, that is when the widget is visible (which is controlled with Widget.setVisible) and all its parents up to the toplevel widget are also visible. Once the map has occurred, map-event will be emitted.
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.
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.
The default handler for this signal activates widget if group_cycling is FALSE, or just makes widget grab focus if group_cycling is TRUE.
The ::motion-notify-event signal is emitted when the pointer moves over the widget's gdk.Window
The ::motion-notify-event signal is emitted when the pointer moves over the widget's gdk.Window
The ::parent-set signal is emitted when a new parent has been set on a widget.
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 gtk.Entry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal.
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 gdk.Window associated to the widget needs to enable the GDK_PROXIMITY_IN_MASK mask.
To receive this signal the gdk.Window associated to the widget needs to enable the GDK_PROXIMITY_IN_MASK mask.
To receive this signal the gdk.Window associated to the widget needs to enable the GDK_PROXIMITY_OUT_MASK mask.
To receive this signal the gdk.Window associated to the widget needs to enable the GDK_PROXIMITY_OUT_MASK mask.
Emitted when has-tooltip is TRUE and the hover timeout has expired with the cursor hovering "above" widget; or emitted when widget got focus in keyboard mode.
The ::realize signal is emitted when widget is associated with a gdk.Window, which means that Widget.realize has been called or the widget has been mapped (that is, it is going to be drawn).
The ::screen-changed signal gets emitted when the screen of a widget has changed.
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.
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.
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.
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.
The ::show signal is emitted when widget is shown, for example with Widget.show.
The ::state-changed signal is emitted when the widget state changes. See Widget.getState.
The ::state-flags-changed signal is emitted when the widget state changes, see Widget.getStateFlags.
The ::style-set signal is emitted when a new style has been set on a widget. Note that style-modifying functions like Widget.modifyBase also cause this signal to be emitted.
The ::style-updated signal is a convenience signal that is emitted when the changed signal is emitted on the widget's associated gtk.StyleContext as returned by Widget.getStyleContext.
The ::unmap signal is emitted when widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden.
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.
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.
The ::unrealize signal is emitted when the gdk.Window associated with widget is destroyed, which means that Widget.unrealize has been called or the widget has been unmapped (that is, it is going to be hidden).
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.
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.
This function is supposed to be called in draw implementations for widgets that support multiple windows. cr must be untransformed from invoking of the draw function. This function will return TRUE if the contents of the given window are supposed to be drawn and FALSE otherwise. Note that when the drawing was not initiated by the windowing system this function will return TRUE for all windows, so you need to draw the bottommost window first. Also, do not use “else if” statements to check which window should be drawn.
Transforms the given cairo context cr that from widget-relative coordinates to window-relative coordinates. If the widget’s window is not an ancestor of window, no modification will be applied.
Distributes extra_space to child sizes by bringing smaller children up to natural size first.
Get the main Gtk struct
the main Gtk struct as a void*
Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.
Retrieves the gtk.Adjustment used for horizontal scrolling.
Gets the horizontal GtkScrollablePolicy
Retrieves the gtk.Adjustment used for vertical scrolling.
Gets the vertical GtkScrollablePolicy
Sets the horizontal adjustment of the GtkScrollable
Sets the GtkScrollablePolicy to determine whether horizontal scrolling should start below the minimum width or below the natural width.
Sets the vertical adjustment of the GtkScrollable
Sets the GtkScrollablePolicy to determine whether vertical scrolling should start below the minimum height or below the natural height.