Gjsify LogoGjsify Logo

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

acceptsTab: boolean

Whether Tab will result in a tab character being entered.

accessibleRole: AccessibleRole

The accessible role of the given GtkAccessible implementation.

The accessible role cannot be changed once set.

bottomMargin: number

The bottom margin for text in the text view.

Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.

Don't confuse this property with [propertyGtk.Widget:margin-bottom].

buffer: Gtk.TextBuffer

The buffer which is displayed.

canFocus: boolean

Whether the widget or any of its descendents can accept the input focus.

This property is meant to be set by widget implementations, typically in their instance init function.

canTarget: boolean

Whether the widget can receive pointer events.

cssClasses: string[]

A list of css classes applied to this widget.

cssName: string

The name of this widget in the CSS tree.

This property is meant to be set by widget implementations, typically in their instance init function.

cursor: Gdk.Cursor

The cursor used by widget.

cursorVisible: boolean

If the insertion cursor is shown.

editable: boolean
extraMenu: MenuModel

A menu model whose contents will be appended to the context menu.

focusOnClick: boolean

Whether the widget should grab focus when it is clicked with the mouse.

This property is only relevant for widgets that can take focus.

focusable: boolean

Whether this widget itself will accept the input focus.

gTypeInstance: TypeInstance
hadjustment: Gtk.Adjustment

Horizontal GtkAdjustment of the scrollable widget.

This adjustment is shared between the scrollable widget and its parent.

halign: Gtk.Align

How to distribute horizontal space if widget gets extra space.

hasDefault: boolean

Whether the widget is the default widget.

hasFocus: boolean

Whether the widget has the input focus.

hasTooltip: boolean

Enables or disables the emission of the ::query-tooltip signal on widget.

A value of %TRUE indicates that widget can have a tooltip, in this case the widget will be queried using [signalGtk.Widget::query-tooltip] to determine whether it will provide a tooltip or not.

heightRequest: number

Override for height request of the widget.

If this is -1, the natural request will be used.

hexpand: boolean

Whether to expand horizontally.

hexpandSet: boolean

Whether to use the hexpand property.

hscrollPolicy: Gtk.ScrollablePolicy

Determines when horizontal scrolling should start.

imModule: string

Which IM (input method) module should be used for this text_view.

See [classGtk.IMMulticontext].

Setting this to a non-%NULL value overrides the system-wide IM module setting. See the GtkSettings [propertyGtk.Settings:gtk-im-module] property.

indent: number

Amount to indent the paragraph, in pixels.

inputHints: Gtk.InputHints

Additional hints (beyond [propertyGtk.TextView:input-purpose]) that allow input methods to fine-tune their behaviour.

inputPurpose: Gtk.InputPurpose

The purpose of this text field.

This property can be used by on-screen keyboards and other input methods to adjust their behaviour.

justification: Gtk.Justification
layoutManager: Gtk.LayoutManager

The GtkLayoutManager instance to use to compute the preferred size of the widget, and allocate its children.

This property is meant to be set by widget implementations, typically in their instance init function.

leftMargin: number

The default left margin for text in the text view.

Tags in the buffer may override the default.

Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.

marginBottom: number

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 [methodGtk.Widget.set_size_request] for example.

marginEnd: number

Margin on end of widget, horizontally.

This property supports left-to-right and right-to-left text directions.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [methodGtk.Widget.set_size_request] for example.

marginStart: number

Margin on start of widget, horizontally.

This property supports left-to-right and right-to-left text directions.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [methodGtk.Widget.set_size_request] for example.

marginTop: number

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 [methodGtk.Widget.set_size_request] for example.

monospace: boolean

Whether text should be displayed in a monospace font.

If %TRUE, set the .monospace style class on the text view to indicate that a monospace font is desired.

name: string

The name of the widget.

opacity: number

The requested opacity of the widget.

overflow: Overflow

How content outside the widget's content area is treated.

This property is meant to be set by widget implementations, typically in their instance init function.

overwrite: boolean

Whether entered text overwrites existing contents.

parent: Gtk.Widget

The parent widget of this widget.

parentInstance: any
pixelsAboveLines: number
pixelsBelowLines: number
pixelsInsideWrap: number
receivesDefault: boolean

Whether the widget will receive the default action when it is focused.

rightMargin: number

The default right margin for text in the text view.

Tags in the buffer may override the default.

Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.

root: Gtk.Root

The GtkRoot widget of the widget tree containing this widget.

This will be %NULL if the widget is not contained in a root widget.

scaleFactor: number

The scale factor of the widget.

sensitive: boolean

Whether the widget responds to input.

tabs: TabArray
tooltipMarkup: string

Sets the text of tooltip to be the given string, which is marked up with Pango markup.

Also see [methodGtk.Tooltip.set_markup].

This is a convenience property which will take care of getting the tooltip shown if the given string is not %NULL: [propertyGtk.Widget:has-tooltip] will automatically be set to %TRUE and there will be taken care of [signalGtk.Widget::query-tooltip] in the default signal handler.

Note that if both [propertyGtk.Widget:tooltip-text] and [propertyGtk.Widget:tooltip-markup] are set, the last one wins.

tooltipText: string

Sets the text of tooltip to be the given string.

Also see [methodGtk.Tooltip.set_text].

This is a convenience property which will take care of getting the tooltip shown if the given string is not %NULL: [propertyGtk.Widget:has-tooltip] will automatically be set to %TRUE and there will be taken care of [signalGtk.Widget::query-tooltip] in the default signal handler.

Note that if both [propertyGtk.Widget:tooltip-text] and [propertyGtk.Widget:tooltip-markup] are set, the last one wins.

topMargin: number

The top margin for text in the text view.

Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.

Don't confuse this property with [propertyGtk.Widget:margin-top].

vadjustment: Gtk.Adjustment

Vertical GtkAdjustment of the scrollable widget.

This adjustment is shared between the scrollable widget and its parent.

valign: Gtk.Align

How to distribute vertical space if widget gets extra space.

vexpand: boolean

Whether to expand vertically.

vexpandSet: boolean

Whether to use the vexpand property.

visible: boolean

Whether the widget is visible.

vscrollPolicy: Gtk.ScrollablePolicy

Determines when vertical scrolling should start.

widthRequest: number

Override for width request of the widget.

If this is -1, the natural request will be used.

wrapMode: Gtk.WrapMode
name: string

Methods

  • actionSetEnabled(actionName: string, enabled: boolean): void
  • Enable or disable an action installed with gtk_widget_class_install_action().

    Parameters

    • actionName: string

      action name, such as "clipboard.paste"

    • enabled: boolean

      whether the action is now enabled

    Returns void

  • activate(): boolean
  • For widgets that can be “activated” (buttons, menu items, etc.), this function activates them.

    The activation will emit the signal set using [methodGtk.WidgetClass.set_activate_signal] during class initialization.

    Activation is what happens when you press Enter on a widget during key navigation.

    If you wish to handle the activation keybinding yourself, it is recommended to use [methodGtk.WidgetClass.add_shortcut] with an action created with [ctorGtk.SignalAction.new].

    If widget isn't activatable, the function returns %FALSE.

    Returns boolean

  • activateAction(name: string, args: GLib.Variant): boolean
  • Looks up the action in the action groups associated with widget and its ancestors, and activates it.

    If the action is in an action group added with [methodGtk.Widget.insert_action_group], the name is expected to be prefixed with the prefix that was used when the group was inserted.

    The arguments must match the actions expected parameter type, as returned by g_action_get_parameter_type().

    Parameters

    • name: string

      the name of the action to activate

    • args: GLib.Variant

      parameters to use

    Returns boolean

  • activateDefault(): void
  • Adds controller to widget so that it will receive events.

    You will usually want to call this function right after creating any kind of [classGtk.EventController].

    Parameters

    • controller: Gtk.EventController

      a GtkEventController that hasn't been added to a widget yet

    Returns void

  • addCssClass(cssClass: string): void
  • Adds a style class to widget.

    After calling this function, the widgets style will match for css_class, according to CSS matching rules.

    Use [methodGtk.Widget.remove_css_class] to remove the style again.

    Parameters

    • cssClass: string

      The style class to add to widget, without the leading '.' used for notation of style classes

    Returns void

  • Adds a widget to the list of mnemonic labels for this widget.

    See [methodGtk.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.

    Parameters

    • label: Gtk.Widget

      a GtkWidget that acts as a mnemonic label for widget

    Returns void

  • addOverlay(child: Gtk.Widget, xpos: number, ypos: number): void
  • Adds child at a fixed coordinate in the GtkTextView's text window.

    The xpos and ypos must be in buffer coordinates (see [methodGtk.TextView.get_iter_location] to convert to buffer coordinates).

    child will scroll with the text view.

    If instead you want a widget that will not move with the GtkTextView contents see GtkOverlay.

    Parameters

    • child: Gtk.Widget

      a GtkWidget

    • xpos: number

      X position of child in window coordinates

    • ypos: number

      Y position of child in window coordinates

    Returns void

  • 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 GtkLabel), then you will have to call [methodGtk.Widget.queue_resize] or [methodGtk.Widget.queue_draw] yourself.

    [methodGdk.FrameClock.get_frame_time] should generally be used for timing continuous animations and [methodGdk.FrameTimings.get_predicted_presentation_time] if you are trying to display isolated frames at particular times.

    This is a more convenient alternative to connecting directly to the [signalGdk.FrameClock::update] signal of GdkFrameClock, since you don't have to worry about when a GdkFrameClock is assigned to a widget.

    Parameters

    Returns number

  • allocate(width: number, height: number, baseline: number, transform: Gsk.Transform): void
  • This function is only used by GtkWidget subclasses, to assign a size, position and (optionally) baseline to their child widgets.

    In this function, the allocation and baseline may be adjusted. The given allocation will be forced to be bigger than the widget's minimum size, as well as at least 0×0 in size.

    For a version that does not take a transform, see [methodGtk.Widget.size_allocate].

    Parameters

    • width: number

      New width of widget

    • height: number

      New height of widget

    • baseline: number

      New baseline of widget, or -1

    • transform: Gsk.Transform

      Transformation to be applied to widget

    Returns void

  • Moves the given iter backward by one display (wrapped) line.

    A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the GtkTextBuffer.

    Parameters

    Returns boolean

  • Moves the given iter backward to the next display line start.

    A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the GtkTextBuffer.

    Parameters

    Returns boolean

  • Creates a binding between source_property on source and target_property on target.

    Whenever the source_property is changed the target_property is updated using the same value. For instance:

      g_object_bind_property (action, "active", widget, "sensitive", 0);
    

    Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.

    If flags contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual: if target_property on target changes then the source_property on source will be updated as well.

    The binding will automatically be removed when either the source or the target instances are finalized. To remove the binding without affecting the source and the target you can just call g_object_unref() on the returned #GBinding instance.

    Removing the binding by calling g_object_unref() on it must only be done if the binding, source and target are only used from a single thread and it is clear that both source and target outlive the binding. Especially it is not safe to rely on this if the binding, source or target can be finalized from different threads. Keep another reference to the binding and use g_binding_unbind() instead to be on the safe side.

    A #GObject can have multiple bindings.

    Parameters

    • sourceProperty: string

      the property on source to bind

    • target: GObject.Object

      the target #GObject

    • targetProperty: string

      the property on target to bind

    • flags: BindingFlags

      flags to pass to #GBinding

    Returns Binding

  • Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.

    This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.

    Parameters

    • sourceProperty: string

      the property on source to bind

    • target: GObject.Object

      the target #GObject

    • targetProperty: string

      the property on target to bind

    • flags: BindingFlags

      flags to pass to #GBinding

    • transformTo: TClosure<any, any>

      a #GClosure wrapping the transformation function from the source to the target, or %NULL to use the default

    • transformFrom: TClosure<any, any>

      a #GClosure wrapping the transformation function from the target to the source, or %NULL to use the default

    Returns Binding

  • bufferToWindowCoords(win: Gtk.TextWindowType, bufferX: number, bufferY: number): [number, number]
  • Called by widgets as the user moves around the window using keyboard shortcuts.

    The direction argument indicates what kind of motion is taking place (up, down, left, right, tab forward, tab backward).

    This function calls the [vfuncGtk.Widget.focus] virtual function; widgets can override the virtual function in order to implement appropriate focus behavior.

    The default focus() virtual function 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. When returning TRUE, widgets normallycall [methodGtk.Widget.grab_focus] to place the focus accordingly; when returning FALSE, they don’t modify the current focus location.

    This function is used by custom widget implementations; if you're writing an app, you’d use [methodGtk.Widget.grab_focus] to move the focus to a particular widget.

    Parameters

    Returns boolean

  • Computes the bounds for widget in the coordinate space of target.

    FIXME: Explain what "bounds" are.

    If the operation is successful, %TRUE is returned. If widget has no bounds or the bounds cannot be expressed in target's coordinate space (for example if both widgets are in different windows), %FALSE is returned and bounds is set to the zero rectangle.

    It is valid for widget and target to be the same widget.

    Parameters

    Returns [boolean, Graphene.Rect]

  • Computes whether a container should give this widget extra space when possible.

    Containers should check this, rather than looking at [methodGtk.Widget.get_hexpand] or [methodGtk.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.

    Parameters

    Returns boolean

  • Translates the given point in widget's coordinates to coordinates relative to target’s coordinate system.

    In order to perform this operation, both widgets must share a common ancestor.

    Parameters

    • target: Gtk.Widget

      the GtkWidget to transform into

    • point: Graphene.Point

      a point in widget's coordinate system

    Returns [boolean, Graphene.Point]

  • Computes a matrix suitable to describe a transformation from widget's coordinate system into target's coordinate system.

    The transform can not be computed in certain cases, for example when widget and target do not share a common ancestor. In that case out_transform gets set to the identity matrix.

    Parameters

    • target: Gtk.Widget

      the target widget that the matrix will transform to

    Returns [boolean, Graphene.Matrix]

  • connect(sigName: "notify::accepts-tab", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::bottom-margin", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::buffer", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::cursor-visible", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::editable", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::extra-menu", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::im-module", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::indent", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::input-hints", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::input-purpose", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::justification", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::left-margin", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::monospace", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::overwrite", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::pixels-above-lines", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::pixels-below-lines", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::pixels-inside-wrap", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::right-margin", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::tabs", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::top-margin", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::wrap-mode", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::can-focus", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::can-target", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::css-classes", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::css-name", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::cursor", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::focus-on-click", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::focusable", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::halign", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::has-default", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::has-focus", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::has-tooltip", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::height-request", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::hexpand", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::hexpand-set", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::layout-manager", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::margin-bottom", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::margin-end", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::margin-start", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::margin-top", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::name", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::opacity", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::overflow", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::parent", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::receives-default", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::root", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::scale-factor", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::sensitive", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::tooltip-markup", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::tooltip-text", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::valign", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::vexpand", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::vexpand-set", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::visible", callback: ((...args: any[]) => void)): number
  • connect(sigName: "notify::width-request", callback: ((...args: any[]) => void)): number
  • connect(sigName: string, callback: ((...args: any[]) => void)): number
  • Parameters

    • sigName: "notify::accepts-tab"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::bottom-margin"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::buffer"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::cursor-visible"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::editable"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::extra-menu"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::im-module"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::indent"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::input-hints"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::input-purpose"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::justification"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::left-margin"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::monospace"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::overwrite"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::pixels-above-lines"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::pixels-below-lines"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::pixels-inside-wrap"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::right-margin"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::tabs"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::top-margin"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::wrap-mode"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::can-focus"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::can-target"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::css-classes"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::css-name"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::cursor"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::focus-on-click"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::focusable"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::halign"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::has-default"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::has-focus"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::has-tooltip"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::height-request"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::hexpand"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::hexpand-set"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::layout-manager"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::margin-bottom"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::margin-end"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::margin-start"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::margin-top"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::name"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::opacity"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::overflow"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::parent"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::receives-default"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::root"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::scale-factor"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::sensitive"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::tooltip-markup"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::tooltip-text"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::valign"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::vexpand"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::vexpand-set"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::visible"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: "notify::width-request"
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • Parameters

    • sigName: string
    • callback: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns number

  • contains(x: number, y: number): boolean
  • Tests if the point at (x, y) is contained in widget.

    The coordinates for (x, y) must be in widget coordinates, so (0, 0) is assumed to be the top left of widget's content area.

    Parameters

    • x: number

      X coordinate to test, relative to widget's origin

    • y: number

      Y coordinate to test, relative to widget's origin

    Returns boolean

  • Creates a new PangoContext with the appropriate font map, font options, font description, and base direction for drawing text for this widget.

    See also [methodGtk.Widget.get_pango_context].

    Returns Pango.Context

  • 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, you need to re-create it when the widget PangoContext is replaced. This can be tracked by listening to changes of the [propertyGtk.Widget:root] property on the widget.

    Parameters

    • text: string

      text to set on the layout

    Returns Pango.Layout

  • dragCheckThreshold(startX: number, startY: number, currentX: number, currentY: number): boolean
  • Checks to see if a drag movement has passed the GTK drag threshold.

    Parameters

    • startX: number

      X coordinate of start of drag

    • startY: number

      Y coordinate of start of drag

    • currentX: number

      current X coordinate

    • currentY: number

      current Y coordinate

    Returns boolean

  • emit(sigName: "notify::accepts-tab", ...args: any[]): void
  • emit(sigName: "notify::bottom-margin", ...args: any[]): void
  • emit(sigName: "notify::buffer", ...args: any[]): void
  • emit(sigName: "notify::cursor-visible", ...args: any[]): void
  • emit(sigName: "notify::editable", ...args: any[]): void
  • emit(sigName: "notify::extra-menu", ...args: any[]): void
  • emit(sigName: "notify::im-module", ...args: any[]): void
  • emit(sigName: "notify::indent", ...args: any[]): void
  • emit(sigName: "notify::input-hints", ...args: any[]): void
  • emit(sigName: "notify::input-purpose", ...args: any[]): void
  • emit(sigName: "notify::justification", ...args: any[]): void
  • emit(sigName: "notify::left-margin", ...args: any[]): void
  • emit(sigName: "notify::monospace", ...args: any[]): void
  • emit(sigName: "notify::overwrite", ...args: any[]): void
  • emit(sigName: "notify::pixels-above-lines", ...args: any[]): void
  • emit(sigName: "notify::pixels-below-lines", ...args: any[]): void
  • emit(sigName: "notify::pixels-inside-wrap", ...args: any[]): void
  • emit(sigName: "notify::right-margin", ...args: any[]): void
  • emit(sigName: "notify::tabs", ...args: any[]): void
  • emit(sigName: "notify::top-margin", ...args: any[]): void
  • emit(sigName: "notify::wrap-mode", ...args: any[]): void
  • emit(sigName: "notify::can-focus", ...args: any[]): void
  • emit(sigName: "notify::can-target", ...args: any[]): void
  • emit(sigName: "notify::css-classes", ...args: any[]): void
  • emit(sigName: "notify::css-name", ...args: any[]): void
  • emit(sigName: "notify::cursor", ...args: any[]): void
  • emit(sigName: "notify::focus-on-click", ...args: any[]): void
  • emit(sigName: "notify::focusable", ...args: any[]): void
  • emit(sigName: "notify::halign", ...args: any[]): void
  • emit(sigName: "notify::has-default", ...args: any[]): void
  • emit(sigName: "notify::has-focus", ...args: any[]): void
  • emit(sigName: "notify::has-tooltip", ...args: any[]): void
  • emit(sigName: "notify::height-request", ...args: any[]): void
  • emit(sigName: "notify::hexpand", ...args: any[]): void
  • emit(sigName: "notify::hexpand-set", ...args: any[]): void
  • emit(sigName: "notify::layout-manager", ...args: any[]): void
  • emit(sigName: "notify::margin-bottom", ...args: any[]): void
  • emit(sigName: "notify::margin-end", ...args: any[]): void
  • emit(sigName: "notify::margin-start", ...args: any[]): void
  • emit(sigName: "notify::margin-top", ...args: any[]): void
  • emit(sigName: "notify::name", ...args: any[]): void
  • emit(sigName: "notify::opacity", ...args: any[]): void
  • emit(sigName: "notify::overflow", ...args: any[]): void
  • emit(sigName: "notify::parent", ...args: any[]): void
  • emit(sigName: "notify::receives-default", ...args: any[]): void
  • emit(sigName: "notify::root", ...args: any[]): void
  • emit(sigName: "notify::scale-factor", ...args: any[]): void
  • emit(sigName: "notify::sensitive", ...args: any[]): void
  • emit(sigName: "notify::tooltip-markup", ...args: any[]): void
  • emit(sigName: "notify::tooltip-text", ...args: any[]): void
  • emit(sigName: "notify::valign", ...args: any[]): void
  • emit(sigName: "notify::vexpand", ...args: any[]): void
  • emit(sigName: "notify::vexpand-set", ...args: any[]): void
  • emit(sigName: "notify::visible", ...args: any[]): void
  • emit(sigName: "notify::width-request", ...args: any[]): void
  • emit(sigName: string, ...args: any[]): void
  • errorBell(): void
  • Notifies the user about an input-related error on this widget.

    If the [propertyGtk.Settings:gtk-error-bell] setting is %TRUE, it calls [methodGdk.Surface.beep], otherwise it does nothing.

    Note that the effect of [methodGdk.Surface.beep] can be configured in many ways, depending on the windowing backend and the desktop environment or window manager that is used.

    Returns void

  • forceFloating(): void
  • This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().

    Returns void

  • Moves the given iter forward by one display (wrapped) line.

    A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the GtkTextBuffer.

    Parameters

    Returns boolean

  • Moves the given iter forward to the next display line end.

    A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the GtkTextBuffer.

    Parameters

    Returns boolean

  • freezeNotify(): void
  • Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.

    This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.

    Returns void

  • getAcceptsTab(): boolean
  • getAllocatedBaseline(): number
  • Returns the baseline that has currently been allocated to widget.

    This function is intended to be used when implementing handlers for the GtkWidgetClass.snapshot() function, and when allocating child widgets in GtkWidgetClass.size_allocate().

    Returns number

  • getAllocatedHeight(): number
  • getAllocatedWidth(): number
  • Retrieves the widget’s allocation.

    Note, when implementing a layout container: a widget’s allocation will be its “adjusted” allocation, that is, the widget’s parent typically calls [methodGtk.Widget.size_allocate] with an allocation, and that allocation is then adjusted (to handle margin and alignment for example) before assignment to the widget. [methodGtk.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 [methodGtk.Widget.size_allocate] allocation, however.

    So a layout container is guaranteed that its children stay inside the assigned bounds, but not that they have exactly the bounds the container assigned.

    Returns Gdk.Rectangle

  • Gets the first ancestor of widget with type widget_type.

    For example, gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets the first GtkBox that’s an ancestor of widget. No reference will be added to the returned widget; it should not be unreferenced.

    Note that unlike [methodGtk.Widget.is_ancestor], this function considers widget to be an ancestor of itself.

    Parameters

    • widgetType: GType<unknown>

      ancestor type

    Returns Gtk.Widget

  • 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 overlaid graphics, like the overshoot indication, at the right position.

    Returns [boolean, Gtk.Border]

  • getBottomMargin(): number
  • Returns the GtkTextBuffer being displayed by this text view.

    The reference count on the buffer is not incremented; the caller of this function won’t own a new reference.

    Returns Gtk.TextBuffer

  • getBuildableId(): string
  • Gets the ID of the buildable object.

    GtkBuilder sets the name based on the ID attribute of the tag used to construct the buildable.

    Returns string

    • getCanFocus(): boolean
    • Determines whether the input focus can enter widget or any of its children.

      See [methodGtk.Widget.set_focusable].

      Returns boolean

    • getCanTarget(): boolean
    • getChildVisible(): boolean
    • 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 should never be called by an application.

      Returns boolean

    • Gets the clipboard object for widget.

      This is a utility function to get the clipboard object for the GdkDisplay that widget is using.

      Note that this function always works, even when widget is not realized yet.

      Returns Gdk.Clipboard

    • getCssClasses(): string[]
    • getCssName(): string
    • Determine the positions of the strong and weak cursors if the insertion point is at iter.

      The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the paragraph are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the paragraph are inserted.

      If iter is %NULL, the actual cursor position is used.

      Note that if iter happens to be the actual cursor position, and there is currently an IM preedit sequence being entered, the returned locations will be adjusted to account for the preedit cursor’s offset within the preedit sequence.

      The rectangle position is in buffer coordinates; use [methodGtk.TextView.buffer_to_window_coords] to convert these coordinates to coordinates for one of the windows in the text view.

      Parameters

      Returns [Gdk.Rectangle, Gdk.Rectangle]

    • getCursorVisible(): boolean
    • getData(key?: string): object
    • Gets a named field from the objects table of associations (see g_object_set_data()).

      Parameters

      • Optional key: string

        name of the key for that association

      Returns object

    • 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.

      Returns Gdk.Display

    • getEditable(): boolean
    • Returns the default editability of the GtkTextView.

      Tags in the buffer may override this setting for some ranges of text.

      Returns boolean

    • getFocusOnClick(): boolean
    • Returns whether the widget should grab focus when it is clicked with the mouse.

      See [methodGtk.Widget.set_focus_on_click].

      Returns boolean

    • getFocusable(): boolean
    • 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 [methodGdk.FrameClock.get_frame_time], 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 [methodGdk.FrameClock.get_frame_time], and then update the animation by calling [methodGdk.FrameClock.get_frame_time] again during each repaint.

      [methodGdk.FrameClock.request_phase] will result in a new frame on the clock, but won’t necessarily repaint any widgets. To repaint a widget, you have to use [methodGtk.Widget.queue_draw] which invalidates the widget (thus scheduling it to receive a draw on the next frame). gtk_widget_queue_draw() will also end up requesting a frame on the appropriate frame clock.

      A widget’s frame clock will not change while the widget is mapped. Reparenting a widget (which implies a temporary unmap) can change the widget’s frame clock.

      Unrealized widgets do not have a frame clock.

      Returns Gdk.FrameClock

    • Gets a GtkWidget that has previously been set as gutter.

      See [methodGtk.TextView.set_gutter].

      win must be one of %GTK_TEXT_WINDOW_LEFT, %GTK_TEXT_WINDOW_RIGHT, %GTK_TEXT_WINDOW_TOP, or %GTK_TEXT_WINDOW_BOTTOM.

      Parameters

      Returns Gtk.Widget

    • Gets the horizontal alignment of widget.

      For backwards compatibility reasons this method will never return %GTK_ALIGN_BASELINE, but instead it will convert it to %GTK_ALIGN_FILL. Baselines are not supported for horizontal alignment.

      Returns Gtk.Align

    • getHasTooltip(): boolean
    • getHeight(): number
    • Returns the content height of the widget.

      This function returns the height passed to its size-allocate implementation, which is the height you should be using in [vfuncGtk.Widget.snapshot].

      For pointer events, see [methodGtk.Widget.contains].

      Returns number

    • getHexpand(): boolean
    • 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 [methodGtk.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.

      Returns boolean

    • getHexpandSet(): boolean
    • Gets whether gtk_widget_set_hexpand() has been used to explicitly set the expand flag on this widget.

      If [propertyGtk.Widget:hexpand] property 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.

      Returns boolean

    • getIndent(): number
    • Gets the default indentation of paragraphs in text_view.

      Tags in the view’s buffer may override the default. The indentation may be negative.

      Returns number

    • getIterAtLocation(x: number, y: number): [boolean, Gtk.TextIter]
    • Retrieves the iterator at buffer coordinates x and y.

      Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with [methodGtk.TextView.window_to_buffer_coords].

      Parameters

      • x: number

        x position, in buffer coordinates

      • y: number

        y position, in buffer coordinates

      Returns [boolean, Gtk.TextIter]

    • getIterAtPosition(x: number, y: number): [boolean, Gtk.TextIter, number]
    • Retrieves the iterator pointing to the character at buffer coordinates x and y.

      Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with [methodGtk.TextView.window_to_buffer_coords].

      Note that this is different from [methodGtk.TextView.get_iter_at_location], which returns cursor locations, i.e. positions between characters.

      Parameters

      • x: number

        x position, in buffer coordinates

      • y: number

        y position, in buffer coordinates

      Returns [boolean, Gtk.TextIter, number]

    • Gets a rectangle which roughly contains the character at iter.

      The rectangle position is in buffer coordinates; use [methodGtk.TextView.buffer_to_window_coords] to convert these coordinates to coordinates for one of the windows in the text view.

      Parameters

      Returns Gdk.Rectangle

    • getLeftMargin(): number
    • Gets the GtkTextIter at the start of the line containing the coordinate y.

      y is in buffer coordinates, convert from window coordinates with [methodGtk.TextView.window_to_buffer_coords]. If non-%NULL, line_top will be filled with the coordinate of the top edge of the line.

      Parameters

      • y: number

        a y coordinate

      Returns [Gtk.TextIter, number]

    • Gets the y coordinate of the top of the line containing iter, and the height of the line.

      The coordinate is a buffer coordinate; convert to window coordinates with [methodGtk.TextView.buffer_to_window_coords].

      Parameters

      Returns [number, number]

    • getMapped(): boolean
    • getMarginBottom(): number
    • getMarginEnd(): number
    • getMarginStart(): number
    • getMarginTop(): number
    • getMonospace(): boolean
    • getName(): string
    • Retrieves the name of a widget.

      See [methodGtk.Widget.set_name] for the significance of widget names.

      Returns string

    • Returns the nearest GtkNative ancestor of widget.

      This function will return %NULL if the widget is not contained inside a widget tree with a native ancestor.

      GtkNative widgets will return themselves here.

      Returns Gtk.Native

    • getOpacity(): number
    • getOverwrite(): boolean
    • Gets a PangoContext with the appropriate font map, font description, and base direction for this widget.

      Unlike the context returned by [methodGtk.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. This can be tracked by listening to changes of the [propertyGtk.Widget:root] property on the widget.

      Returns Pango.Context

    • getPixelsAboveLines(): number
    • Gets the default number of pixels to put above paragraphs.

      Adding this function with [methodGtk.TextView.get_pixels_below_lines] is equal to the line space between each paragraph.

      Returns number

    • getPixelsBelowLines(): number
    • Gets the default number of pixels to put below paragraphs.

      The line space is the sum of the value returned by this function and the value returned by [methodGtk.TextView.get_pixels_above_lines].

      Returns number

    • getPixelsInsideWrap(): number
    • 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 GtkFixed.

      Handle with care. Note that the natural height of a height-for-width 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.

      Use [idgtk_widget_measure] if you want to support baseline alignment.

      Returns [Gtk.Requisition, Gtk.Requisition]

    • Gets the primary clipboard of widget.

      This is a utility function to get the primary clipboard object for the GdkDisplay that widget is using.

      Note that this function always works, even when widget is not realized yet.

      Returns Gdk.Clipboard

    • getProperty(propertyName?: string, value?: any): void
    • Gets a property of an object.

      The value can be:

      • an empty #GValue initialized by %G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
      • a #GValue initialized with the expected type of the property
      • a #GValue initialized with a type to which the expected type of the property can be transformed

      In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().

      Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.

      Parameters

      • Optional propertyName: string

        the name of the property to get

      • Optional value: any

        return location for the property value

      Returns void

    • getQdata(quark: number): object
    • This function gets back user data pointers stored via g_object_set_qdata().

      Parameters

      • quark: number

        A #GQuark, naming the user data pointer

      Returns object

    • getRealized(): boolean
    • getReceivesDefault(): boolean
    • 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.

      See [methodGtk.Widget.set_receives_default].

      Returns boolean

    • Gets whether the widget prefers a height-for-width layout or a width-for-height layout.

      Single-child widgets generally propagate the preference of their child, more complex widgets need to request something either in context of their children or in context of their allocation capabilities.

      Returns Gtk.SizeRequestMode

    • getRightMargin(): number
    • Returns the GtkRoot widget of widget.

      This function will return %NULL if the widget is not contained inside a widget tree with a root widget.

      GtkRoot widgets will return themselves here.

      Returns Gtk.Root

    • getScaleFactor(): number
    • 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).

      See [methodGdk.Surface.get_scale_factor].

      Returns number

    • getSensitive(): boolean
    • Returns the widget’s sensitivity.

      This function returns the value that has been set using [methodGtk.Widget.set_sensitive]).

      The effective sensitivity of a widget is however determined by both its own and its parent widget’s sensitivity. See [methodGtk.Widget.is_sensitive].

      Returns boolean

    • 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 GdkDisplay. If you want to monitor the widget for changes in its settings, connect to the notify::display signal.

      Returns Gtk.Settings

    • Returns the content width or height of the widget.

      Which dimension is returned depends on orientation.

      This is equivalent to calling [methodGtk.Widget.get_width] for %GTK_ORIENTATION_HORIZONTAL or [methodGtk.Widget.get_height] for %GTK_ORIENTATION_VERTICAL, but can be used when writing orientation-independent code, such as when implementing [ifaceGtk.Orientable] widgets.

      Parameters

      Returns number

    • getSizeRequest(): [number, number]
    • 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 height indicates that that dimension has not been set explicitly and the natural requisition of the widget will be used instead. See [methodGtk.Widget.set_size_request]. To get the size a widget will actually request, call [methodGtk.Widget.measure] instead of this function.

      Returns [number, number]

    • 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.

      Also note that if you are looking for a way to obtain the [flagsGtk.StateFlags] to pass to a [classGtk.StyleContext] method, you should look at [methodGtk.StyleContext.get_state].

      Returns Gtk.StateFlags

    • Gets the default tabs for text_view.

      Tags in the buffer may override the defaults. The returned array will be %NULL if “standard” (8-space) tabs are used. Free the return value with [methodPango.TabArray.free].

      Returns TabArray

    • Fetch an object build from the template XML for widget_type in this widget instance.

      This will only report children which were previously declared with [methodGtk.WidgetClass.bind_template_child_full] or one of its variants.

      This function is only meant to be called for code which is private to the widget_type which declared the child and is meant for language bindings which cannot easily make use of the GObject structure offsets.

      Parameters

      • widgetType: GType<unknown>

        The GType to get a template child for

      • name: string

        The “id” of the child defined in the template XML

      Returns GObject.Object

    • getTooltipMarkup(): string
    • Gets the contents of the tooltip for widget.

      If the tooltip has not been set using [methodGtk.Widget.set_tooltip_markup], this function returns %NULL.

      Returns string

    • getTooltipText(): string
    • Gets the contents of the tooltip for widget.

      If the widget's tooltip was set using [methodGtk.Widget.set_tooltip_markup], this function will return the escaped text.

      Returns string

    • getTopMargin(): number
    • getVexpand(): boolean
    • Gets whether the widget would like any available extra vertical space.

      See [methodGtk.Widget.get_hexpand] for more detail.

      Returns boolean

    • getVexpandSet(): boolean
    • Gets whether gtk_widget_set_vexpand() has been used to explicitly set the expand flag on this widget.

      See [methodGtk.Widget.get_hexpand_set] for more detail.

      Returns boolean

    • getVisible(): boolean
    • Determines whether the widget is visible.

      If you want to take into account whether the widget’s parent is also marked as visible, use [methodGtk.Widget.is_visible] instead.

      This function does not check if the widget is obscured in any way.

      See [methodGtk.Widget.set_visible].

      Returns boolean

    • Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates.

      Convert to window coordinates with [methodGtk.TextView.buffer_to_window_coords].

      Returns Gdk.Rectangle

    • getWidth(): number
    • Returns the content width of the widget.

      This function returns the width passed to its size-allocate implementation, which is the width you should be using in [vfuncGtk.Widget.snapshot].

      For pointer events, see [methodGtk.Widget.contains].

      Returns number

    • getv(names: string[], values: any[]): void
    • Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.

      Parameters

      • names: string[]

        the names of each property to get

      • values: any[]

        the values of each property to get

      Returns void

    • grabFocus(): boolean
    • Causes widget to have the keyboard focus for the GtkWindow it's inside.

      If widget is not focusable, or its [vfuncGtk.Widget.grab_focus] implementation cannot transfer the focus to a descendant of widget that is focusable, it will not take focus and %FALSE will be returned.

      Calling [methodGtk.Widget.grab_focus] on an already focused widget is allowed, should not have an effect, and return %TRUE.

      Returns boolean

    • hasCssClass(cssClass: string): boolean
    • Returns whether css_class is currently applied to widget.

      Parameters

      • cssClass: string

        A style class, without the leading '.' used for notation of style classes

      Returns boolean

    • hasVisibleFocus(): boolean
    • Determines if the widget should show a visible indication that it has the global input focus.

      This is a convenience function that takes into account whether focus indication should currently be shown in the toplevel window of widget. See [methodGtk.Window.get_focus_visible] for more information about focus indication.

      To find out if the widget has the global input focus, use [methodGtk.Widget.has_focus].

      Returns boolean

    • hide(): void
    • Reverses the effects of gtk_widget_show().

      This is causing the widget to be hidden (invisible to the user).

      Returns void

    • imContextFilterKeypress(event: Gdk.Event): boolean
    • Allow the GtkTextView input method to internally handle key press and release events.

      If this function returns %TRUE, then no further processing should be done for this key event. See [methodGtk.IMContext.filter_keypress].

      Note that you are expected to call this function from your handler when overriding key event handling. This is needed in the case when you need to insert your own key handling between the input method and the default key event handling of the GtkTextView.

      static gboolean
      gtk_foo_bar_key_press_event (GtkWidget *widget,
      GdkEvent *event)
      {
      guint keyval;

      gdk_event_get_keyval ((GdkEvent*)event, &keyval);

      if (keyval == GDK_KEY_Return || keyval == GDK_KEY_KP_Enter)
      {
      if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (widget), event))
      return TRUE;
      }

      // Do some stuff

      return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event);
      }

      Parameters

      Returns boolean

    • inDestruction(): boolean
    • Returns whether the widget is currently being destroyed.

      This information can sometimes be used to avoid doing unnecessary work.

      Returns boolean

    • initTemplate(): void
    • 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 [methodGtk.WidgetClass.set_template].

      It is important to call this function in the instance initializer of a GtkWidget subclass and not in GObject.constructed() or GObject.constructor() for two reasons:

      • derived widgets will assume that the composite widgets defined by its parent classes have been created in their relative instance initializers
      • when calling g_object_new() on a widget with composite templates, it’s important to build the composite widgets before the construct properties are set. Properties passed to g_object_new() should take precedence over properties set in the private template XML

      A good rule of thumb is to call this function as the first thing in an instance initialization function.

      Returns void

    • Inserts group into widget.

      Children of widget that implement [ifaceGtk.Actionable] can then be associated with actions in group by setting their “action-name” to prefix.action-name.

      Note that inheritance is defined for individual actions. I.e. even if you insert a group with prefix prefix, actions with the same prefix will still be inherited from the parent, unless the group contains an action with the same name.

      If group is %NULL, a previously inserted group for name is removed from widget.

      Parameters

      • name: string

        the prefix for actions in group

      • group: Gio.ActionGroup

        a GActionGroup, or %NULL to remove the previously inserted group for name

      Returns void

    • Inserts widget into the child widget list of parent.

      It will be placed after previous_sibling, or at the beginning if previous_sibling is %NULL.

      After calling this function, gtk_widget_get_prev_sibling(widget) will return previous_sibling.

      If parent is already set as the parent widget of widget, this function can also be used to reorder widget in the child widget list of parent.

      This API is primarily meant for widget implementations; if you are just using a widget, you must use its own API for adding children.

      Parameters

      • parent: Gtk.Widget

        the parent GtkWidget to insert widget into

      • Optional previousSibling: Gtk.Widget

        the new previous sibling of widget

      Returns void

    • Inserts widget into the child widget list of parent.

      It will be placed before next_sibling, or at the end if next_sibling is %NULL.

      After calling this function, gtk_widget_get_next_sibling(widget) will return next_sibling.

      If parent is already set as the parent widget of widget, this function can also be used to reorder widget in the child widget list of parent.

      This API is primarily meant for widget implementations; if you are just using a widget, you must use its own API for adding children.

      Parameters

      • parent: Gtk.Widget

        the parent GtkWidget to insert widget into

      • nextSibling: Gtk.Widget

        the new next sibling of widget

      Returns void

    • isDrawable(): boolean
    • isFloating(): boolean
    • isFocus(): boolean
    • Determines if the widget is the focus widget within its toplevel.

      This does not mean that the [propertyGtk.Widget:has-focus] property is necessarily set; [propertyGtk.Widget:has-focus] will only be set if the toplevel widget additionally has the global input focus.

      Returns boolean

    • isSensitive(): boolean
    • Returns the widget’s effective sensitivity.

      This means it is sensitive itself and also its parent widget is sensitive.

      Returns boolean

    • isVisible(): boolean
    • Determines whether the widget and all its parents are marked as visible.

      This function does not check if the widget is obscured in any way.

      See also [methodGtk.Widget.get_visible] and [methodGtk.Widget.set_visible].

      Returns boolean

    • Emits the ::keynav-failed signal on the widget.

      This function should be called whenever keyboard navigation within a single widget hits a boundary.

      The return value of this function should be interpreted in a way similar to the return value of [methodGtk.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 [methodGtk.Widget.child_focus] on the widget’s toplevel.

      The default [signalGtk.Widget::keynav-failed] handler returns %FALSE for %GTK_DIR_TAB_FORWARD and %GTK_DIR_TAB_BACKWARD. For the other values of GtkDirectionType it returns %TRUE.

      Whenever the default handler returns %TRUE, it also calls [methodGtk.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 [classGtk.Entry] 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.

      Parameters

      Returns boolean

    • Returns the widgets for which this widget is the target of a mnemonic.

      Typically, these widgets will be labels. See, for example, [methodGtk.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 must call g_list_foreach (result, (GFunc)g_object_ref, NULL) first, and then unref all the widgets afterwards.

      Returns Gtk.Widget[]

    • map(): void
    • Causes a widget to be mapped if it isn’t already.

      This function is only for use in widget implementations.

      Returns void

    • measure(orientation: Gtk.Orientation, forSize?: number): [number, number, number, number]
    • Measures widget in the orientation orientation and for the given for_size.

      As an example, if orientation is %GTK_ORIENTATION_HORIZONTAL and for_size is 300, this functions will compute the minimum and natural width of widget if it is allocated at a height of 300 pixels.

      See GtkWidget’s geometry management section for a more details on implementing GtkWidgetClass.measure().

      Parameters

      • orientation: Gtk.Orientation

        the orientation to measure

      • Optional forSize: number

        Size for the opposite of orientation, i.e. if orientation is %GTK_ORIENTATION_HORIZONTAL, this is the height the widget should be measured with. The %GTK_ORIENTATION_VERTICAL case is analogous. This way, both height-for-width and width-for-height requests can be implemented. If no size is known, -1 can be passed.

      Returns [number, number, number, number]

    • mnemonicActivate(groupCycling: boolean): boolean
    • Emits the ::mnemonic-activate signal.

      See [signalGtk.Widget::mnemonic-activate].

      Parameters

      • groupCycling: boolean

        %TRUE if there are other widgets with the same mnemonic

      Returns boolean

    • moveOverlay(child: Gtk.Widget, xpos: number, ypos: number): void
    • Updates the position of a child.

      See [methodGtk.TextView.add_overlay].

      Parameters

      • child: Gtk.Widget

        a widget already added with [methodGtk.TextView.add_overlay]

      • xpos: number

        new X position in buffer coordinates

      • ypos: number

        new Y position in buffer coordinates

      Returns void

    • moveVisually(iter: Gtk.TextIter, count: number): boolean
    • Move the iterator a given number of characters visually, treating it as the strong cursor position.

      If count is positive, then the new strong cursor position will be count positions to the right of the old cursor position. If count is negative then the new strong cursor position will be count positions to the left of the old cursor position.

      In the presence of bi-directional text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.

      Parameters

      • iter: Gtk.TextIter

        a GtkTextIter

      • count: number

        number of characters to move (negative moves left, positive moves right)

      Returns boolean

    • notify(propertyName: string): void
    • Emits a "notify" signal for the property property_name on object.

      When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.

      Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.

      Parameters

      • propertyName: string

        the name of a property installed on the class of object.

      Returns void

    • Emits a "notify" signal for the property specified by pspec on object.

      This function omits the property name lookup, hence it is faster than g_object_notify().

      One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:

        enum
      {
      PROP_0,
      PROP_FOO,
      PROP_LAST
      };

      static GParamSpec *properties[PROP_LAST];

      static void
      my_object_class_init (MyObjectClass *klass)
      {
      properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
      0, 100,
      50,
      G_PARAM_READWRITE);
      g_object_class_install_property (gobject_class,
      PROP_FOO,
      properties[PROP_FOO]);
      }

      and then notify a change on the "foo" property with:

        g_object_notify_by_pspec (self, properties[PROP_FOO]);
      

      Parameters

      • pspec: ParamSpec

        the #GParamSpec of a property installed on the class of object.

      Returns void

    • Returns a GListModel to track the children of widget.

      Calling this function will enable extra internal bookkeeping to track children and emit signals on the returned listmodel. It may slow down operations a lot.

      Applications should try hard to avoid calling this function because of the slowdowns.

      Returns Gio.ListModel

    • Returns a GListModel to track the [classGtk.EventController]s of widget.

      Calling this function will enable extra internal bookkeeping to track controllers and emit signals on the returned listmodel. It may slow down operations a lot.

      Applications should try hard to avoid calling this function because of the slowdowns.

      Returns Gio.ListModel

    • off(sigName: "notify::accepts-tab", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::bottom-margin", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::buffer", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::cursor-visible", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::editable", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::extra-menu", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::im-module", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::indent", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::input-hints", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::input-purpose", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::justification", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::left-margin", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::monospace", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::overwrite", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::pixels-above-lines", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::pixels-below-lines", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::pixels-inside-wrap", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::right-margin", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::tabs", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::top-margin", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::wrap-mode", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::can-focus", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::can-target", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::css-classes", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::css-name", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::cursor", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::focus-on-click", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::focusable", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::halign", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::has-default", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::has-focus", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::has-tooltip", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::height-request", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::hexpand", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::hexpand-set", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::layout-manager", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::margin-bottom", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::margin-end", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::margin-start", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::margin-top", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::name", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::opacity", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::overflow", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::parent", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::receives-default", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::root", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::scale-factor", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::sensitive", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::tooltip-markup", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::tooltip-text", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::valign", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::vexpand", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::vexpand-set", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::visible", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: "notify::width-request", callback: ((...args: any[]) => void)): EventEmitter
    • off(sigName: string, callback: ((...args: any[]) => void)): EventEmitter
    • Parameters

      • sigName: "notify::accepts-tab"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::bottom-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::buffer"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor-visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::editable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::extra-menu"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::im-module"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::indent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-hints"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-purpose"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::justification"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::left-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::monospace"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overwrite"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-above-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-below-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-inside-wrap"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::right-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tabs"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::top-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::wrap-mode"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-target"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-classes"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focus-on-click"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focusable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::halign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-tooltip"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::height-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::layout-manager"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-bottom"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-end"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-start"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-top"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::opacity"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overflow"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::parent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::receives-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::root"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::scale-factor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::sensitive"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-markup"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-text"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::valign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: "notify::width-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • Parameters

      • sigName: string
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      Returns EventEmitter

    • on(sigName: "notify::accepts-tab", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::bottom-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::buffer", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::cursor-visible", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::editable", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::extra-menu", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::im-module", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::indent", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::input-hints", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::input-purpose", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::justification", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::left-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::monospace", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::overwrite", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::pixels-above-lines", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::pixels-below-lines", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::pixels-inside-wrap", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::right-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::tabs", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::top-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::wrap-mode", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::can-focus", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::can-target", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::css-classes", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::css-name", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::cursor", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::focus-on-click", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::focusable", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::halign", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::has-default", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::has-focus", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::has-tooltip", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::height-request", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::hexpand", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::hexpand-set", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::layout-manager", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::margin-bottom", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::margin-end", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::margin-start", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::margin-top", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::name", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::opacity", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::overflow", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::parent", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::receives-default", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::root", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::scale-factor", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::sensitive", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::tooltip-markup", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::tooltip-text", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::valign", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::vexpand", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::vexpand-set", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::visible", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: "notify::width-request", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • on(sigName: string, callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • Parameters

      • sigName: "notify::accepts-tab"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::bottom-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::buffer"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor-visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::editable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::extra-menu"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::im-module"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::indent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-hints"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-purpose"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::justification"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::left-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::monospace"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overwrite"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-above-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-below-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-inside-wrap"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::right-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tabs"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::top-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::wrap-mode"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-target"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-classes"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focus-on-click"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focusable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::halign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-tooltip"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::height-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::layout-manager"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-bottom"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-end"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-start"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-top"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::opacity"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overflow"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::parent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::receives-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::root"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::scale-factor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::sensitive"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-markup"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-text"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::valign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::width-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: string
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • once(sigName: "notify::accepts-tab", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::bottom-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::buffer", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::cursor-visible", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::editable", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::extra-menu", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::im-module", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::indent", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::input-hints", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::input-purpose", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::justification", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::left-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::monospace", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::overwrite", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::pixels-above-lines", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::pixels-below-lines", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::pixels-inside-wrap", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::right-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::tabs", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::top-margin", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::wrap-mode", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::can-focus", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::can-target", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::css-classes", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::css-name", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::cursor", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::focus-on-click", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::focusable", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::halign", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::has-default", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::has-focus", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::has-tooltip", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::height-request", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::hexpand", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::hexpand-set", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::layout-manager", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::margin-bottom", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::margin-end", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::margin-start", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::margin-top", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::name", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::opacity", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::overflow", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::parent", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::receives-default", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::root", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::scale-factor", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::sensitive", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::tooltip-markup", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::tooltip-text", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::valign", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::vexpand", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::vexpand-set", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::visible", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: "notify::width-request", callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • once(sigName: string, callback: ((...args: any[]) => void), after?: boolean): EventEmitter
    • Parameters

      • sigName: "notify::accepts-tab"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::bottom-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::buffer"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor-visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::editable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::extra-menu"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::im-module"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::indent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-hints"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::input-purpose"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::justification"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::left-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::monospace"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overwrite"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-above-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-below-lines"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::pixels-inside-wrap"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::right-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tabs"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::top-margin"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::wrap-mode"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::can-target"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-classes"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::css-name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::cursor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focus-on-click"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::focusable"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::halign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-focus"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::has-tooltip"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::height-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::hexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::layout-manager"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-bottom"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-end"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-start"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::margin-top"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::name"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::opacity"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::overflow"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::parent"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::receives-default"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::root"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::scale-factor"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::sensitive"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-markup"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::tooltip-text"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::valign"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::vexpand-set"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::visible"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: "notify::width-request"
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Parameters

      • sigName: string
      • callback: ((...args: any[]) => void)
          • (...args: any[]): void
          • Parameters

            • Rest ...args: any[]

            Returns void

      • Optional after: boolean

      Returns EventEmitter

    • Finds the descendant of widget closest to the point (x, y).

      The point must be given in widget coordinates, so (0, 0) is assumed to be the top left of widget's content area.

      Usually widgets will return %NULL if the given coordinate is not contained in widget checked via [methodGtk.Widget.contains]. Otherwise they will recursively try to find a child that does not return %NULL. Widgets are however free to customize their picking algorithm.

      This function is used on the toplevel to determine the widget below the mouse cursor for purposes of hover highlighting and delivering events.

      Parameters

      • x: number

        X coordinate to test, relative to widget's origin

      • y: number

        Y coordinate to test, relative to widget's origin

      • flags: PickFlags

        Flags to influence what is picked

      Returns Gtk.Widget

    • placeCursorOnscreen(): boolean
    • queueAllocate(): void
    • Flags the widget for a rerun of the [vfuncGtk.Widget.size_allocate] function.

      Use this function instead of [methodGtk.Widget.queue_resize] when the widget's size request didn't change but it wants to reposition its contents.

      An example user of this function is [methodGtk.Widget.set_halign].

      This function is only for use in widget implementations.

      Returns void

    • queueDraw(): void
    • Schedules this widget to be redrawn in the paint phase of the current or the next frame.

      This means widget's [vfuncGtk.Widget.snapshot] implementation will be called.

      Returns void

    • queueResize(): void
    • Flags a widget to have its size renegotiated.

      This should be called when a widget for some reason has a new size request. For example, when you change the text in a [classGtk.Label], the label queues a resize to ensure there’s enough space for the new text.

      Note that you cannot call gtk_widget_queue_resize() on a widget from inside its implementation of the [vfuncGtk.Widget.size_allocate] virtual method. Calls to gtk_widget_queue_resize() from inside [vfuncGtk.Widget.size_allocate] will be silently ignored.

      This function is only for use in widget implementations.

      Returns void

    • realize(): void
    • Creates the GDK resources associated with a widget.

      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 this function realizes the widget’s parents in addition to widget itself. If a widget is not yet inside a toplevel window 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 [signalGtk.Widget::realize].

      Returns void

    • Increases the reference count of object.

      Since GLib 2.56, if GLIB_VERSION_MAX_ALLOWED is 2.56 or greater, the type of object will be propagated to the return type (using the GCC typeof() extension), so any casting the caller needs to do on the return type must be explicit.

      Returns GObject.Object

    • Increase the reference count of object, and possibly remove the [floating][floating-ref] reference, if object has a floating reference.

      In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.

      Since GLib 2.56, the type of object will be propagated to the return type under the same conditions as for g_object_ref().

      Returns GObject.Object

    • Removes controller from widget, so that it doesn't process events anymore.

      It should not be used again.

      Widgets will remove all event controllers automatically when they are destroyed, there is normally no need to call this function.

      Parameters

      Returns void

    • removeCssClass(cssClass: string): void
    • Removes a style from widget.

      After this, the style of widget will stop matching for css_class.

      Parameters

      • cssClass: string

        The style class to remove from widget, without the leading '.' used for notation of style classes

      Returns void

    • Removes a widget from the list of mnemonic labels for this widget.

      See [methodGtk.Widget.list_mnemonic_labels]. The widget must have previously been added to the list with [methodGtk.Widget.add_mnemonic_label].

      Parameters

      • label: Gtk.Widget

        a GtkWidget that was previously set as a mnemonic label for widget with [methodGtk.Widget.add_mnemonic_label]

      Returns void

    • removeTickCallback(id: number): void
    • Removes a tick callback previously registered with gtk_widget_add_tick_callback().

      Parameters

      • id: number

        an id returned by [methodGtk.Widget.add_tick_callback]

      Returns void

    • resetCursorBlink(): void
    • Ensures that the cursor is shown.

      This also resets the time that it will stay blinking (or visible, in case blinking is disabled).

      This function should be called in response to user input (e.g. from derived classes that override the textview's event handlers).

      Returns void

    • resetImContext(): void
    • Reset the input method context of the text view if needed.

      This can be necessary in the case where modifying the buffer would confuse on-going input method behavior.

      Returns void

    • runDispose(): void
    • Releases all references to other objects. This can be used to break reference cycles.

      This function should only be called from object system implementations.

      Returns void

    • scrollToIter(iter: Gtk.TextIter, withinMargin: number, useAlign: boolean, xalign: number, yalign: number): boolean
    • Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign.

      An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is %FALSE, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.

      Note that this function uses the currently-computed height of the lines in the text buffer. Line heights are computed in an idle handler; so this function may not have the desired effect if it’s called before the height computations. To avoid oddness, consider using [methodGtk.TextView.scroll_to_mark] which saves a point to be scrolled to after line validation.

      Parameters

      • iter: Gtk.TextIter

        a GtkTextIter

      • withinMargin: number

        margin as a [0.0,0.5) fraction of screen size

      • useAlign: boolean

        whether to use alignment arguments (if %FALSE, just get the mark onscreen)

      • xalign: number

        horizontal alignment of mark within visible area

      • yalign: number

        vertical alignment of mark within visible area

      Returns boolean

    • scrollToMark(mark: Gtk.TextMark, withinMargin: number, useAlign: boolean, xalign: number, yalign: number): void
    • Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign.

      An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is %FALSE, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.

      Parameters

      • mark: Gtk.TextMark

        a GtkTextMark

      • withinMargin: number

        margin as a [0.0,0.5) fraction of screen size

      • useAlign: boolean

        whether to use alignment arguments (if %FALSE, just get the mark onscreen)

      • xalign: number

        horizontal alignment of mark within visible area

      • yalign: number

        vertical alignment of mark within visible area

      Returns void

    • setAcceptsTab(acceptsTab: boolean): void
    • Sets the behavior of the text widget when the Tab key is pressed.

      If accepts_tab is %TRUE, a tab character is inserted. If accepts_tab is %FALSE the keyboard focus is moved to the next widget in the focus chain.

      Parameters

      • acceptsTab: boolean

        %TRUE if pressing the Tab key should insert a tab character, %FALSE, if pressing the Tab key should move the keyboard focus.

      Returns void

    • setBottomMargin(bottomMargin: number): void
    • Sets the bottom margin for text in text_view.

      Note that this function is confusingly named. In CSS terms, the value set here is padding.

      Parameters

      • bottomMargin: number

        bottom margin in pixels

      Returns void

    • Sets buffer as the buffer being displayed by text_view.

      The previous buffer displayed by the text view is unreferenced, and a reference is added to buffer. If you owned a reference to buffer before passing it to this function, you must remove that reference yourself; GtkTextView will not “adopt” it.

      Parameters

      Returns void

    • setCanFocus(canFocus: boolean): void
    • Specifies whether the input focus can enter the widget or any of its children.

      Applications should set can_focus to %FALSE to mark a widget as for pointer/touch use only.

      Note that having can_focus be %TRUE is only one of the necessary conditions for being focusable. A widget must also be sensitive and focusable and not have an ancestor that is marked as not can-focus in order to receive input focus.

      See [methodGtk.Widget.grab_focus] for actually setting the input focus on a widget.

      Parameters

      • canFocus: boolean

        whether or not the input focus can enter the widget or any of its children

      Returns void

    • setCanTarget(canTarget: boolean): void
    • Sets whether widget can be the target of pointer events.

      Parameters

      • canTarget: boolean

        whether this widget should be able to receive pointer events

      Returns void

    • setChildVisible(childVisible: boolean): void
    • Sets whether widget should be mapped along with its parent.

      The child visibility can be set for widget before it is added to a container with [methodGtk.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 should never be called by an application.

      Parameters

      • childVisible: boolean

        if %TRUE, widget should be mapped along with its parent.

      Returns void

    • setCssClasses(classes: string[]): void
    • Clear all style classes applied to widget and replace them with classes.

      Parameters

      • classes: string[]

        %NULL-terminated list of style classes to apply to widget.

      Returns void

    • Sets the cursor to be shown when pointer devices point towards widget.

      If the cursor is NULL, widget will use the cursor inherited from the parent widget.

      Parameters

      Returns void

    • setCursorFromName(name: string): void
    • Sets a named cursor to be shown when pointer devices point towards widget.

      This is a utility function that creates a cursor via [ctorGdk.Cursor.new_from_name] and then sets it on widget with [methodGtk.Widget.set_cursor]. See those functions for details.

      On top of that, this function allows name to be %NULL, which will do the same as calling [methodGtk.Widget.set_cursor] with a %NULL cursor.

      Parameters

      • name: string

        The name of the cursor

      Returns void

    • setCursorVisible(setting: boolean): void
    • Toggles whether the insertion point should be displayed.

      A buffer with no editable text probably shouldn’t have a visible cursor, so you may want to turn the cursor off.

      Note that this property may be overridden by the [propertyGtkSettings:gtk-keynav-use-caret] setting.

      Parameters

      • setting: boolean

        whether to show the insertion cursor

      Returns void

    • setData(key: string, data?: object): void
    • Each object carries around a table of associations from strings to pointers. This function lets you set an association.

      If the object already had an association with that name, the old association will be destroyed.

      Internally, the key is converted to a #GQuark using g_quark_from_string(). This means a copy of key is kept permanently (even after object has been finalized) — so it is recommended to only use a small, bounded set of values for key in your program, to avoid the #GQuark storage growing unbounded.

      Parameters

      • key: string

        name of the key

      • Optional data: object

        data to associate with that key

      Returns void

    • 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).

      If the direction is set to %GTK_TEXT_DIR_NONE, then the value set by [funcGtk.Widget.set_default_direction] will be used.

      Parameters

      Returns void

    • setEditable(setting: boolean): void
    • Sets the default editability of the GtkTextView.

      You can override this default setting with tags in the buffer, using the “editable” attribute of tags.

      Parameters

      • setting: boolean

        whether it’s editable

      Returns void

    • Sets a menu model to add when constructing the context menu for text_view.

      You can pass %NULL to remove a previously set extra menu.

      Parameters

      Returns void

    • Set child as the current focus child of widget.

      This function is only suitable for widget implementations. If you want a certain widget to get the input focus, call [methodGtk.Widget.grab_focus] on it.

      Parameters

      • child: Gtk.Widget

        a direct child widget of widget or %NULL to unset the focus child of widget

      Returns void

    • setFocusOnClick(focusOnClick: boolean): void
    • 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.

      Parameters

      • focusOnClick: boolean

        whether the widget should grab focus when clicked with the mouse

      Returns void

    • setFocusable(focusable: boolean): void
    • Specifies whether widget can own the input focus.

      Widget implementations should set focusable to %TRUE in their init() function if they want to receive keyboard input.

      Note that having focusable be %TRUE is only one of the necessary conditions for being focusable. A widget must also be sensitive and can-focus and not have an ancestor that is marked as not can-focus in order to receive input focus.

      See [methodGtk.Widget.grab_focus] for actually setting the input focus on a widget.

      Parameters

      • focusable: boolean

        whether or not widget can own the input focus

      Returns void

    • Sets the font map to use for Pango rendering.

      The font map is the object that is used to look up fonts. Setting a custom font map can be useful in special situations, e.g. when you need to add application-specific fonts to the set of available fonts.

      When not set, the widget will inherit the font map from its parent.

      Parameters

      • fontMap: Pango.FontMap

        a PangoFontMap, or %NULL to unset any previously set font map

      Returns void

    • Sets the cairo_font_options_t used for Pango rendering in this widget.

      When not set, the default font options for the GdkDisplay will be used.

      Parameters

      • options: FontOptions

        a cairo_font_options_t to unset any previously set default font options

      Returns void

    • Places widget into the gutter specified by win.

      win must be one of %GTK_TEXT_WINDOW_LEFT, %GTK_TEXT_WINDOW_RIGHT, %GTK_TEXT_WINDOW_TOP, or %GTK_TEXT_WINDOW_BOTTOM.

      Parameters

      Returns void

    • setHasTooltip(hasTooltip: boolean): void
    • Sets the has-tooltip property on widget to has_tooltip.

      Parameters

      • hasTooltip: boolean

        whether or not widget has a tooltip.

      Returns void

    • setHexpand(expand: boolean): void
    • 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 [methodGtk.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 [methodGtk.Widget.set_hexpand] sets the hexpand-set property (see [methodGtk.Widget.set_hexpand_set]) which causes the widget’s hexpand value to be used, rather than looking at children and widget state.

      Parameters

      • expand: boolean

        whether to expand

      Returns void

    • setHexpandSet(set: boolean): void
    • Sets whether the hexpand flag will be used.

      The [propertyGtk.Widget:hexpand-set] property will be set automatically when you call [methodGtk.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.

      Parameters

      • set: boolean

        value for hexpand-set property

      Returns void

    • Sets the GtkScrollablePolicy.

      The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.

      Parameters

      Returns void

    • setIndent(indent: number): void
    • Sets the default indentation for paragraphs in text_view.

      Tags in the buffer may override the default.

      Parameters

      • indent: number

        indentation in pixels

      Returns void

    • setLeftMargin(leftMargin: number): void
    • Sets the default left margin for text in text_view.

      Tags in the buffer may override the default.

      Note that this function is confusingly named. In CSS terms, the value set here is padding.

      Parameters

      • leftMargin: number

        left margin in pixels

      Returns void

    • setMarginBottom(margin: number): void
    • setMarginEnd(margin: number): void
    • setMarginStart(margin: number): void
    • setMarginTop(margin: number): void
    • setMonospace(monospace: boolean): void
    • Sets whether the GtkTextView should display text in monospace styling.

      Parameters

      • monospace: boolean

        %TRUE to request monospace styling

      Returns void

    • setName(name: string): void
    • Sets a widgets name.

      Setting a name allows you to refer to the widget 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 [classGtk.StyleContext].

      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.

      Parameters

      • name: string

        name for the widget

      Returns void

    • setOpacity(opacity: number): void
    • Request the widget to be rendered partially transparent.

      An opacity of 0 is fully transparent and an opacity of 1 is fully opaque.

      Opacity works on both toplevel widgets and child widgets, although there are some limitations: For toplevel widgets, applying opacity depends on the capabilities of the windowing system. On X11, this has any effect only on X displays with a compositing manager, see gdk_display_is_composited(). On Windows and Wayland it should always work, although setting a window’s opacity after the window has been shown may cause some flicker.

      Note that the opacity is inherited through inclusion — if you set a toplevel to be partially translucent, all of its content will appear translucent, since it is ultimatively rendered on that toplevel. The opacity value itself is not inherited by child widgets (since that would make widgets deeper in the hierarchy progressively more translucent). As a consequence, [classGtk.Popover]s and other [ifaceGtk.Native] widgets with their own surface will use their own opacity value, and thus by default appear non-translucent, even if they are attached to a toplevel that is translucent.

      Parameters

      • opacity: number

        desired opacity, between 0 and 1

      Returns void

    • Sets how widget treats content that is drawn outside the widget's content area.

      See the definition of [enumGtk.Overflow] for details.

      This setting is provided for widget implementations and should not be used by application code.

      The default value is %GTK_OVERFLOW_VISIBLE.

      Parameters

      Returns void

    • setOverwrite(overwrite: boolean): void
    • Changes the GtkTextView overwrite mode.

      Parameters

      • overwrite: boolean

        %TRUE to turn on overwrite mode, %FALSE to turn it off

      Returns void

    • Sets parent as the parent widget of widget.

      This takes care of details such as updating the state and style of the child to reflect its new location and resizing the parent. The opposite function is [methodGtk.Widget.unparent].

      This function is useful only when implementing subclasses of GtkWidget.

      Parameters

      Returns void

    • setPixelsAboveLines(pixelsAboveLines: number): void
    • Sets the default number of blank pixels above paragraphs in text_view.

      Tags in the buffer for text_view may override the defaults.

      Parameters

      • pixelsAboveLines: number

        pixels above paragraphs

      Returns void

    • setPixelsBelowLines(pixelsBelowLines: number): void
    • Sets the default number of pixels of blank space to put below paragraphs in text_view.

      May be overridden by tags applied to text_view’s buffer.

      Parameters

      • pixelsBelowLines: number

        pixels below paragraphs

      Returns void

    • setPixelsInsideWrap(pixelsInsideWrap: number): void
    • Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph.

      May be overridden by tags in text_view’s buffer.

      Parameters

      • pixelsInsideWrap: number

        default number of pixels between wrapped lines

      Returns void

    • setProperty(propertyName: string, value?: any): void
    • Sets a property on an object.

      Parameters

      • propertyName: string

        the name of the property to set

      • Optional value: any

        the value

      Returns void

    • setReceivesDefault(receivesDefault: boolean): void
    • 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.

      Parameters

      • receivesDefault: boolean

        whether or not widget can be a default widget.

      Returns void

    • setRightMargin(rightMargin: number): void
    • Sets the default right margin for text in the text view.

      Tags in the buffer may override the default.

      Note that this function is confusingly named. In CSS terms, the value set here is padding.

      Parameters

      • rightMargin: number

        right margin in pixels

      Returns void

    • setSensitive(sensitive: boolean): void
    • 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.

      Parameters

      • sensitive: boolean

        %TRUE to make the widget sensitive

      Returns void

    • setSizeRequest(width: number, height: number): void
    • 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.

      In most cases, [methodGtk.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.

      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.

      The size request set here does not include any margin from the properties [propertyGtk.Widget:margin-start], [propertyGtk.Widget:margin-end], [propertyGtk.Widget:margin-top], and [propertyGtk.Widget:margin-bottom], but it does include pretty much all other padding or border properties set by any subclass of GtkWidget.

      Parameters

      • width: number

        width widget should request, or -1 to unset

      • height: number

        height widget should request, or -1 to unset

      Returns void

    • Turns on flag values in the current widget state.

      Typical widget states are insensitive, prelighted, etc.

      This function accepts the values %GTK_STATE_FLAG_DIR_LTR and %GTK_STATE_FLAG_DIR_RTL but ignores them. If you want to set the widget's direction, use [methodGtk.Widget.set_direction].

      This function is for use in widget implementations.

      Parameters

      • flags: Gtk.StateFlags

        State flags to turn on

      • clear: boolean

        Whether to clear state before turning on flags

      Returns void

    • Sets the default tab stops for paragraphs in text_view.

      Tags in the buffer may override the default.

      Parameters

      Returns void

    • setTooltipMarkup(markup: string): void
    • Sets markup as the contents of the tooltip, which is marked up with Pango markup.

      This function will take care of setting the [propertyGtk.Widget:has-tooltip] as a side effect, and of the default handler for the [signalGtk.Widget::query-tooltip] signal.

      See also [methodGtk.Tooltip.set_markup].

      Parameters

      • markup: string

        the contents of the tooltip for widget

      Returns void

    • setTooltipText(text: string): void
    • Sets text as the contents of the tooltip.

      If text contains any markup, it will be escaped.

      This function will take care of setting [propertyGtk.Widget:has-tooltip] as a side effect, and of the default handler for the [signalGtk.Widget::query-tooltip] signal.

      See also [methodGtk.Tooltip.set_text].

      Parameters

      • text: string

        the contents of the tooltip for widget

      Returns void

    • setTopMargin(topMargin: number): void
    • Sets the top margin for text in text_view.

      Note that this function is confusingly named. In CSS terms, the value set here is padding.

      Parameters

      • topMargin: number

        top margin in pixels

      Returns void

    • setVexpand(expand: boolean): void
    • Sets whether the widget would like any available extra vertical space.

      See [methodGtk.Widget.set_hexpand] for more detail.

      Parameters

      • expand: boolean

        whether to expand

      Returns void

    • setVexpandSet(set: boolean): void
    • Sets whether the vexpand flag will be used.

      See [methodGtk.Widget.set_hexpand_set] for more detail.

      Parameters

      • set: boolean

        value for vexpand-set property

      Returns void

    • setVisible(visible: boolean): void
    • Sets the visibility state of widget.

      Note that setting this to %TRUE doesn’t mean the widget is actually viewable, see [methodGtk.Widget.get_visible].

      This function simply calls [methodGtk.Widget.show] or [methodGtk.Widget.hide] but is nicer to use when the visibility of the widget depends on some condition.

      Parameters

      • visible: boolean

        whether the widget should be shown or not

      Returns void

    • shouldLayout(): boolean
    • Returns whether widget should contribute to the measuring and allocation of its parent.

      This is %FALSE for invisible children, but also for children that have their own surface.

      Returns boolean

    • show(): void
    • Flags a widget to be displayed.

      Any widget that isn’t shown will not appear on the screen.

      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.

      Returns void

    • sizeAllocate(allocation: Gdk.Rectangle, baseline: number): void
    • Allocates widget with a transformation that translates the origin to the position in allocation.

      This is a simple form of [methodGtk.Widget.allocate].

      Parameters

      • allocation: Gdk.Rectangle

        position and size to be allocated to widget

      • baseline: number

        The baseline of the child, or -1

      Returns void

    • Snapshot the a child of widget.

      When a widget receives a call to the snapshot function, it must send synthetic [vfuncGtk.Widget.snapshot] calls to all children. This function provides a convenient way of doing this. A widget, when it receives a call to its [vfuncGtk.Widget.snapshot] function, calls gtk_widget_snapshot_child() once for each child, passing in the snapshot the widget received.

      gtk_widget_snapshot_child() takes care of translating the origin of snapshot, and deciding whether the child needs to be snapshot.

      This function does nothing for children that implement GtkNative.

      Parameters

      • child: Gtk.Widget

        a child of widget

      • snapshot: Gtk.Snapshot

        GtkSnapshot as passed to the widget. In particular, no calls to gtk_snapshot_translate() or other transform calls should have been made.

      Returns void

    • Determines whether iter is at the start of a display line.

      See [methodGtk.TextView.forward_display_line] for an explanation of display lines vs. paragraphs.

      Parameters

      Returns boolean

    • stealData(key?: string): object
    • Remove a specified datum from the object's data associations, without invoking the association's destroy handler.

      Parameters

      • Optional key: string

        name of the key

      Returns object

    • stealQdata(quark: number): object
    • This function gets back user data pointers stored via g_object_set_qdata() and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:

      void
      object_add_to_user_list (GObject *object,
      const gchar *new_string)
      {
      // the quark, naming the object data
      GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
      // retrieve the old string list
      GList *list = g_object_steal_qdata (object, quark_string_list);

      // prepend new string
      list = g_list_prepend (list, g_strdup (new_string));
      // this changed 'list', so we need to set it again
      g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
      }
      static void
      free_string_list (gpointer data)
      {
      GList *node, *list = data;

      for (node = list; node; node = node->next)
      g_free (node->data);
      g_list_free (list);
      }

      Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().

      Parameters

      • quark: number

        A #GQuark, naming the user data pointer

      Returns object

    • thawNotify(): void
    • Reverts the effect of a previous call to g_object_freeze_notify(). The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.

      Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.

      It is an error to call this function when the freeze count is zero.

      Returns void

    • translateCoordinates(destWidget: Gtk.Widget, srcX: number, srcY: number): [boolean, number, number]
    • Translate coordinates relative to src_widget’s allocation to coordinates relative to dest_widget’s allocations.

      In order to perform this operation, both widget must share a common ancestor.

      Parameters

      • destWidget: Gtk.Widget

        a GtkWidget

      • srcX: number

        X position relative to src_widget

      • srcY: number

        Y position relative to src_widget

      Returns [boolean, number, number]

    • triggerTooltipQuery(): void
    • unmap(): void
    • Causes a widget to be unmapped if it’s currently mapped.

      This function is only for use in widget implementations.

      Returns void

    • unparent(): void
    • Dissociate widget from its parent.

      This function is only for use in widget implementations, typically in dispose.

      Returns void

    • unrealize(): void
    • Causes a widget to be unrealized (frees all GDK resources associated with the widget).

      This function is only useful in widget implementations.

      Returns void

    • unref(): void
    • Decreases the reference count of object. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

      If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.

      Returns void

    • Turns off flag values for the current widget state.

      See [methodGtk.Widget.set_state_flags].

      This function is for use in widget implementations.

      Parameters

      Returns void

    • Updates an array of accessible properties.

      This function should be called by GtkWidget types whenever an accessible property change must be communicated to assistive technologies.

      This function is meant to be used by language bindings.

      Parameters

      • properties: AccessibleProperty[]

        an array of GtkAccessibleProperty

      • values: any[]

        an array of GValues, one for each property

      Returns void

    • Updates an array of accessible relations.

      This function should be called by GtkWidget types whenever an accessible relation change must be communicated to assistive technologies.

      This function is meant to be used by language bindings.

      Parameters

      • relations: AccessibleRelation[]

        an array of GtkAccessibleRelation

      • values: any[]

        an array of GValues, one for each relation

      Returns void

    • Updates an array of accessible states.

      This function should be called by GtkWidget types whenever an accessible state change must be communicated to assistive technologies.

      This function is meant to be used by language bindings.

      Parameters

      • states: AccessibleState[]

        an array of GtkAccessibleState

      • values: any[]

        an array of GValues, one for each state

      Returns void

    • watchClosure(closure: TClosure<any, any>): void
    • This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling g_closure_invalidate() on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, g_object_ref() and g_object_unref() are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.

      Parameters

      • closure: TClosure<any, any>

        #GClosure to watch

      Returns void

    • windowToBufferCoords(win: Gtk.TextWindowType, windowX: number, windowY: number): [number, number]
    • compatControl(what: number, data: object): number
    • Find the #GParamSpec with the given name for an interface. Generally, the interface vtable passed in as g_iface will be the default vtable from g_type_default_interface_ref(), or, if you know the interface has already been loaded, g_type_default_interface_peek().

      Parameters

      • gIface: TypeInterface

        any interface vtable for the interface, or the default vtable for the interface

      • propertyName: string

        name of a property to look up.

      Returns ParamSpec

    • Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.

      This function is meant to be called from the interface's default vtable initialization function (the class_init member of #GTypeInfo.) It must not be called after after class_init has been called for any object types implementing this interface.

      If pspec is a floating reference, it will be consumed.

      Parameters

      • gIface: TypeInterface

        any interface vtable for the interface, or the default vtable for the interface.

      • pspec: ParamSpec

        the #GParamSpec for the new property

      Returns void

    • Lists the properties of an interface.Generally, the interface vtable passed in as g_iface will be the default vtable from g_type_default_interface_ref(), or, if you know the interface has already been loaded, g_type_default_interface_peek().

      Parameters

      • gIface: TypeInterface

        any interface vtable for the interface, or the default vtable for the interface

      Returns ParamSpec[]

    • Creates a new GtkTextView.

      If you don’t call [methodGtk.TextView.set_buffer] before using the text view, an empty default buffer will be created for you. Get the buffer with [methodGtk.TextView.get_buffer]. If you want to specify your own buffer, consider [ctorGtk.TextView.new_with_buffer].

      Returns Granite.HyperTextView

    • Creates a new GtkTextView.

      If you don’t call [methodGtk.TextView.set_buffer] before using the text view, an empty default buffer will be created for you. Get the buffer with [methodGtk.TextView.get_buffer]. If you want to specify your own buffer, consider [ctorGtk.TextView.new_with_buffer].

      Returns Gtk.TextView

    • Creates a new GtkTextView widget displaying the buffer buffer.

      One buffer can be shared among many widgets. buffer may be %NULL to create a default buffer, in which case this function is equivalent to [ctorGtk.TextView.new]. The text view adds its own reference count to the buffer; it does not take over an existing reference.

      Parameters

      Returns Gtk.TextView

    • Creates a new instance of a #GObject subtype and sets its properties.

      Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.

      Parameters

      • objectType: GType<unknown>

        the type id of the #GObject subtype to instantiate

      • parameters: GObject.Parameter[]

        an array of #GParameter

      Returns GObject.Object

    Legend

    • Module
    • Object literal
    • Variable
    • Function
    • Function with type parameter
    • Index signature
    • Type alias
    • Type alias with type parameter
    • Enumeration
    • Enumeration member
    • Property
    • Method
    • Interface
    • Interface with type parameter
    • Constructor
    • Property
    • Method
    • Index signature
    • Class
    • Class with type parameter
    • Constructor
    • Property
    • Method
    • Accessor
    • Index signature
    • Inherited constructor
    • Inherited property
    • Inherited method
    • Inherited accessor
    • Protected property
    • Protected method
    • Protected accessor
    • Private property
    • Private method
    • Private accessor
    • Static property
    • Static method