RAGS - v1.10.0
    Preparing search index...

    Class Window<Child, Attr>

    Interface describing the AGS widget mixin methods and properties.

    All AGS widgets implement this interface, which provides reactive binding, signal hooking, polling, and keybinding capabilities on top of standard GTK widgets.

    Type Parameters

    • Child

      The custom attribute type

    • Attr

    Hierarchy (View Summary)

    Index

    Accessors

    accept_focus acceptFocus anchor app_paintable application appPaintable attached_to attachedTo border_width borderWidth can_default can_focus canDefault canFocus child composite_child compositeChild decorated default_height default_width defaultHeight defaultWidth deletable destroy_with_parent destroyWithParent double_buffered doubleBuffered events exclusive exclusivity expand focus_on_click focus_on_map focus_visible focusable focusOnClick focusOnMap focusVisible gdkmonitor gravity halign has_default has_focus has_resize_grip has_tooltip has_toplevel_focus hasDefault hasFocus hasResizeGrip hasTooltip hasToplevelFocus height_request heightRequest hexpand hexpand_set hexpandSet hide_titlebar_when_maximized hideTitlebarWhenMaximized icon icon_name iconName is_active is_focus is_maximized isActive isFocus isMaximized keymode layer margin margin_bottom margin_end margin_left margin_right margin_start margin_top marginBottom marginEnd marginLeft marginRight margins marginStart marginTop mnemonics_visible mnemonicsVisible modal monitor name no_show_all noShowAll opacity parent popup receives_default receivesDefault resizable resize_grip_visible resize_mode resizeGripVisible resizeMode role scale_factor scaleFactor screen sensitive skip_pager_hint skip_taskbar_hint skipPagerHint skipTaskbarHint startup_id startupId style title tooltip_markup tooltip_text tooltipMarkup tooltipText transient_for transientFor type type_hint typeHint urgency_hint urgencyHint valign vexpand vexpand_set vexpandSet visible width_request widthRequest window window_position windowPosition

    Constructors

    Events

    Methods

    _init activate activate_default activate_focus activate_key add add_accel_group add_accelerator add_child add_device_events add_events add_mnemonic add_mnemonic_label add_tick_callback begin_move_drag begin_resize_drag bind bind_property bind_property_full block_signal_handler can_activate_accel check_resize child_focus child_get_property child_notify child_notify_by_pspec child_set_property child_type class_path close compute_expand connect connect_after construct_child create_pango_context create_pango_layout custom_finished custom_tag_end custom_tag_start deiconify destroy destroyed device_is_shadowed disconnect drag_begin drag_check_threshold drag_dest_add_image_targets drag_dest_add_text_targets drag_dest_add_uri_targets drag_dest_find_target drag_dest_get_target_list drag_dest_get_track_motion drag_dest_set drag_dest_set_proxy drag_dest_set_target_list drag_dest_set_track_motion drag_dest_unset drag_get_data drag_highlight drag_source_add_image_targets drag_source_add_text_targets drag_source_add_uri_targets drag_source_get_target_list drag_source_set drag_source_set_icon_gicon drag_source_set_icon_name drag_source_set_icon_pixbuf drag_source_set_icon_stock drag_source_set_target_list drag_source_unset drag_unhighlight draw emit ensure_style error_bell event forall force_floating foreach freeze_child_notify freeze_notify fullscreen fullscreen_on_monitor get_accept_focus get_accessible get_action_group get_allocated_baseline get_allocated_height get_allocated_size get_allocated_width get_allocation get_ancestor get_app_paintable get_application get_attached_to get_border_width get_can_default get_can_focus get_child get_child_requisition get_child_visible get_children get_clip get_clipboard get_composite_name get_data get_decorated get_default_size get_default_widget get_deletable get_destroy_with_parent get_device_enabled get_device_events get_direction get_display get_double_buffered get_events get_focus get_focus_chain get_focus_child get_focus_hadjustment get_focus_on_click get_focus_on_map get_focus_vadjustment get_focus_visible get_font_map get_font_options get_frame_clock get_gravity get_group get_halign get_has_resize_grip get_has_tooltip get_has_window get_hexpand get_hexpand_set get_hide_titlebar_when_maximized get_icon get_icon_list get_icon_name get_internal_child get_mapped get_margin_bottom get_margin_end get_margin_left get_margin_right get_margin_start get_margin_top get_mnemonic_modifier get_mnemonics_visible get_modal get_modifier_mask get_modifier_style get_name get_no_show_all get_opacity get_pango_context get_parent get_parent_window get_path get_path_for_child get_pointer get_position get_preferred_height get_preferred_height_and_baseline_for_width get_preferred_height_for_width get_preferred_size get_preferred_width get_preferred_width_for_height get_property get_qdata get_realized get_receives_default get_request_mode get_requisition get_resizable get_resize_grip_area get_resize_mode get_role get_root_window get_scale_factor get_screen get_sensitive get_settings get_size get_size_request get_skip_pager_hint get_skip_taskbar_hint get_state get_state_flags get_style get_style_context get_support_multidevice get_template_child get_title get_titlebar get_tooltip_markup get_tooltip_text get_tooltip_window get_toplevel get_transient_for get_type_hint get_urgency_hint get_valign get_valign_with_baseline get_vexpand get_vexpand_set get_visible get_visual get_window get_window_type getv grab_add grab_default grab_focus grab_remove has_grab has_group has_rc_style has_screen has_visible_focus hide hide_on_delete hook iconify in_destruction init_template input_shape_combine_region insert_action_group intersect is_ancestor is_composited is_drawable is_floating is_sensitive is_toplevel is_visible isHovered keybind keynav_failed list_accel_closures list_action_prefixes list_mnemonic_labels map maximize mnemonic_activate modify_base modify_bg modify_cursor modify_fg modify_font modify_style modify_text move notify notify_by_pspec on override_background_color override_color override_cursor override_font override_symbolic_color parse_geometry parser_finished path poll present present_with_time propagate_draw propagate_key_event queue_allocate queue_compute_expand queue_draw queue_draw_area queue_draw_region queue_resize queue_resize_no_redraw realize ref ref_sink region_intersect register_window remove remove_accel_group remove_accelerator remove_mnemonic remove_mnemonic_label remove_tick_callback render_icon render_icon_pixbuf reparent reset_rc_styles reset_style reshow_with_initial_size resize resize_children resize_grip_is_visible resize_to_geometry run_dispose send_expose send_focus_change set set_accel_path set_accept_focus set_allocation set_app_paintable set_application set_attached_to set_border_width set_buildable_property set_can_default set_can_focus set_child_visible set_clip set_composite_name set_data set_decorated set_default set_default_geometry set_default_size set_deletable set_destroy_with_parent set_device_enabled set_device_events set_direction set_double_buffered set_events set_focus set_focus_chain set_focus_child set_focus_hadjustment set_focus_on_click set_focus_on_map set_focus_vadjustment set_focus_visible set_font_map set_font_options set_geometry_hints set_gravity set_halign set_has_resize_grip set_has_tooltip set_has_user_ref_count set_has_window set_hexpand set_hexpand_set set_hide_titlebar_when_maximized set_icon set_icon_from_file set_icon_list set_icon_name set_keep_above set_keep_below set_mapped set_margin_bottom set_margin_end set_margin_left set_margin_right set_margin_start set_margin_top set_mnemonic_modifier set_mnemonics_visible set_modal set_name set_no_show_all set_opacity set_parent set_parent_window set_position set_property set_realized set_reallocate_redraws set_receives_default set_redraw_on_allocate set_resizable set_resize_mode set_role set_screen set_sensitive set_size_request set_skip_pager_hint set_skip_taskbar_hint set_startup_id set_state set_state_flags set_style set_support_multidevice set_title set_titlebar set_tooltip_markup set_tooltip_text set_tooltip_window set_transient_for set_type_hint set_urgency_hint set_valign set_vexpand set_vexpand_set set_visible set_visual set_window set_wmclass setCss shape_combine_region show show_all show_now size_allocate size_allocate_with_baseline size_request steal_data steal_qdata stick stop_emission_by_name style_attach style_get_property thaw_child_notify thaw_notify toggleClassName translate_coordinates trigger_tooltip_query unblock_signal_handler unfullscreen unmap unmaximize unparent unrealize unref unregister_window unset_focus_chain unset_state_flags unstick vfunc_activate_default vfunc_activate_focus vfunc_add vfunc_add_child vfunc_adjust_baseline_allocation vfunc_adjust_baseline_request vfunc_adjust_size_allocation vfunc_adjust_size_request vfunc_button_press_event vfunc_button_release_event vfunc_can_activate_accel vfunc_check_resize vfunc_child_notify vfunc_child_type vfunc_composite_name vfunc_composited_changed vfunc_compute_expand vfunc_configure_event vfunc_construct_child vfunc_constructed vfunc_custom_finished vfunc_custom_tag_end vfunc_custom_tag_start vfunc_damage_event vfunc_delete_event vfunc_destroy vfunc_destroy_event vfunc_direction_changed vfunc_dispatch_child_properties_changed vfunc_dispatch_properties_changed vfunc_dispose vfunc_drag_begin vfunc_drag_data_delete vfunc_drag_data_get vfunc_drag_data_received vfunc_drag_drop vfunc_drag_end vfunc_drag_failed vfunc_drag_leave vfunc_drag_motion vfunc_draw vfunc_enable_debugging vfunc_enter_notify_event vfunc_event vfunc_finalize vfunc_focus vfunc_focus_in_event vfunc_focus_out_event vfunc_forall vfunc_get_accessible vfunc_get_child_property vfunc_get_internal_child vfunc_get_name vfunc_get_path_for_child vfunc_get_preferred_height vfunc_get_preferred_height_and_baseline_for_width vfunc_get_preferred_height_for_width vfunc_get_preferred_width vfunc_get_preferred_width_for_height vfunc_get_property vfunc_get_request_mode vfunc_grab_broken_event vfunc_grab_focus vfunc_grab_notify vfunc_hide vfunc_hierarchy_changed vfunc_key_press_event vfunc_key_release_event vfunc_keynav_failed vfunc_keys_changed vfunc_leave_notify_event vfunc_map vfunc_map_event vfunc_mnemonic_activate vfunc_motion_notify_event vfunc_move_focus vfunc_notify vfunc_parent_set vfunc_parser_finished vfunc_popup_menu vfunc_property_notify_event vfunc_proximity_in_event vfunc_proximity_out_event vfunc_query_tooltip vfunc_queue_draw_region vfunc_realize vfunc_remove vfunc_screen_changed vfunc_scroll_event vfunc_selection_clear_event vfunc_selection_get vfunc_selection_notify_event vfunc_selection_received vfunc_selection_request_event vfunc_set_buildable_property vfunc_set_child_property vfunc_set_focus vfunc_set_focus_child vfunc_set_name vfunc_set_property vfunc_show vfunc_show_all vfunc_show_help vfunc_size_allocate vfunc_state_changed vfunc_state_flags_changed vfunc_style_set vfunc_style_updated vfunc_touch_event vfunc_unmap vfunc_unmap_event vfunc_unrealize vfunc_visibility_notify_event vfunc_window_state_event watch_closure _classInit bind_template_callback_full bind_template_child_full compat_control find_child_property find_property find_style_property get_css_name get_default_direction get_default_icon_list get_default_icon_name get_default_style handle_border_width install_child_properties install_child_property install_properties install_property install_style_property interface_find_property interface_install_property interface_list_properties list_child_properties list_properties list_style_properties list_toplevels new newv override_property pop_composite_child push_composite_child set_accessible_role set_accessible_type set_auto_startup_notification set_connect_func set_css_name set_default_direction set_default_icon set_default_icon_from_file set_default_icon_list set_default_icon_name set_interactive_debugging set_template set_template_from_resource

    Properties

    Accessors

    • get accept_focus(): boolean

      Whether the window should receive the input focus.

      Returns boolean

    • set accept_focus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get acceptFocus(): boolean

      Whether the window should receive the input focus.

      Returns boolean

    • set acceptFocus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get anchor(): ("bottom" | "left" | "right" | "top")[]

      Screen edges the window is anchored to: 'left', 'right', 'top', 'bottom'.

      Returns ("bottom" | "left" | "right" | "top")[]

    • set anchor(anchor: ("bottom" | "left" | "right" | "top")[]): void

      Parameters

      • anchor: ("bottom" | "left" | "right" | "top")[]

      Returns void

    • get app_paintable(): boolean

      Returns boolean

    • set app_paintable(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get application(): Application

      The #GtkApplication associated with the window.

      The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows).

      Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the :application property to %NULL.

      Returns Application

    • set application(val: Application): void

      Parameters

      • val: Application

      Returns void

    • get appPaintable(): boolean

      Returns boolean

    • set appPaintable(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get attached_to(): Widget

      The widget to which this window is attached. See gtk_window_set_attached_to().

      Examples of places where specifying this relation is useful are for instance a #GtkMenu created by a #GtkComboBox, a completion popup window created by #GtkEntry or a typeahead search entry created by #GtkTreeView.

      Returns Widget

    • set attached_to(val: Widget): void

      Parameters

      • val: Widget

      Returns void

    • get attachedTo(): Widget

      The widget to which this window is attached. See gtk_window_set_attached_to().

      Examples of places where specifying this relation is useful are for instance a #GtkMenu created by a #GtkComboBox, a completion popup window created by #GtkEntry or a typeahead search entry created by #GtkTreeView.

      Returns Widget

    • set attachedTo(val: Widget): void

      Parameters

      • val: Widget

      Returns void

    • get border_width(): number

      Returns number

    • set border_width(val: number): void

      Parameters

      • val: number

      Returns void

    • get borderWidth(): number

      Returns number

    • set borderWidth(val: number): void

      Parameters

      • val: number

      Returns void

    • get can_default(): boolean

      Returns boolean

    • set can_default(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get can_focus(): boolean

      Returns boolean

    • set can_focus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get canDefault(): boolean

      Returns boolean

    • set canDefault(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get canFocus(): boolean

      Returns boolean

    • set canFocus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get composite_child(): boolean

      Returns boolean

    • get compositeChild(): boolean

      Returns boolean

    • get decorated(): boolean

      Whether the window should be decorated by the window manager.

      Returns boolean

    • set decorated(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get default_height(): number

      Returns number

    • set default_height(val: number): void

      Parameters

      • val: number

      Returns void

    • get default_width(): number

      Returns number

    • set default_width(val: number): void

      Parameters

      • val: number

      Returns void

    • get defaultHeight(): number

      Returns number

    • set defaultHeight(val: number): void

      Parameters

      • val: number

      Returns void

    • get defaultWidth(): number

      Returns number

    • set defaultWidth(val: number): void

      Parameters

      • val: number

      Returns void

    • get deletable(): boolean

      Whether the window frame should have a close button.

      Returns boolean

    • set deletable(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get destroy_with_parent(): boolean

      Returns boolean

    • set destroy_with_parent(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get destroyWithParent(): boolean

      Returns boolean

    • set destroyWithParent(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get double_buffered(): boolean

      Whether the widget is double buffered.

      Returns boolean

    • set double_buffered(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get doubleBuffered(): boolean

      Whether the widget is double buffered.

      Returns boolean

    • set doubleBuffered(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get events(): EventMask

      Returns EventMask

    • set events(val: EventMask): void

      Parameters

      • val: EventMask

      Returns void

    • get exclusivity(): Exclusivity

      The exclusive zone behavior: 'normal', 'ignore', or 'exclusive'.

      Returns Exclusivity

    • set exclusivity(exclusivity: Exclusivity): void

      Parameters

      • exclusivity: Exclusivity

      Returns void

    • get expand(): boolean

      Whether to expand in both directions. Setting this sets both #GtkWidget:hexpand and #GtkWidget:vexpand

      Returns boolean

    • set expand(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get focus_on_click(): 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.

      Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.

      Returns boolean

    • set focus_on_click(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get focus_on_map(): boolean

      Whether the window should receive the input focus when mapped.

      Returns boolean

    • set focus_on_map(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get focus_visible(): boolean

      Whether 'focus rectangles' are currently visible in this window.

      This property is maintained by GTK+ based on user input and should not be set by applications.

      Returns boolean

    • set focus_visible(val: boolean): void

      Parameters

      • val: boolean

      Returns void

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

      Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.

      Returns boolean

    • set focusOnClick(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get focusOnMap(): boolean

      Whether the window should receive the input focus when mapped.

      Returns boolean

    • set focusOnMap(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get focusVisible(): boolean

      Whether 'focus rectangles' are currently visible in this window.

      This property is maintained by GTK+ based on user input and should not be set by applications.

      Returns boolean

    • set focusVisible(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get gdkmonitor(): Monitor | null

      The GDK monitor this window is assigned to.

      Returns Monitor | null

    • set gdkmonitor(monitor: Monitor | null): void

      Parameters

      • monitor: Monitor | null

      Returns void

    • get gravity(): Gravity

      The window gravity of the window. See gtk_window_move() and #GdkGravity for more details about window gravity.

      Returns Gravity

    • set gravity(val: Gravity): void

      Parameters

      • val: Gravity

      Returns void

    • get halign(): Align

      How to distribute horizontal space if widget gets extra space, see #GtkAlign

      Returns Align

    • set halign(val: Align): void

      Parameters

      • val: Align

      Returns void

    • get has_default(): boolean

      Returns boolean

    • set has_default(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get has_focus(): boolean

      Returns boolean

    • set has_focus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get has_resize_grip(): boolean

      Whether the window has a corner resize grip.

      Note that the resize grip is only shown if the window is actually resizable and not maximized. Use #GtkWindow:resize-grip-visible to find out if the resize grip is currently shown.

      Returns boolean

    • set has_resize_grip(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get has_tooltip(): boolean

      Enables or disables the emission of #GtkWidget::query-tooltip on widget. A value of %TRUE indicates that widget can have a tooltip, in this case the widget will be queried using #GtkWidget::query-tooltip to determine whether it will provide a tooltip or not.

      Note that setting this property to %TRUE for the first time will change the event masks of the GdkWindows of this widget to include leave-notify and motion-notify events. This cannot and will not be undone when the property is set to %FALSE again.

      Returns boolean

    • set has_tooltip(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get has_toplevel_focus(): boolean

      Returns boolean

    • get hasDefault(): boolean

      Returns boolean

    • set hasDefault(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hasFocus(): boolean

      Returns boolean

    • set hasFocus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hasResizeGrip(): boolean

      Whether the window has a corner resize grip.

      Note that the resize grip is only shown if the window is actually resizable and not maximized. Use #GtkWindow:resize-grip-visible to find out if the resize grip is currently shown.

      Returns boolean

    • set hasResizeGrip(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hasTooltip(): boolean

      Enables or disables the emission of #GtkWidget::query-tooltip on widget. A value of %TRUE indicates that widget can have a tooltip, in this case the widget will be queried using #GtkWidget::query-tooltip to determine whether it will provide a tooltip or not.

      Note that setting this property to %TRUE for the first time will change the event masks of the GdkWindows of this widget to include leave-notify and motion-notify events. This cannot and will not be undone when the property is set to %FALSE again.

      Returns boolean

    • set hasTooltip(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hasToplevelFocus(): boolean

      Returns boolean

    • get height_request(): number

      Returns number

    • set height_request(val: number): void

      Parameters

      • val: number

      Returns void

    • get heightRequest(): number

      Returns number

    • set heightRequest(val: number): void

      Parameters

      • val: number

      Returns void

    • get hexpand(): boolean

      Whether to expand horizontally. See gtk_widget_set_hexpand().

      Returns boolean

    • set hexpand(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hexpand_set(): boolean

      Whether to use the #GtkWidget:hexpand property. See gtk_widget_get_hexpand_set().

      Returns boolean

    • set hexpand_set(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hexpandSet(): boolean

      Whether to use the #GtkWidget:hexpand property. See gtk_widget_get_hexpand_set().

      Returns boolean

    • set hexpandSet(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hide_titlebar_when_maximized(): boolean

      Whether the titlebar should be hidden during maximization.

      Returns boolean

    • set hide_titlebar_when_maximized(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get hideTitlebarWhenMaximized(): boolean

      Whether the titlebar should be hidden during maximization.

      Returns boolean

    • set hideTitlebarWhenMaximized(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get icon(): Pixbuf

      Returns Pixbuf

    • set icon(val: Pixbuf): void

      Parameters

      • val: Pixbuf

      Returns void

    • get icon_name(): string

      The :icon-name property specifies the name of the themed icon to use as the window icon. See #GtkIconTheme for more details.

      Returns string

    • set icon_name(val: string): void

      Parameters

      • val: string

      Returns void

    • get iconName(): string

      The :icon-name property specifies the name of the themed icon to use as the window icon. See #GtkIconTheme for more details.

      Returns string

    • set iconName(val: string): void

      Parameters

      • val: string

      Returns void

    • get is_active(): boolean

      Returns boolean

    • get is_focus(): boolean

      Returns boolean

    • set is_focus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get is_maximized(): boolean

      Returns boolean

    • get isActive(): boolean

      Returns boolean

    • get isFocus(): boolean

      Returns boolean

    • set isFocus(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get isMaximized(): boolean

      Returns boolean

    • get keymode(): "none" | "exclusive" | "on-demand"

      The keyboard interactivity mode: 'none', 'on-demand', or 'exclusive'.

      Returns "none" | "exclusive" | "on-demand"

    • set keymode(mode: "none" | "exclusive" | "on-demand"): void

      Parameters

      • mode: "none" | "exclusive" | "on-demand"

      Returns void

    • get layer(): "bottom" | "top" | "overlay" | "background"

      The layer shell layer: 'background', 'bottom', 'top', or 'overlay'.

      Returns "bottom" | "top" | "overlay" | "background"

    • set layer(layer: "bottom" | "top" | "overlay" | "background"): void

      Parameters

      • layer: "bottom" | "top" | "overlay" | "background"

      Returns void

    • get margin(): number

      Sets all four sides' margin at once. If read, returns max margin on any side.

      Returns number

    • set margin(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_bottom(): 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 gtk_widget_set_size_request() for example.

      Returns number

    • set margin_bottom(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_end(): 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 gtk_widget_set_size_request() for example.

      Returns number

    • set margin_end(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_left(): number

      Margin on left side of widget.

      This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example.

      Returns number

    • set margin_left(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_right(): number

      Margin on right side of widget.

      This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example.

      Returns number

    • set margin_right(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_start(): 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 gtk_widget_set_size_request() for example.

      Returns number

    • set margin_start(val: number): void

      Parameters

      • val: number

      Returns void

    • get margin_top(): 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 gtk_widget_set_size_request() for example.

      Returns number

    • set margin_top(val: number): void

      Parameters

      • val: number

      Returns void

    • get 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 gtk_widget_set_size_request() for example.

      Returns number

    • set marginBottom(val: number): void

      Parameters

      • val: number

      Returns void

    • get 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 gtk_widget_set_size_request() for example.

      Returns number

    • set marginEnd(val: number): void

      Parameters

      • val: number

      Returns void

    • get marginLeft(): number

      Margin on left side of widget.

      This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example.

      Returns number

    • set marginLeft(val: number): void

      Parameters

      • val: number

      Returns void

    • get marginRight(): number

      Margin on right side of widget.

      This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from gtk_widget_set_size_request() for example.

      Returns number

    • set marginRight(val: number): void

      Parameters

      • val: number

      Returns void

    • get margins(): number[]

      Layer shell margins in CSS-like order: [top, right, bottom, left].

      Returns number[]

    • set margins(margin: number[]): void

      Parameters

      • margin: number[]

      Returns void

    • get 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 gtk_widget_set_size_request() for example.

      Returns number

    • set marginStart(val: number): void

      Parameters

      • val: number

      Returns void

    • get 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 gtk_widget_set_size_request() for example.

      Returns number

    • set marginTop(val: number): void

      Parameters

      • val: number

      Returns void

    • get mnemonics_visible(): boolean

      Whether mnemonics are currently visible in this window.

      This property is maintained by GTK+ based on user input, and should not be set by applications.

      Returns boolean

    • set mnemonics_visible(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get mnemonicsVisible(): boolean

      Whether mnemonics are currently visible in this window.

      This property is maintained by GTK+ based on user input, and should not be set by applications.

      Returns boolean

    • set mnemonicsVisible(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get modal(): boolean

      Returns boolean

    • set modal(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get name(): string

      Returns string

    • set name(val: string): void

      Parameters

      • val: string

      Returns void

    • get no_show_all(): boolean

      Returns boolean

    • set no_show_all(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get noShowAll(): boolean

      Returns boolean

    • set noShowAll(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get opacity(): number

      The requested opacity of the widget. See gtk_widget_set_opacity() for more details about window opacity.

      Before 3.8 this was only available in GtkWindow

      Returns number

    • set opacity(val: number): void

      Parameters

      • val: number

      Returns void

    • get parent(): Container

      Returns Container

    • set parent(val: Container): void

      Parameters

      • val: Container

      Returns void

    • get receives_default(): boolean

      Returns boolean

    • set receives_default(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get receivesDefault(): boolean

      Returns boolean

    • set receivesDefault(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get resizable(): boolean

      Returns boolean

    • set resizable(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get resize_grip_visible(): boolean

      Whether a corner resize grip is currently shown.

      Returns boolean

    • get resize_mode(): ResizeMode

      Returns ResizeMode

    • set resize_mode(val: ResizeMode): void

      Parameters

      • val: ResizeMode

      Returns void

    • get resizeGripVisible(): boolean

      Whether a corner resize grip is currently shown.

      Returns boolean

    • get resizeMode(): ResizeMode

      Returns ResizeMode

    • set resizeMode(val: ResizeMode): void

      Parameters

      • val: ResizeMode

      Returns void

    • get role(): string

      Returns string

    • set role(val: string): void

      Parameters

      • val: string

      Returns void

    • get scale_factor(): number

      The scale factor of the widget. See gtk_widget_get_scale_factor() for more details about widget scaling.

      Returns number

    • get scaleFactor(): number

      The scale factor of the widget. See gtk_widget_get_scale_factor() for more details about widget scaling.

      Returns number

    • get screen(): Screen

      Returns Screen

    • set screen(val: Screen): void

      Parameters

      • val: Screen

      Returns void

    • get sensitive(): boolean

      Returns boolean

    • set sensitive(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get skip_pager_hint(): boolean

      Returns boolean

    • set skip_pager_hint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get skip_taskbar_hint(): boolean

      Returns boolean

    • set skip_taskbar_hint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get skipPagerHint(): boolean

      Returns boolean

    • set skipPagerHint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get skipTaskbarHint(): boolean

      Returns boolean

    • set skipTaskbarHint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • set startup_id(val: string): void

      The :startup-id is a write-only property for setting window's startup notification identifier. See gtk_window_set_startup_id() for more details.

      Parameters

      • val: string

      Returns void

    • set startupId(val: string): void

      The :startup-id is a write-only property for setting window's startup notification identifier. See gtk_window_set_startup_id() for more details.

      Parameters

      • val: string

      Returns void

    • get style(): Style

      The style of the widget, which contains information about how it will look (colors, etc).

      Returns Style

    • set style(val: Style): void

      Parameters

      • val: Style

      Returns void

    • get title(): string

      Returns string

    • set title(val: string): void

      Parameters

      • val: string

      Returns void

    • get tooltip_markup(): string

      Sets the text of tooltip to be the given string, which is marked up with the [Pango text markup language][PangoMarkupFormat]. Also see gtk_tooltip_set_markup().

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

      Note that if both #GtkWidget:tooltip-text and #GtkWidget:tooltip-markup are set, the last one wins.

      Returns string

    • set tooltip_markup(val: string): void

      Parameters

      • val: string

      Returns void

    • get tooltip_text(): string

      Sets the text of tooltip to be the given string.

      Also see gtk_tooltip_set_text().

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

      Note that if both #GtkWidget:tooltip-text and #GtkWidget:tooltip-markup are set, the last one wins.

      Returns string

    • set tooltip_text(val: string): void

      Parameters

      • val: string

      Returns void

    • get tooltipMarkup(): string

      Sets the text of tooltip to be the given string, which is marked up with the [Pango text markup language][PangoMarkupFormat]. Also see gtk_tooltip_set_markup().

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

      Note that if both #GtkWidget:tooltip-text and #GtkWidget:tooltip-markup are set, the last one wins.

      Returns string

    • set tooltipMarkup(val: string): void

      Parameters

      • val: string

      Returns void

    • get tooltipText(): string

      Sets the text of tooltip to be the given string.

      Also see gtk_tooltip_set_text().

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

      Note that if both #GtkWidget:tooltip-text and #GtkWidget:tooltip-markup are set, the last one wins.

      Returns string

    • set tooltipText(val: string): void

      Parameters

      • val: string

      Returns void

    • get transient_for(): Window

      The transient parent of the window. See gtk_window_set_transient_for() for more details about transient windows.

      Returns Window

    • set transient_for(val: Window): void

      Parameters

      • val: Window

      Returns void

    • get transientFor(): Window

      The transient parent of the window. See gtk_window_set_transient_for() for more details about transient windows.

      Returns Window

    • set transientFor(val: Window): void

      Parameters

      • val: Window

      Returns void

    • get type(): WindowType

      Returns WindowType

    • get type_hint(): WindowTypeHint

      Returns WindowTypeHint

    • set type_hint(val: WindowTypeHint): void

      Parameters

      • val: WindowTypeHint

      Returns void

    • get typeHint(): WindowTypeHint

      Returns WindowTypeHint

    • set typeHint(val: WindowTypeHint): void

      Parameters

      • val: WindowTypeHint

      Returns void

    • get urgency_hint(): boolean

      Returns boolean

    • set urgency_hint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get urgencyHint(): boolean

      Returns boolean

    • set urgencyHint(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get valign(): Align

      How to distribute vertical space if widget gets extra space, see #GtkAlign

      Returns Align

    • set valign(val: Align): void

      Parameters

      • val: Align

      Returns void

    • get vexpand(): boolean

      Whether to expand vertically. See gtk_widget_set_vexpand().

      Returns boolean

    • set vexpand(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get vexpand_set(): boolean

      Whether to use the #GtkWidget:vexpand property. See gtk_widget_get_vexpand_set().

      Returns boolean

    • set vexpand_set(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get vexpandSet(): boolean

      Whether to use the #GtkWidget:vexpand property. See gtk_widget_get_vexpand_set().

      Returns boolean

    • set vexpandSet(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get visible(): boolean

      Returns boolean

    • set visible(val: boolean): void

      Parameters

      • val: boolean

      Returns void

    • get width_request(): number

      Returns number

    • set width_request(val: number): void

      Parameters

      • val: number

      Returns void

    • get widthRequest(): number

      Returns number

    • set widthRequest(val: number): void

      Parameters

      • val: number

      Returns void

    • get window(): Window

      The widget's window if it is realized, %NULL otherwise.

      Returns Window

    • get window_position(): WindowPosition

      Returns WindowPosition

    • set window_position(val: WindowPosition): void

      Parameters

      • val: WindowPosition

      Returns void

    • get windowPosition(): WindowPosition

      Returns WindowPosition

    • set windowPosition(val: WindowPosition): void

      Parameters

      • val: WindowPosition

      Returns void

    Constructors

    Events

    • Initiates a drag on the source side. The function only needs to be used when the application is starting drags itself, and is not needed when gtk_drag_source_set() is used.

      The event is used to retrieve the timestamp that will be used internally to grab the pointer. If event is %NULL, then %GDK_CURRENT_TIME will be used. However, you should try to pass a real event in all cases, since that can be used to get information about the drag.

      Generally there are three cases when you want to start a drag by hand by calling this function:

      1. During a #GtkWidget::button-press-event handler, if you want to start a drag immediately when the user presses the mouse button. Pass the event that you have in your #GtkWidget::button-press-event handler.

      2. During a #GtkWidget::motion-notify-event handler, if you want to start a drag when the mouse moves past a certain threshold distance after a button-press. Pass the event that you have in your #GtkWidget::motion-notify-event handler.

      3. During a timeout handler, if you want to start a drag after the mouse button is held down for some time. Try to save the last event that you got from the mouse, using gdk_event_copy(), and pass it to this function (remember to free the event with gdk_event_free() when you are done). If you really cannot pass a real event, pass %NULL instead.

      Parameters

      • targets: TargetList

        The targets (data formats) in which the source can provide the data

      • actions: DragAction | null

        A bitmask of the allowed drag actions for this drag

      • button: number

        The button the user clicked to start the drag

      • event: Event | null

        The event that triggered the start of the drag, or %NULL if none can be obtained.

      • x: number

        The initial x coordinate to start dragging from, in the coordinate space of @widget. If -1 is passed, the coordinates are retrieved from or the current pointer position

      • y: number

        The initial y coordinate to start dragging from, in the coordinate space of @widget. If -1 is passed, the coordinates are retrieved from or the current pointer position

      Returns DragContext

      the context for this drag

    Methods

    • Parameters

      • ...args: any[]

      Returns void

    • For widgets that can be “activated” (buttons, menu items, etc.) this function activates them. Activation is what happens when you press Enter on a widget during key navigation. If widget isn't activatable, the function returns %FALSE.

      Returns boolean

      %TRUE if the widget was activatable

    • Activates the default widget for the window, unless the current focused widget has been configured to receive the default action (see gtk_widget_set_receives_default()), in which case the focused widget is activated.

      Returns boolean

      %TRUE if a widget got activated.

    • Activates the current focused widget within the window.

      Returns boolean

      %TRUE if a widget got activated.

    • Activates mnemonics and accelerators for this #GtkWindow. This is normally called by the default ::key_press_event handler for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.

      Parameters

      • event: EventKey

        a #GdkEventKey

      Returns boolean

      %TRUE if a mnemonic or accelerator was found and activated.

    • Adds widget to container. Typically used for simple containers such as #GtkWindow, #GtkFrame, or #GtkButton; for more complicated layout containers such as #GtkBox or #GtkGrid, this function will pick default packing parameters that may not be correct. So consider functions such as gtk_box_pack_start() and gtk_grid_attach() as an alternative to gtk_container_add() in those cases. A widget may be added to only one container at a time; you can’t place the same widget inside two different containers.

      Note that some containers, such as #GtkScrolledWindow or #GtkListBox, may add intermediate children between the added widget and the container.

      Parameters

      • widget: Widget

        a widget to be placed inside

      Returns void

    • Associate accel_group with window, such that calling gtk_accel_groups_activate() on window will activate accelerators in accel_group.

      Parameters

      • accel_group: AccelGroup

        a #GtkAccelGroup

      Returns void

    • Installs an accelerator for this widget in accel_group that causes accel_signal to be emitted if the accelerator is activated. The accel_group needs to be added to the widget’s toplevel via gtk_window_add_accel_group(), and the signal must be of type %G_SIGNAL_ACTION. Accelerators added through this function are not user changeable during runtime. If you want to support accelerators that can be changed by the user, use gtk_accel_map_add_entry() and gtk_widget_set_accel_path() or gtk_menu_item_set_accel_path() instead.

      Parameters

      • accel_signal: string

        widget signal to emit on accelerator activation

      • accel_group: AccelGroup

        accel group for this widget, added to its toplevel

      • accel_key: number

        GDK keyval of the accelerator

      • accel_mods: ModifierType | null

        modifier key combination of the accelerator

      • accel_flags: AccelFlags | null

        flag accelerators, e.g. %GTK_ACCEL_VISIBLE

      Returns void

    • Adds a child to buildable. type is an optional string describing how the child should be added.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • child: Object

        child to add

      • Optionaltype: string | null

        kind of child or %NULL

      Returns void

    • Adds the device events in the bitfield events to the event mask for widget. See gtk_widget_set_device_events() for details.

      Parameters

      • device: Device

        a #GdkDevice

      • events: EventMask | null

        an event mask, see #GdkEventMask

      Returns void

    • Adds the events in the bitfield events to the event mask for widget. See gtk_widget_set_events() and the [input handling overview][event-masks] for details.

      Parameters

      • events: number

        an event mask, see #GdkEventMask

      Returns void

    • Adds a mnemonic to this window.

      Parameters

      • keyval: number

        the mnemonic

      • target: Widget

        the widget that gets activated by the mnemonic

      Returns void

    • Adds a widget to the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). Note the list of mnemonic labels for the widget is cleared when the widget is destroyed, so the caller must make sure to update its internal state at this point as well, by using a connection to the #GtkWidget::destroy signal or a weak notifier.

      Parameters

      • label: Widget

        a #GtkWidget that acts as a mnemonic label for

      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 gtk_widget_queue_resize() or gtk_widget_queue_draw_area() yourself.

      gdk_frame_clock_get_frame_time() should generally be used for timing continuous animations and gdk_frame_timings_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 #GdkFrameClock::update signal of #GdkFrameClock, since you don't have to worry about when a #GdkFrameClock is assigned to a widget.

      Parameters

      • callback: TickCallback

        function to call for updating animations

      Returns number

      an id for the connection of this callback. Remove the callback by passing it to gtk_widget_remove_tick_callback()

    • Starts moving a window. This function is used if an application has window movement grips. When GDK can support it, the window movement will be done using the standard mechanism for the [window manager][gtk-X11-arch] or windowing system. Otherwise, GDK will try to emulate window movement, potentially not all that well, depending on the windowing system.

      Parameters

      • button: number

        mouse button that initiated the drag

      • root_x: number

        X position where the user clicked to initiate the drag, in root window coordinates

      • root_y: number

        Y position where the user clicked to initiate the drag

      • timestamp: number

        timestamp from the click event that initiated the drag

      Returns void

    • Starts resizing a window. This function is used if an application has window resizing controls. When GDK can support it, the resize will be done using the standard mechanism for the [window manager][gtk-X11-arch] or windowing system. Otherwise, GDK will try to emulate window resizing, potentially not all that well, depending on the windowing system.

      Parameters

      • edge: WindowEdge | null

        position of the resize control

      • button: number

        mouse button that initiated the drag

      • root_x: number

        X position where the user clicked to initiate the drag, in root window coordinates

      • root_y: number

        Y position where the user clicked to initiate the drag

      • timestamp: number

        timestamp from the click event that initiated the drag

      Returns void

    • Binds a widget property to a GObject property.

      Type Parameters

      • Prop extends
            | "widget"
            | "name"
            | "anchor"
            | "icon_name"
            | "$signals"
            | "type"
            | "title"
            | "monitor"
            | "popup"
            | "tooltip_markup"
            | "icon"
            | "class_name"
            | "class_names"
            | "click_through"
            | "css"
            | "hpack"
            | "vpack"
            | "cursor"
            | "attribute"
            | "border_width"
            | "borderWidth"
            | "child"
            | "resize_mode"
            | "resizeMode"
            | "app_paintable"
            | "appPaintable"
            | "can_default"
            | "canDefault"
            | "can_focus"
            | "canFocus"
            | "composite_child"
            | "compositeChild"
            | "double_buffered"
            | "doubleBuffered"
            | "events"
            | "expand"
            | "focus_on_click"
            | "focusOnClick"
            | "halign"
            | "has_default"
            | "hasDefault"
            | "has_focus"
            | "hasFocus"
            | "has_tooltip"
            | "hasTooltip"
            | "height_request"
            | "heightRequest"
            | "hexpand"
            | "hexpand_set"
            | "hexpandSet"
            | "is_focus"
            | "isFocus"
            | "margin"
            | "margin_bottom"
            | "marginBottom"
            | "margin_end"
            | "marginEnd"
            | "margin_left"
            | "marginLeft"
            | "margin_right"
            | "marginRight"
            | "margin_start"
            | "marginStart"
            | "margin_top"
            | "marginTop"
            | "no_show_all"
            | "noShowAll"
            | "opacity"
            | "parent"
            | "receives_default"
            | "receivesDefault"
            | "scale_factor"
            | "scaleFactor"
            | "sensitive"
            | "style"
            | "tooltipMarkup"
            | "tooltip_text"
            | "tooltipText"
            | "valign"
            | "vexpand"
            | "vexpand_set"
            | "vexpandSet"
            | "visible"
            | "width_request"
            | "widthRequest"
            | "window"
            | "container"
            | "is_destroyed"
            | "bin"
            | "iconName"
            | "type_hint"
            | "accept_focus"
            | "acceptFocus"
            | "application"
            | "attached_to"
            | "attachedTo"
            | "decorated"
            | "default_height"
            | "defaultHeight"
            | "default_width"
            | "defaultWidth"
            | "deletable"
            | "destroy_with_parent"
            | "destroyWithParent"
            | "focus_on_map"
            | "focusOnMap"
            | "focus_visible"
            | "focusVisible"
            | "gravity"
            | "has_resize_grip"
            | "hasResizeGrip"
            | "has_toplevel_focus"
            | "hasToplevelFocus"
            | "hide_titlebar_when_maximized"
            | "hideTitlebarWhenMaximized"
            | "is_active"
            | "isActive"
            | "is_maximized"
            | "isMaximized"
            | "mnemonics_visible"
            | "mnemonicsVisible"
            | "modal"
            | "resizable"
            | "resize_grip_visible"
            | "resizeGripVisible"
            | "role"
            | "screen"
            | "skip_pager_hint"
            | "skipPagerHint"
            | "skip_taskbar_hint"
            | "skipTaskbarHint"
            | "startup_id"
            | "startupId"
            | "transient_for"
            | "transientFor"
            | "typeHint"
            | "urgency_hint"
            | "urgencyHint"
            | "window_position"
            | "windowPosition"
            | "exclusivity"
            | "layer"
            | "margins"
            | "gdkmonitor"
            | "keymode"
            | "exclusive"
            | "focusable"
            | undefined
      • GObj extends Connectable
      • ObjProp extends string

      Parameters

      • prop: Prop

        The widget property to update

      • gobject: GObj

        The source GObject

      • OptionalobjProp: ObjProp

        The source property (defaults to 'value')

      • Optionaltransform: (value: GObj[ObjProp]) => Window<Child, Attr>[Prop]

        Optional transform function

      Returns this

      this for chaining

    • 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

      • source_property: string

        the property on

      • target: Object

        the target #GObject

      • target_property: string

        the property on

      • flags: BindingFlags | null

        flags to pass to #GBinding

      Returns Binding

      the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.

      to bind

      to bind

    • Complete version of g_object_bind_property().

      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.

      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 transform_from function is only used in case of bidirectional bindings, otherwise it will be ignored

      The binding will automatically be removed when either the source or the target instances are finalized. This will release the reference that is being held on the #GBinding instance; if you want to hold on to the #GBinding instance, you will need to hold a reference to it.

      To remove the binding, call g_binding_unbind().

      A #GObject can have multiple bindings.

      The same user_data parameter will be used for both transform_to and transform_from transformation functions; the notify function will be called once, when the binding is removed. If you need different data for each transformation function, please use g_object_bind_property_with_closures() instead.

      Parameters

      • source_property: string

        the property on

      • target: Object

        the target #GObject

      • target_property: string

        the property on

      • flags: BindingFlags | null

        flags to pass to #GBinding

      • Optionaltransform_to: BindingTransformFunc | null

        the transformation function from the

      • Optionaltransform_from: BindingTransformFunc | null

        the transformation function from the

      • Optionalnotify: DestroyNotify | null

        a function to call when disposing the binding, to free resources used by the transformation functions, or %NULL if not required

      Returns Binding

      the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.

      to bind

      to bind

      to the @target, or %NULL to use the default

      to the @source, or %NULL to use the default

    • Complete version of g_object_bind_property().

      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.

      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 transform_from function is only used in case of bidirectional bindings, otherwise it will be ignored

      The binding will automatically be removed when either the source or the target instances are finalized. This will release the reference that is being held on the #GBinding instance; if you want to hold on to the #GBinding instance, you will need to hold a reference to it.

      To remove the binding, call g_binding_unbind().

      A #GObject can have multiple bindings.

      The same user_data parameter will be used for both transform_to and transform_from transformation functions; the notify function will be called once, when the binding is removed. If you need different data for each transformation function, please use g_object_bind_property_with_closures() instead.

      Parameters

      • ...args: never[]

      Returns any

      the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.

      to bind

      to bind

      to the @target, or %NULL to use the default

      to the @source, or %NULL to use the default

    • Blocks a handler of an instance so it will not be called during any signal emissions

      Parameters

      • id: number

        Handler ID of the handler to be blocked

      Returns void

    • Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This is done by emitting the #GtkWidget::can-activate-accel signal on widget; if the signal isn’t overridden by a handler or in a derived widget, then the default check is that the widget must be sensitive, and the widget and all its ancestors mapped.

      Parameters

      • signal_id: number

        the ID of a signal installed on

      Returns boolean

      %TRUE if the accelerator can be activated.

    • Returns void

    • This function is used by custom widget implementations; if you're writing an app, you’d use gtk_widget_grab_focus() to move the focus to a particular widget, and gtk_container_set_focus_chain() to change the focus tab order. So you may want to investigate those functions instead.

      gtk_widget_child_focus() is called by containers as the user moves around the window using keyboard shortcuts. direction indicates what kind of motion is taking place (up, down, left, right, tab forward, tab backward). gtk_widget_child_focus() emits the #GtkWidget::focus signal; widgets override the default handler for this signal in order to implement appropriate focus behavior.

      The default ::focus handler for a widget should return %TRUE if moving in direction left the focus on a focusable location inside that widget, and %FALSE if moving in direction moved the focus outside the widget. If returning %TRUE, widgets normally call gtk_widget_grab_focus() to place the focus accordingly; if returning %FALSE, they don’t modify the current focus location.

      Parameters

      • direction: DirectionType | null

        direction of focus movement

      Returns boolean

      %TRUE if focus ended up inside

    • Gets the value of a child property for child and container.

      Parameters

      • child: Widget

        a widget which is a child of

      • property_name: string

        the name of the property to get

      • value: any

        a location to return the value

      Returns void

    • Emits a #GtkWidget::child-notify signal for the [child property][child-properties] child_property on the child.

      This is an analogue of g_object_notify() for child properties.

      Also see gtk_widget_child_notify().

      Parameters

      • child: Widget

        the child widget

      • child_property: string

        the name of a child property installed on the class of

      Returns void

    • Emits a #GtkWidget::child-notify signal for the [child property][child-properties] child_property on the child.

      This is an analogue of g_object_notify() for child properties.

      Also see gtk_widget_child_notify().

      Parameters

      • ...args: never[]

      Returns any

    • Emits a #GtkWidget::child-notify signal for the [child property][child-properties] specified by pspec on the child.

      This is an analogue of g_object_notify_by_pspec() for child properties.

      Parameters

      • child: Widget

        the child widget

      • pspec: ParamSpec

        the #GParamSpec of a child property instealled on the class of

      Returns void

    • Sets a child property for child and container.

      Parameters

      • child: Widget

        a widget which is a child of

      • property_name: string

        the name of the property to set

      • value: any

        the value to set the property to

      Returns void

    • Returns the type of the children supported by the container.

      Note that this may return %G_TYPE_NONE to indicate that no more children can be added, e.g. for a #GtkPaned which already has two children.

      Returns GType

      a #GType.

    • Same as gtk_widget_path(), but always uses the name of a widget’s type, never uses a custom name set with gtk_widget_set_name().

      Returns [number, string, string]

    • Requests that the window is closed, similar to what happens when a window manager close button is clicked.

      This function can be used with close buttons in custom titlebars.

      Returns void

    • Computes whether a container should give this widget extra space when possible. Containers should check this, rather than looking at gtk_widget_get_hexpand() or gtk_widget_get_vexpand().

      This function already checks whether the widget is visible, so visibility does not need to be checked separately. Non-visible widgets are not expanded.

      The computed expand value uses either the expand setting explicitly set on the widget itself, or, if none has been explicitly set, the widget may expand if some of its children do.

      Parameters

      • orientation: Orientation | null

        expand direction

      Returns boolean

      whether widget tree rooted here should be expanded

    • Type Parameters

      • K extends keyof SignalSignatures

      Parameters

      Returns number

    • Parameters

      • signal: string
      • callback: (...args: any[]) => any

      Returns number

    • Type Parameters

      • K extends keyof SignalSignatures

      Parameters

      Returns number

    • Parameters

      • signal: string
      • callback: (...args: any[]) => any

      Returns number

    • Constructs a child of buildable with the name name.

      #GtkBuilder calls this function if a “constructor” has been specified in the UI definition.

      Type Parameters

      • T = Object

      Parameters

      • builder: Builder

        #GtkBuilder used to construct this object

      • name: string

        name of child to construct

      Returns T

      the constructed child

    • Creates a new #PangoContext with the appropriate font map, font options, font description, and base direction for drawing text for this widget. See also gtk_widget_get_pango_context().

      Returns Context

      the new #PangoContext

    • 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 using the #GtkWidget::screen-changed signal on the widget.

      Parameters

      • Optionaltext: string | null

        text to set on the layout (can be %NULL)

      Returns Layout

      the new #PangoLayout

    • This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        the name of the tag

      • Optionaldata: any

        user data created in custom_tag_start

      Returns void

    • This is called at the end of each custom element handled by the buildable.

      Parameters

      • builder: Builder

        #GtkBuilder used to construct this object

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        name of tag

      • Optionaldata: any

        user data that will be passed in to parser functions

      Returns void

    • This is called for each unknown element under <child>.

      Parameters

      • builder: Builder

        a #GtkBuilder used to construct this object

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        name of tag

      Returns [boolean, MarkupParser, any]

      %TRUE if a object has a custom implementation, %FALSE if it doesn't.

    • Asks to deiconify (i.e. unminimize) the specified window. Note that you shouldn’t assume the window is definitely deiconified afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch])) could iconify it again before your code which assumes deiconification gets to run.

      You can track iconification via the “window-state-event” signal on #GtkWidget.

      Returns void

    • Destroys a widget.

      When a widget is destroyed all references it holds on other objects will be released:

      • if the widget is inside a container, it will be removed from its parent
      • if the widget is a container, all its children will be destroyed, recursively
      • if the widget is a top level, it will be removed from the list of top level widgets that GTK+ maintains internally

      It's expected that all references held on the widget will also be released; you should connect to the #GtkWidget::destroy signal if you hold a reference to widget and you wish to remove it when this function is called. It is not necessary to do so if you are implementing a #GtkContainer, as you'll be able to use the #GtkContainerClass.remove() virtual function for that.

      It's important to notice that gtk_widget_destroy() will only cause the widget to be finalized if no additional references, acquired using g_object_ref(), are held on it. In case additional references are in place, the widget will be in an "inert" state after calling this function; widget will still point to valid memory, allowing you to release the references you hold, but you may not query the widget's own state.

      You should typically call this function on top level widgets, and rarely on child widgets.

      See also: gtk_container_remove()

      Returns void

    • This function sets *widget_pointer to %NULL if widget_pointer != %NULL. It’s intended to be used as a callback connected to the “destroy” signal of a widget. You connect gtk_widget_destroyed() as a signal handler, and pass the address of your widget variable as user data. Then when the widget is destroyed, the variable will be set to %NULL. Useful for example to avoid multiple copies of the same dialog.

      Parameters

      • widget_pointer: Widget

        address of a variable that contains

      Returns Widget

    • Returns %TRUE if device has been shadowed by a GTK+ device grab on another widget, so it would stop sending events to widget. This may be used in the #GtkWidget::grab-notify signal to check for specific devices. See gtk_device_grab_add().

      Parameters

      • device: Device

        a #GdkDevice

      Returns boolean

      %TRUE if there is an ongoing grab on

      by another #GtkWidget than @widget.

    • Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.

      Parameters

      • id: number

        Handler ID of the handler to be disconnected

      Returns void

    • This function is equivalent to gtk_drag_begin_with_coordinates(), passing -1, -1 as coordinates.

      Parameters

      • targets: TargetList

        The targets (data formats) in which the source can provide the data

      • actions: DragAction | null

        A bitmask of the allowed drag actions for this drag

      • button: number

        The button the user clicked to start the drag

      • Optionalevent: Event | null

        The event that triggered the start of the drag, or %NULL if none can be obtained.

      Returns DragContext

      the context for this drag

    • Checks to see if a mouse drag starting at (start_x, start_y) and ending at (current_x, current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.

      Parameters

      • start_x: number

        X coordinate of start of drag

      • start_y: number

        Y coordinate of start of drag

      • current_x: number

        current X coordinate

      • current_y: number

        current Y coordinate

      Returns boolean

      %TRUE if the drag threshold has been passed.

    • Add the image targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_dest_set_target_list().

      Returns void

    • Add the text targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_dest_set_target_list().

      Returns void

    • Add the URI targets supported by #GtkSelectionData to the target list of the drag destination. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_dest_set_target_list().

      Returns void

    • Looks for a match between the supported targets of context and the dest_target_list, returning the first matching target, otherwise returning %GDK_NONE. dest_target_list should usually be the return value from gtk_drag_dest_get_target_list(), but some widgets may have different valid targets for different parts of the widget; in that case, they will have to implement a drag_motion handler that passes the correct target list to this function.

      Parameters

      • context: DragContext

        drag context

      • Optionaltarget_list: TargetList | null

        list of droppable targets, or %NULL to use gtk_drag_dest_get_target_list (@widget).

      Returns Atom

      first target that the source offers and the dest can accept, or %GDK_NONE

    • Returns the list of targets this widget can accept from drag-and-drop.

      Returns TargetList | null

      the #GtkTargetList, or %NULL if none

    • Returns whether the widget has been configured to always emit #GtkWidget::drag-motion signals.

      Returns boolean

      %TRUE if the widget always emits #GtkWidget::drag-motion events

    • Sets a widget as a potential drop destination, and adds default behaviors.

      The default behaviors listed in flags have an effect similar to installing default handlers for the widget’s drag-and-drop signals (#GtkWidget::drag-motion, #GtkWidget::drag-drop, ...). They all exist for convenience. When passing #GTK_DEST_DEFAULT_ALL for instance it is sufficient to connect to the widget’s #GtkWidget::drag-data-received signal to get primitive, but consistent drag-and-drop support.

      Things become more complicated when you try to preview the dragged data, as described in the documentation for #GtkWidget::drag-motion. The default behaviors described by flags make some assumptions, that can conflict with your own signal handlers. For instance #GTK_DEST_DEFAULT_DROP causes invokations of gdk_drag_status() in the context of #GtkWidget::drag-motion, and invokations of gtk_drag_finish() in #GtkWidget::drag-data-received. Especially the later is dramatic, when your own #GtkWidget::drag-motion handler calls gtk_drag_get_data() to inspect the dragged data.

      There’s no way to set a default action here, you can use the #GtkWidget::drag-motion callback for that. Here’s an example which selects the action to use depending on whether the control key is pressed or not:

      static void
      drag_motion (GtkWidget *widget,
      GdkDragContext *context,
      gint x,
      gint y,
      guint time)
      {
      GdkModifierType mask;

      gdk_window_get_pointer (gtk_widget_get_window (widget),
      NULL, NULL, &mask);
      if (mask & GDK_CONTROL_MASK)
      gdk_drag_status (context, GDK_ACTION_COPY, time);
      else
      gdk_drag_status (context, GDK_ACTION_MOVE, time);
      }

      Parameters

      • flags: DestDefaults | null

        which types of default drag behavior to use

      • targets: TargetEntry[] | null

        a pointer to an array of #GtkTargetEntrys indicating the drop types that this

      • actions: DragAction | null

        a bitmask of possible actions for a drop onto this @widget.

      Returns void

      will accept, or %NULL. Later you can access the list with gtk_drag_dest_get_target_list() and gtk_drag_dest_find_target().

    • Sets this widget as a proxy for drops to another window.

      Parameters

      • proxy_window: Window

        the window to which to forward drag events

      • protocol: DragProtocol | null

        the drag protocol which the @proxy_window accepts (You can use gdk_drag_get_protocol() to determine this)

      • use_coordinates: boolean

        If %TRUE, send the same coordinates to the destination, because it is an embedded subwindow.

      Returns void

    • Sets the target types that this widget can accept from drag-and-drop. The widget must first be made into a drag destination with gtk_drag_dest_set().

      Parameters

      • Optionaltarget_list: TargetList | null

        list of droppable targets, or %NULL for none

      Returns void

    • Tells the widget to emit #GtkWidget::drag-motion and #GtkWidget::drag-leave events regardless of the targets and the %GTK_DEST_DEFAULT_MOTION flag.

      This may be used when a widget wants to do generic actions regardless of the targets that the source offers.

      Parameters

      • track_motion: boolean

        whether to accept all targets

      Returns void

    • Clears information about a drop destination set with gtk_drag_dest_set(). The widget will no longer receive notification of drags.

      Returns void

    • Gets the data associated with a drag. When the data is received or the retrieval fails, GTK+ will emit a #GtkWidget::drag-data-received signal. Failure of the retrieval is indicated by the length field of the selection_data signal parameter being negative. However, when gtk_drag_get_data() is called implicitely because the %GTK_DEST_DEFAULT_DROP was set, then the widget will not receive notification of failed drops.

      Parameters

      • context: DragContext

        the drag context

      • target: Atom

        the target (form of the data) to retrieve

      • time_: number

        a timestamp for retrieving the data. This will generally be the time received in a #GtkWidget::drag-motion or #GtkWidget::drag-drop signal

      Returns void

    • Highlights a widget as a currently hovered drop target. To end the highlight, call gtk_drag_unhighlight(). GTK+ calls this automatically if %GTK_DEST_DEFAULT_HIGHLIGHT is set.

      Returns void

    • Add the writable image targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_image_targets() and gtk_drag_source_set_target_list().

      Returns void

    • Add the text targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_text_targets() and gtk_drag_source_set_target_list().

      Returns void

    • Add the URI targets supported by #GtkSelectionData to the target list of the drag source. The targets are added with info = 0. If you need another value, use gtk_target_list_add_uri_targets() and gtk_drag_source_set_target_list().

      Returns void

    • Gets the list of targets this widget can provide for drag-and-drop.

      Returns TargetList | null

      the #GtkTargetList, or %NULL if none

    • Sets up a widget so that GTK+ will start a drag operation when the user clicks and drags on the widget. The widget must have a window.

      Parameters

      • start_button_mask: ModifierType | null

        the bitmask of buttons that can start the drag

      • targets: TargetEntry[] | null

        the table of targets that the drag will support, may be %NULL

      • actions: DragAction | null

        the bitmask of possible actions for a drag from this widget

      Returns void

    • Sets the icon that will be used for drags from a particular source to icon. See the docs for #GtkIconTheme for more details.

      Parameters

      • icon: Icon

        A #GIcon

      Returns void

    • Sets the icon that will be used for drags from a particular source to a themed icon. See the docs for #GtkIconTheme for more details.

      Parameters

      • icon_name: string

        name of icon to use

      Returns void

    • Sets the icon that will be used for drags from a particular widget from a #GdkPixbuf. GTK+ retains a reference for pixbuf and will release it when it is no longer needed.

      Parameters

      • pixbuf: Pixbuf

        the #GdkPixbuf for the drag icon

      Returns void

    • Sets the icon that will be used for drags from a particular source to a stock icon.

      Parameters

      • stock_id: string

        the ID of the stock icon to use

      Returns void

    • Changes the target types that this widget offers for drag-and-drop. The widget must first be made into a drag source with gtk_drag_source_set().

      Parameters

      • Optionaltarget_list: TargetList | null

        list of draggable targets, or %NULL for none

      Returns void

    • Undoes the effects of gtk_drag_source_set().

      Returns void

    • Removes a highlight set by gtk_drag_highlight() from a widget.

      Returns void

    • Draws widget to cr. The top left corner of the widget will be drawn to the currently set origin point of cr.

      You should pass a cairo context as cr argument that is in an original state. Otherwise the resulting drawing is undefined. For example changing the operator using cairo_set_operator() or the line width using cairo_set_line_width() might have unwanted side effects. You may however change the context’s transform matrix - like with cairo_scale(), cairo_translate() or cairo_set_matrix() and clip region with cairo_clip() prior to calling this function. Also, it is fine to modify the context with cairo_save() and cairo_push_group() prior to calling this function.

      Note that special-purpose widgets may contain special code for rendering to the screen and might appear differently on screen and when rendered using gtk_widget_draw().

      Parameters

      • cr: Context

        a cairo context to draw to

      Returns void

    • Type Parameters

      • K extends keyof SignalSignatures

      Parameters

      • signal: K
      • ...args: GjsParameters<SignalSignatures[K]> extends [any, ...Q[]] ? Q : never

      Returns void

    • Parameters

      • signal: string
      • ...args: any[]

      Returns void

    • Ensures that widget has a style (widget->style).

      Not a very useful function; most of the time, if you want the style, the widget is realized, and realized widgets are guaranteed to have a style already.

      Returns void

    • Notifies the user about an input-related error on this widget. If the #GtkSettings:gtk-error-bell setting is %TRUE, it calls gdk_window_beep(), otherwise it does nothing.

      Note that the effect of gdk_window_beep() can be configured in many ways, depending on the windowing backend and the desktop environment or window manager that is used.

      Returns void

    • Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don’t use this function; instead, use gtk_main_do_event() so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use gdk_window_invalidate_rect() to invalidate a region of the window.

      Parameters

      • event: Event

        a #GdkEvent

      Returns boolean

      return from the event signal emission (%TRUE if the event was handled)

    • Invokes callback on each direct child of container, including children that are considered “internal” (implementation details of the container). “Internal” children generally weren’t added by the user of the container, but were added by the container implementation itself.

      Most applications should use gtk_container_foreach(), rather than gtk_container_forall().

      Parameters

      • callback: Callback

        a callback

      Returns 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

    • Invokes callback on each non-internal child of container. See gtk_container_forall() for details on what constitutes an “internal” child. For all practical purposes, this function should iterate over precisely those child widgets that were added to the container by the application with explicit add() calls.

      It is permissible to remove the child from the callback handler.

      Most applications should use gtk_container_foreach(), rather than gtk_container_forall().

      Parameters

      • callback: Callback

        a callback

      Returns void

    • Stops emission of #GtkWidget::child-notify signals on widget. The signals are queued until gtk_widget_thaw_child_notify() is called on widget.

      This is the analogue of g_object_freeze_notify() for child properties.

      Returns 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

    • Asks to place window in the fullscreen state. Note that you shouldn’t assume the window is definitely full screen afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could unfullscreen it again, and not all window managers honor requests to fullscreen windows. But normally the window will end up fullscreen. Just don’t write code that crashes if not.

      You can track the fullscreen state via the “window-state-event” signal on #GtkWidget.

      Returns void

    • Asks to place window in the fullscreen state. Note that you shouldn't assume the window is definitely full screen afterward.

      You can track the fullscreen state via the "window-state-event" signal on #GtkWidget.

      Parameters

      • screen: Screen

        a #GdkScreen to draw to

      • monitor: number

        which monitor to go fullscreen on

      Returns void

    • Gets the value set by gtk_window_set_accept_focus().

      Returns boolean

      %TRUE if window should receive the input focus

    • Returns the accessible object that describes the widget to an assistive technology.

      If accessibility support is not available, this #AtkObject instance may be a no-op. Likewise, if no class-specific #AtkObject implementation is available for the widget instance in question, it will inherit an #AtkObject implementation from the first ancestor class for which such an implementation is defined.

      The documentation of the ATK library contains more information about accessible objects and their uses.

      Returns Object

      the #AtkObject associated with

    • Retrieves the #GActionGroup that was registered using prefix. The resulting #GActionGroup may have been registered to widget or any #GtkWidget in its ancestry.

      If no action group was found matching prefix, then %NULL is returned.

      Parameters

      • prefix: string

        The “prefix” of the action group.

      Returns ActionGroup | null

      A #GActionGroup or %NULL.

    • Returns the baseline that has currently been allocated to widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function, and when allocating child widgets in #GtkWidget::size_allocate.

      Returns number

      the baseline of the @widget, or -1 if none

    • Returns the height that has currently been allocated to widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function.

      Returns number

      the height of the

    • Retrieves the widget’s allocated size.

      This function returns the last values passed to gtk_widget_size_allocate_with_baseline(). The value differs from the size returned in gtk_widget_get_allocation() in that functions like gtk_widget_set_halign() can adjust the allocation, but not the value returned by this function.

      If a widget is not visible, its allocated size is 0.

      Returns [Rectangle, number]

    • Returns the width that has currently been allocated to widget. This function is intended to be used when implementing handlers for the #GtkWidget::draw function.

      Returns number

      the width of the

    • Retrieves the widget’s allocation.

      Note, when implementing a #GtkContainer: a widget’s allocation will be its “adjusted” allocation, that is, the widget’s parent container typically calls gtk_widget_size_allocate() with an allocation, and that allocation is then adjusted (to handle margin and alignment for example) before assignment to the widget. gtk_widget_get_allocation() returns the adjusted allocation that was actually assigned to the widget. The adjusted allocation is guaranteed to be completely contained within the gtk_widget_size_allocate() allocation, however. So a #GtkContainer is guaranteed that its children stay inside the assigned bounds, but not that they have exactly the bounds the container assigned. There is no way to get the original allocation assigned by gtk_widget_size_allocate(), since it isn’t stored; if a container implementation needs that information it will have to track it itself.

      Returns 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. See note about checking for a toplevel #GtkWindow in the docs for gtk_widget_get_toplevel().

      Note that unlike gtk_widget_is_ancestor(), gtk_widget_get_ancestor() considers widget to be an ancestor of itself.

      Parameters

      • widget_type: GType

        ancestor type

      Returns Widget | null

      the ancestor widget, or %NULL if not found

    • Determines whether the application intends to draw on the widget in an #GtkWidget::draw handler.

      See gtk_widget_set_app_paintable()

      Returns boolean

      %TRUE if the widget is app paintable

    • Gets the #GtkApplication associated with the window (if any).

      Returns Application | null

      a #GtkApplication, or %NULL

    • Fetches the attach widget for this window. See gtk_window_set_attached_to().

      Returns Widget | null

      the widget where the window is attached, or %NULL if the window is not attached to any widget.

    • Retrieves the border width of the container. See gtk_container_set_border_width().

      Returns number

      the current border width

    • Determines whether widget can be a default widget. See gtk_widget_set_can_default().

      Returns boolean

      %TRUE if

      can be a default widget, %FALSE otherwise

    • Determines whether widget can own the input focus. See gtk_widget_set_can_focus().

      Returns boolean

      %TRUE if

      can own the input focus, %FALSE otherwise

    • Gets the child of the #GtkBin, or %NULL if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.

      Returns Widget | null

      the child of @bin, or %NULL if it does not have a child.

    • This function is only for use in widget implementations. Obtains widget->requisition, unless someone has forced a particular geometry on the widget (e.g. with gtk_widget_set_size_request()), in which case it returns that geometry instead of the widget's requisition.

      This function differs from gtk_widget_size_request() in that it retrieves the last size request value from widget->requisition, while gtk_widget_size_request() actually calls the "size_request" method on widget to compute the size request and fill in widget->requisition, and only then returns widget->requisition.

      Because this function does not call the “size_request” method, it can only be used when you know that widget->requisition is up-to-date, that is, gtk_widget_size_request() has been called since the last time a resize was queued. In general, only container implementations have this information; applications should use gtk_widget_size_request().

      Returns Requisition

    • Gets the value set with gtk_widget_set_child_visible(). If you feel a need to use this function, your code probably needs reorganization.

      This function is only useful for container implementations and never should be called by an application.

      Returns boolean

      %TRUE if the widget is mapped with the parent.

    • Returns the container’s non-internal children. See gtk_container_forall() for details on what constitutes an "internal" child.

      Returns Widget[]

      a newly-allocated list of the container’s non-internal children.

    • Retrieves the widget’s clip area.

      The clip area is the area in which all of widget's drawing will happen. Other toolkits call it the bounding box.

      Historically, in GTK+ the clip area has been equal to the allocation retrieved via gtk_widget_get_allocation().

      Returns Rectangle

    • Returns the clipboard object for the given selection to be used with widget. widget must have a #GdkDisplay associated with it, so must be attached to a toplevel window.

      Parameters

      • selection: Atom

        a #GdkAtom which identifies the clipboard to use. %GDK_SELECTION_CLIPBOARD gives the default clipboard. Another common value is %GDK_SELECTION_PRIMARY, which gives the primary X selection.

      Returns Clipboard

      the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time.

    • Obtains the composite name of a widget.

      Returns string

      the composite name of @widget, or %NULL if

      is not a composite child. The string should be freed when it is no longer needed.

    • Gets a named field from the objects table of associations (see g_object_set_data()).

      Parameters

      • key: string

        name of the key for that association

      Returns any

      the data if found, or %NULL if no such data exists.

    • Returns whether the window has been set to have decorations such as a title bar via gtk_window_set_decorated().

      Returns boolean

      %TRUE if the window has been set to have decorations

    • Gets the default size of the window. A value of -1 for the width or height indicates that a default size has not been explicitly set for that dimension, so the “natural” size of the window will be used.

      Returns [number, number]

    • Returns the default widget for window. See gtk_window_set_default() for more details.

      Returns Widget | null

      the default widget, or %NULL if there is none.

    • Returns whether the window has been set to have a close button via gtk_window_set_deletable().

      Returns boolean

      %TRUE if the window has been set to have a close button

    • Returns whether the window will be destroyed with its transient parent. See gtk_window_set_destroy_with_parent ().

      Returns boolean

      %TRUE if the window will be destroyed with its transient parent.

    • Returns whether device can interact with widget and its children. See gtk_widget_set_device_enabled().

      Parameters

      • device: Device

        a #GdkDevice

      Returns boolean

      %TRUE is

      is enabled for

    • Returns the events mask for the widget corresponding to an specific device. These are the events that the widget will receive when device operates on it.

      Parameters

      • device: Device

        a #GdkDevice

      Returns EventMask

      device event mask for

    • Gets the reading direction for a particular widget. See gtk_widget_set_direction().

      Returns TextDirection

      the reading direction for the widget.

    • Get the #GdkDisplay for the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a #GtkWindow at the top.

      In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.

      Returns Display

      the #GdkDisplay for the toplevel for this widget.

    • Determines whether the widget is double buffered.

      See gtk_widget_set_double_buffered()

      Returns boolean

      %TRUE if the widget is double buffered

    • Returns the event mask (see #GdkEventMask) for the widget. These are the events that the widget will receive.

      Note: Internally, the widget event mask will be the logical OR of the event mask set through gtk_widget_set_events() or gtk_widget_add_events(), and the event mask necessary to cater for every #GtkEventController created for the widget.

      Returns number

      event mask for

    • Retrieves the current focused widget within the window. Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be %TRUE for the widget.

      Returns Widget | null

      the currently focused widget, or %NULL if there is none.

    • Retrieves the focus chain of the container, if one has been set explicitly. If no focus chain has been explicitly set, GTK+ computes the focus chain based on the positions of the children. In that case, GTK+ stores %NULL in focusable_widgets and returns %FALSE.

      Returns [boolean, Widget[]]

      %TRUE if the focus chain of the container has been set explicitly.

    • Returns the current focus child widget inside container. This is not the currently focused widget. That can be obtained by calling gtk_window_get_focus().

      Returns Widget | null

      The child widget which will receive the focus inside

      when the

      is focused, or %NULL if none is set.

    • Retrieves the horizontal focus adjustment for the container. See gtk_container_set_focus_hadjustment ().

      Returns Adjustment | null

      the horizontal focus adjustment, or %NULL if none has been set.

    • Returns whether the widget should grab focus when it is clicked with the mouse. See gtk_widget_set_focus_on_click().

      Returns boolean

      %TRUE if the widget should grab focus when it is clicked with the mouse.

    • Gets the value set by gtk_window_set_focus_on_map().

      Returns boolean

      %TRUE if window should receive the input focus when mapped.

    • Retrieves the vertical focus adjustment for the container. See gtk_container_set_focus_vadjustment().

      Returns Adjustment | null

      the vertical focus adjustment, or %NULL if none has been set.

    • Gets the value of the #GtkWindow:focus-visible property.

      Returns boolean

      %TRUE if “focus rectangles” are supposed to be visible in this window.

    • Gets the font map that has been set with gtk_widget_set_font_map().

      Returns FontMap<Object> | null

      A #PangoFontMap, or %NULL

    • Returns the #cairo_font_options_t used for Pango rendering. When not set, the defaults font options for the #GdkScreen will be used.

      Returns FontOptions | null

      the #cairo_font_options_t or %NULL if not set

    • 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 gdk_frame_clock_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 gdk_frame_clock_get_frame_time(), and then update the animation by calling gdk_frame_clock_get_frame_time() again during each repaint.

      gdk_frame_clock_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 gtk_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 FrameClock | null

      a #GdkFrameClock, or %NULL if widget is unrealized

    • Gets the value set by gtk_window_set_gravity().

      Returns Gravity

      window gravity

    • Returns the group for window or the default group, if window is %NULL or if window does not have an explicit window group.

      Returns WindowGroup

      the #GtkWindowGroup for a window or the default group

    • Gets the value of the #GtkWidget:halign property.

      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 Align

      the horizontal alignment of

    • Determines whether the window may have a resize grip.

      Returns boolean

      %TRUE if the window has a resize grip

    • Returns the current value of the has-tooltip property. See #GtkWidget:has-tooltip for more information.

      Returns boolean

      current value of has-tooltip on @widget.

    • Determines whether widget has a #GdkWindow of its own. See gtk_widget_set_has_window().

      Returns boolean

      %TRUE if

      has a window, %FALSE otherwise

    • Gets whether the widget would like any available extra horizontal space. When a user resizes a #GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand.

      Containers should use gtk_widget_compute_expand() rather than this function, to see whether a widget, or any of its children, has the expand flag set. If any child of a widget wants to expand, the parent may ask to expand also.

      This function only looks at the widget’s own hexpand flag, rather than computing whether the entire widget tree rooted at this widget wants to expand.

      Returns boolean

      whether hexpand flag is set

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

      If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand.

      There are few reasons to use this function, but it’s here for completeness and consistency.

      Returns boolean

      whether hexpand has been explicitly set

    • Returns whether the window has requested to have its titlebar hidden when maximized. See gtk_window_set_hide_titlebar_when_maximized ().

      Returns boolean

      %TRUE if the window has requested to have its titlebar hidden when maximized

    • Gets the value set by gtk_window_set_icon() (or if you've called gtk_window_set_icon_list(), gets the first icon in the icon list).

      Returns Pixbuf | null

      icon for window or %NULL if none

    • Retrieves the list of icons set by gtk_window_set_icon_list(). The list is copied, but the reference count on each member won’t be incremented.

      Returns Pixbuf[]

      copy of window’s icon list

    • Returns the name of the themed icon for the window, see gtk_window_set_icon_name().

      Returns string | null

      the icon name or %NULL if the window has no themed icon

    • Get the internal child called childname of the buildable object.

      Type Parameters

      • T = Object

      Parameters

      • builder: Builder

        a #GtkBuilder

      • childname: string

        name of child

      Returns T

      the internal child of the buildable object

    • Whether the widget is mapped.

      Returns boolean

      %TRUE if the widget is mapped, %FALSE otherwise.

    • Gets the value of the #GtkWidget:margin-bottom property.

      Returns number

      The bottom margin of

    • Gets the value of the #GtkWidget:margin-end property.

      Returns number

      The end margin of

    • Gets the value of the #GtkWidget:margin-left property.

      Returns number

      The left margin of

    • Gets the value of the #GtkWidget:margin-right property.

      Returns number

      The right margin of

    • Gets the value of the #GtkWidget:margin-start property.

      Returns number

      The start margin of

    • Gets the value of the #GtkWidget:margin-top property.

      Returns number

      The top margin of

    • Returns the mnemonic modifier for this window. See gtk_window_set_mnemonic_modifier().

      Returns ModifierType

      the modifier mask used to activate mnemonics on this window.

    • Gets the value of the #GtkWindow:mnemonics-visible property.

      Returns boolean

      %TRUE if mnemonics are supposed to be visible in this window.

    • Returns whether the window is modal. See gtk_window_set_modal().

      Returns boolean

      %TRUE if the window is set to be modal and establishes a grab when shown

    • Returns the modifier mask the widget’s windowing system backend uses for a particular purpose.

      See gdk_keymap_get_modifier_mask().

      Parameters

      • intent: ModifierIntent | null

        the use case for the modifier mask

      Returns ModifierType

      the modifier mask used for @intent.

    • Returns the current modifier style for the widget. (As set by gtk_widget_modify_style().) If no style has previously set, a new #GtkRcStyle will be created with all values unset, and set as the modifier style for the widget. If you make changes to this rc style, you must call gtk_widget_modify_style(), passing in the returned rc style, to make sure that your changes take effect.

      Caution: passing the style back to gtk_widget_modify_style() will normally end up destroying it, because gtk_widget_modify_style() copies the passed-in style and sets the copy as the new modifier style, thus dropping any reference to the old modifier style. Add a reference to the modifier style if you want to keep it alive.

      Returns RcStyle

      the modifier style for the widget. This rc style is owned by the widget. If you want to keep a pointer to value this around, you must add a refcount using g_object_ref().

    • Gets the name of the buildable object.

      #GtkBuilder sets the name based on the [GtkBuilder UI definition][BUILDER-UI] used to construct the buildable.

      Returns string

      the name set with gtk_buildable_set_name()

    • Returns the current value of the #GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() will affect this widget.

      Returns boolean

      the current value of the “no-show-all” property.

    • Fetches the requested opacity for this window. See gtk_window_set_opacity().

      Returns number

      the requested opacity for this window.

    • Gets a #PangoContext with the appropriate font map, font description, and base direction for this widget. Unlike the context returned by gtk_widget_create_pango_context(), this context is owned by the widget (it can be used until the screen for the widget changes or the widget is removed from its toplevel), and will be updated to match any changes to the widget’s attributes. This can be tracked by using the #GtkWidget::screen-changed signal on the widget.

      Returns Context

      the #PangoContext for the widget.

    • Returns the parent container of widget.

      Returns Widget | null

      the parent container of @widget, or %NULL

    • Gets widget’s parent window, or %NULL if it does not have one.

      Returns Window | null

      the parent window of @widget, or %NULL if it does not have a parent window.

    • Returns the #GtkWidgetPath representing widget, if the widget is not connected to a toplevel widget, a partial path will be created.

      Returns WidgetPath

      The #GtkWidgetPath representing

    • Returns a newly created widget path representing all the widget hierarchy from the toplevel down to and including child.

      Parameters

      • child: Widget

        a child of

      Returns WidgetPath

      A newly created #GtkWidgetPath

    • Obtains the location of the mouse pointer in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that return %TRUE for gtk_widget_get_has_window(); and are relative to widget->allocation.x, widget->allocation.y otherwise.

      Returns [number, number]

    • This function returns the position you need to pass to gtk_window_move() to keep window in its current position. This means that the meaning of the returned value varies with window gravity. See gtk_window_move() for more details.

      The reliability of this function depends on the windowing system currently in use. Some windowing systems, such as Wayland, do not support a global coordinate system, and thus the position of the window will always be (0, 0). Others, like X11, do not have a reliable way to obtain the geometry of the decorations of a window if they are provided by the window manager. Additionally, on X11, window manager have been known to mismanage window gravity, which result in windows moving even if you use the coordinates of the current position as returned by this function.

      If you haven’t changed the window gravity, its gravity will be #GDK_GRAVITY_NORTH_WEST. This means that gtk_window_get_position() gets the position of the top-left corner of the window manager frame for the window. gtk_window_move() sets the position of this same top-left corner.

      If a window has gravity #GDK_GRAVITY_STATIC the window manager frame is not relevant, and thus gtk_window_get_position() will always produce accurate results. However you can’t use static gravity to do things like place a window in a corner of the screen, because static gravity ignores the window manager decorations.

      Ideally, this function should return appropriate values if the window has client side decorations, assuming that the windowing system supports global coordinates.

      In practice, saving the window position should not be left to applications, as they lack enough knowledge of the windowing system and the window manager state to effectively do so. The appropriate way to implement saving the window position is to use a platform-specific protocol, wherever that is available.

      Returns [number, number]

    • Retrieves a widget’s initial minimum and natural height.

      This call is specific to width-for-height requests.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Returns [number, number]

    • Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given the specified width, or the default height if width is -1. The baselines may be -1 which means that no baseline is requested for this widget.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request and GtkWidgetClass::adjust_baseline_request virtual methods and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • width: number

        the width which is available for allocation, or -1 if none

      Returns [number, number, number, number]

    • Retrieves a widget’s minimum and natural height if it would be given the specified width.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • width: number

        the width which is available for allocation

      Returns [number, 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 GtkLayout.

      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 gtk_widget_get_preferred_height_and_baseline_for_width() if you want to support baseline alignment.

      Returns [Requisition | null, Requisition | null]

    • Retrieves a widget’s initial minimum and natural width.

      This call is specific to height-for-width requests.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Returns [number, number]

    • Retrieves a widget’s minimum and natural width if it would be given the specified height.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • height: number

        the height which is available for allocation

      Returns [number, number]

    • Gets a property of an object.

      The value can be:

      • an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
      • a GObject.Value initialized with the expected type of the property
      • a GObject.Value 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 GObject.Value.unset.

      Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.

      Parameters

      • property_name: string

        The name of the property to get

      • value: any

        Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type

      Returns any

    • This function gets back user data pointers stored via g_object_set_qdata().

      Parameters

      • quark: number

        A #GQuark, naming the user data pointer

      Returns any

      The user data pointer set, or %NULL

    • Determines whether widget is realized.

      Returns boolean

      %TRUE if

      is realized, %FALSE otherwise

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

      Returns boolean

      %TRUE if

      acts as the default widget when focused, %FALSE otherwise

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

      #GtkBin widgets generally propagate the preference of their child, container widgets need to request something either in context of their children or in context of their allocation capabilities.

      Returns SizeRequestMode

      The #GtkSizeRequestMode preferred by @widget.

    • Retrieves the widget’s requisition.

      This function should only be used by widget implementations in order to figure whether the widget’s requisition has actually changed after some internal state change (so that they can call gtk_widget_queue_resize() instead of gtk_widget_queue_draw()).

      Normally, gtk_widget_size_request() should be used.

      Returns Requisition

    • Gets the value set by gtk_window_set_resizable().

      Returns boolean

      %TRUE if the user can resize the window

    • If a window has a resize grip, this will retrieve the grip position, width and height into the specified #GdkRectangle.

      Returns [boolean, Rectangle]

      %TRUE if the resize grip’s area was retrieved

    • Returns the resize mode for the container. See gtk_container_set_resize_mode ().

      Returns ResizeMode

      the current resize mode

    • Returns the role of the window. See gtk_window_set_role() for further explanation.

      Returns string | null

      the role of the window if set, or %NULL. The returned is owned by the widget and must not be modified or freed.

    • Get the root window where this widget is located. This function can only be called after the widget has been added to a widget hierarchy with #GtkWindow at the top.

      The root window is useful for such purposes as creating a popup #GdkWindow associated with the window. In general, you should only create display specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.

      Returns Window

      the #GdkWindow root window for the toplevel for this widget.

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

      Returns number

      the scale factor for

    • Returns the #GdkScreen associated with window.

      Returns Screen

      a #GdkScreen.

    • Returns the widget’s sensitivity (in the sense of returning the value that has been set using gtk_widget_set_sensitive()).

      The effective sensitivity of a widget is however determined by both its own and its parent widget’s sensitivity. See gtk_widget_is_sensitive().

      Returns boolean

      %TRUE if the widget is sensitive

    • Gets the settings object holding the settings used for this widget.

      Note that this function can only be called when the #GtkWidget is attached to a toplevel, since the settings object is specific to a particular #GdkScreen.

      Returns Settings

      the relevant #GtkSettings object

    • Obtains the current size of window.

      If window is not visible on screen, this function return the size GTK+ will suggest to the [window manager][gtk-X11-arch] for the initial window size (but this is not reliably the same as the size the window manager will actually select). See: gtk_window_set_default_size().

      Depending on the windowing system and the window manager constraints, the size returned by this function may not match the size set using gtk_window_resize(); additionally, since gtk_window_resize() may be implemented as an asynchronous operation, GTK+ cannot guarantee in any way that this code:

        // width and height are set elsewhere
      gtk_window_resize (window, width, height);

      int new_width, new_height;
      gtk_window_get_size (window, &new_width, &new_height);

      will result in new_width and new_height matching width and height, respectively.

      This function will return the logical size of the #GtkWindow, excluding the widgets used in client side decorations; there is, however, no guarantee that the result will be completely accurate because client side decoration may include widgets that depend on the user preferences and that may not be visibile at the time you call this function.

      The dimensions returned by this function are suitable for being stored across sessions; use gtk_window_set_default_size() to restore them when before showing the window.

      To avoid potential race conditions, you should only call this function in response to a size change notification, for instance inside a handler for the #GtkWidget::size-allocate signal, or inside a handler for the #GtkWidget::configure-event signal:

      static void
      on_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
      {
      int new_width, new_height;

      gtk_window_get_size (GTK_WINDOW (widget), &new_width, &new_height);

      ...
      }

      Note that, if you connect to the #GtkWidget::size-allocate signal, you should not use the dimensions of the #GtkAllocation passed to the signal handler, as the allocation may contain client side decorations added by GTK+, depending on the windowing system in use.

      If you are getting a window size in order to position the window on the screen, you should, instead, simply set the window’s semantic type with gtk_window_set_type_hint(), which allows the window manager to e.g. center dialogs. Also, if you set the transient parent of dialogs with gtk_window_set_transient_for() window managers will often center the dialog over its parent window. It's much preferred to let the window manager handle these cases rather than doing it yourself, because all apps will behave consistently and according to user or system preferences, if the window manager handles it. Also, the window manager can take into account the size of the window decorations and border that it may add, and of which GTK+ has no knowledge. Additionally, positioning windows in global screen coordinates may not be allowed by the windowing system. For more information, see: gtk_window_set_position().

      Returns [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 gtk_widget_set_size_request(). To get the size a widget will actually request, call gtk_widget_get_preferred_size() instead of this function.

      Returns [number, number]

    • Gets the value set by gtk_window_set_skip_pager_hint().

      Returns boolean

      %TRUE if window shouldn’t be in pager

    • Gets the value set by gtk_window_set_skip_taskbar_hint()

      Returns boolean

      %TRUE if window shouldn’t be in taskbar

    • Returns the widget’s state. See gtk_widget_set_state().

      Returns StateType

      the state of @widget.

    • 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 #GtkStateFlags to pass to a #GtkStyleContext method, you should look at gtk_style_context_get_state().

      Returns StateFlags

      The state flags for widget

    • Simply an accessor function that returns widget->style.

      Returns Style

      the widget’s #GtkStyle

    • Returns the style context associated to widget. The returned object is guaranteed to be the same for the lifetime of widget.

      Returns StyleContext

      a #GtkStyleContext. This memory is owned by

      and must not be freed.

    • Returns %TRUE if widget is multiple pointer aware. See gtk_widget_set_support_multidevice() for more information.

      Returns boolean

      %TRUE if

      is multidevice aware.

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

      Type Parameters

      • T = Object

      Parameters

      • widget_type: GType

        The #GType to get a template child for

      • name: string

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

      Returns T

      The object built in the template XML with the id

    • Retrieves the title of the window. See gtk_window_set_title().

      Returns string | null

      the title of the window, or %NULL if none has been set explicitly. The returned string is owned by the widget and must not be modified or freed.

    • Returns the custom titlebar that has been set with gtk_window_set_titlebar().

      Returns Widget | null

      the custom titlebar, or %NULL

    • Gets the contents of the tooltip for widget.

      Returns string | null

      the tooltip text, or %NULL. You should free the returned string with g_free() when done.

    • Gets the contents of the tooltip for widget.

      Returns string | null

      the tooltip text, or %NULL. You should free the returned string with g_free() when done.

    • Returns the #GtkWindow of the current tooltip. This can be the GtkWindow created by default, or the custom tooltip window set using gtk_widget_set_tooltip_window().

      Returns Window

      The #GtkWindow of the current tooltip.

    • This function returns the topmost widget in the container hierarchy widget is a part of. If widget has no parent widgets, it will be returned as the topmost widget. No reference will be added to the returned widget; it should not be unreferenced.

      Note the difference in behavior vs. gtk_widget_get_ancestor(); gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) would return %NULL if widget wasn’t inside a toplevel window, and if the window was inside a #GtkWindow-derived widget which was in turn inside the toplevel #GtkWindow. While the second case may seem unlikely, it actually happens when a #GtkPlug is embedded inside a #GtkSocket within the same application.

      To reliably find the toplevel #GtkWindow, use gtk_widget_get_toplevel() and call GTK_IS_WINDOW() on the result. For instance, to get the title of a widget's toplevel window, one might use:

      static const char *
      get_widget_toplevel_title (GtkWidget *widget)
      {
      GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
      if (GTK_IS_WINDOW (toplevel))
      {
      return gtk_window_get_title (GTK_WINDOW (toplevel));
      }

      return NULL;
      }

      Returns Widget

      the topmost ancestor of @widget, or

      itself if there’s no ancestor.

    • Fetches the transient parent for this window. See gtk_window_set_transient_for().

      Returns Window | null

      the transient parent for this window, or %NULL if no transient parent has been set.

    • Gets the type hint for this window. See gtk_window_set_type_hint().

      Returns WindowTypeHint

      the type hint for @window.

    • Gets the value set by gtk_window_set_urgency_hint()

      Returns boolean

      %TRUE if window is urgent

    • Gets the value of the #GtkWidget:valign property.

      For backwards compatibility reasons this method will never return %GTK_ALIGN_BASELINE, but instead it will convert it to %GTK_ALIGN_FILL. If your widget want to support baseline aligned children it must use gtk_widget_get_valign_with_baseline(), or g_object_get (widget, "valign", &value, NULL), which will also report the true value.

      Returns Align

      the vertical alignment of @widget, ignoring baseline alignment

    • Gets the value of the #GtkWidget:valign property, including %GTK_ALIGN_BASELINE.

      Returns Align

      the vertical alignment of

    • Gets whether the widget would like any available extra vertical space.

      See gtk_widget_get_hexpand() for more detail.

      Returns boolean

      whether vexpand flag is set

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

      See gtk_widget_get_hexpand_set() for more detail.

      Returns boolean

      whether vexpand has been explicitly set

    • Determines whether the widget is visible. If you want to take into account whether the widget’s parent is also marked as visible, use gtk_widget_is_visible() instead.

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

      See gtk_widget_set_visible().

      Returns boolean

      %TRUE if the widget is visible

    • Gets the visual that will be used to render widget.

      Returns Visual

      the visual for

    • Returns the widget’s window if it is realized, %NULL otherwise

      Returns Window | null

      @widget’s window.

    • Gets the type of the window. See #GtkWindowType.

      Returns WindowType

      the type of the window

    • 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

    • Makes widget the current grabbed widget.

      This means that interaction with other widgets in the same application is blocked and mouse as well as keyboard events are delivered to this widget.

      If widget is not sensitive, it is not set as the current grabbed widget and this function does nothing.

      Returns void

    • Causes widget to become the default widget. widget must be able to be a default widget; typically you would ensure this yourself by calling gtk_widget_set_can_default() with a %TRUE value. The default widget is activated when the user presses Enter in a window. Default widgets must be activatable, that is, gtk_widget_activate() should affect them. Note that #GtkEntry widgets require the “activates-default” property set to %TRUE before they activate the default widget when Enter is pressed and the #GtkEntry is focused.

      Returns void

    • Causes widget to have the keyboard focus for the #GtkWindow it's inside. widget must be a focusable widget, such as a #GtkEntry; something like #GtkFrame won’t work.

      More precisely, it must have the %GTK_CAN_FOCUS flag set. Use gtk_widget_set_can_focus() to modify that flag.

      The widget also needs to be realized and mapped. This is indicated by the related signals. Grabbing the focus immediately after creating the widget will likely fail and cause critical warnings.

      Returns void

    • Removes the grab from the given widget.

      You have to pair calls to gtk_grab_add() and gtk_grab_remove().

      If widget does not have the grab, this function does nothing.

      Returns void

    • Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).

      See also gtk_grab_add().

      Returns boolean

      %TRUE if the widget is in the grab_widgets stack

    • Returns whether window has an explicit window group.

      Returns boolean

      %TRUE if

      has an explicit window group. Since 2.22

    • Determines if the widget style has been looked up through the rc mechanism.

      Returns boolean

      %TRUE if the widget has been looked up through the rc mechanism, %FALSE otherwise.

    • Checks whether there is a #GdkScreen is associated with this widget. All toplevel widgets have an associated screen, and all widgets added into a hierarchy with a toplevel window at the top.

      Returns boolean

      %TRUE if there is a #GdkScreen associated with the widget.

    • Determines if the widget should show a visible indication that it has the global input focus. This is a convenience function for use in ::draw handlers that takes into account whether focus indication should currently be shown in the toplevel window of widget. See gtk_window_get_focus_visible() for more information about focus indication.

      To find out if the widget has the global input focus, use gtk_widget_has_focus().

      Returns boolean

      %TRUE if the widget should display a “focus rectangle”

    • Reverses the effects of gtk_widget_show(), causing the widget to be hidden (invisible to the user).

      Returns void

    • Utility function; intended to be connected to the #GtkWidget::delete-event signal on a #GtkWindow. The function calls gtk_widget_hide() on its argument, then returns %TRUE. If connected to ::delete-event, the result is that clicking the close button for a window (on the window frame, top right corner usually) will hide but not destroy the window. By default, GTK+ destroys windows when ::delete-event is received.

      Returns boolean

      %TRUE

    • Connects to a GObject signal and automatically disconnects on widget destroy.

      The callback is also invoked once immediately (idle) with the current state.

      Parameters

      • gobject: Connectable

        The GObject to observe

      • callback: (self: this, ...args: any[]) => void

        Callback invoked on signal emission

      • Optionalsignal: string

        The signal name to connect to

      Returns this

      this for chaining

    • Asks to iconify (i.e. minimize) the specified window. Note that you shouldn’t assume the window is definitely iconified afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could deiconify it again, or there may not be a window manager in which case iconification isn’t possible, etc. But normally the window will end up iconified. Just don’t write code that crashes if not.

      It’s permitted to call this function before showing a window, in which case the window will be iconified before it ever appears onscreen.

      You can track iconification via the “window-state-event” signal on #GtkWidget.

      Returns void

    • Returns whether the widget is currently being destroyed. This information can sometimes be used to avoid doing unnecessary work.

      Returns boolean

      %TRUE if

      is being destroyed

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

      One reason is that generally derived widgets will assume that parent class composite widgets have been created in their instance initializers.

      Another reason is that 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.

      Returns void

    • Sets an input shape for this widget’s GDK window. This allows for windows which react to mouse click in a nonrectangular region, see gdk_window_input_shape_combine_region() for more information.

      Parameters

      • Optionalregion: Region | null

        shape to be added, or %NULL to remove an existing shape

      Returns void

    • Inserts group into widget. Children of widget that implement #GtkActionable can then be associated with actions in group by setting their “action-name” to prefix.action-name.

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

      Parameters

      • name: string

        the prefix for actions in

      • Optionalgroup: ActionGroup | null

        a #GActionGroup, or %NULL

      Returns void

    • Computes the intersection of a widget’s area and area, storing the intersection in intersection, and returns %TRUE if there was an intersection. intersection may be %NULL if you’re only interested in whether there was an intersection.

      Parameters

      • area: Rectangle

        a rectangle

      Returns [boolean, Rectangle | null]

      %TRUE if there was an intersection

    • Determines whether widget is somewhere inside ancestor, possibly with intermediate containers.

      Parameters

      • ancestor: Widget

        another #GtkWidget

      Returns boolean

      %TRUE if

      contains

      as a child, grandchild, great grandchild, etc.

    • Whether widget can rely on having its alpha channel drawn correctly. On X11 this function returns whether a compositing manager is running for widget’s screen.

      Please note that the semantics of this call will change in the future if used on a widget that has a composited window in its hierarchy (as set by gdk_window_set_composited()).

      Returns boolean

      %TRUE if the widget can rely on its alpha channel being drawn correctly.

    • Determines whether widget can be drawn to. A widget can be drawn to if it is mapped and visible.

      Returns boolean

      %TRUE if

      is drawable, %FALSE otherwise

    • Checks whether object has a [floating][floating-ref] reference.

      Returns boolean

      %TRUE if

      has a floating reference

    • Returns the widget’s effective sensitivity, which means it is sensitive itself and also its parent widget is sensitive

      Returns boolean

      %TRUE if the widget is effectively sensitive

    • Determines whether widget is a toplevel widget.

      Currently only #GtkWindow and #GtkInvisible (and out-of-process #GtkPlugs) are toplevel widgets. Toplevel widgets have no parent widget.

      Returns boolean

      %TRUE if

      is a toplevel, %FALSE otherwise

    • 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 gtk_widget_get_visible() and gtk_widget_set_visible()

      Returns boolean

      %TRUE if the widget and all its parents are visible

    • Checks whether the pointer is currently over this widget.

      Parameters

      • Optionalevent: Event

        Optional GDK event to use for coordinates

      Returns boolean

      true if the pointer is within the widget bounds

    • Registers a keyboard shortcut on this widget.

      Can be called with just a key, or with modifier keys + key.

      Type Parameters

      • Fn extends (self: this, event: Event) => void
      • Key extends
            | "function"
            | "includes"
            | "at"
            | "0"
            | "s"
            | "o"
            | "g"
            | "b"
            | "n"
            | "q"
            | "t"
            | "d"
            | "u"
            | "i"
            | "x"
            | "y"
            | "h"
            | "v"
            | "r"
            | "w"
            | "percent"
            | "Clear"
            | "cursor"
            | "N"
            | "T"
            | "p"
            | "P"
            | "W"
            | "m"
            | "M"
            | "D"
            | "f"
            | "F"
            | "c"
            | "C"
            | "B"
            | "O"
            | "R"
            | "S"
            | "e"
            | "E"
            | "l"
            | "L"
            | "a"
            | "A"
            | "Display"
            | "1"
            | "2"
            | "3"
            | "3270_AltCursor"
            | "3270_Attn"
            | "3270_BackTab"
            | "3270_ChangeScreen"
            | "3270_Copy"
            | "3270_CursorBlink"
            | "3270_CursorSelect"
            | "3270_DeleteWord"
            | "3270_Duplicate"
            | "3270_Enter"
            | "3270_EraseEOF"
            | "3270_EraseInput"
            | "3270_ExSelect"
            | "3270_FieldMark"
            | "3270_Ident"
            | "3270_Jump"
            | "3270_KeyClick"
            | "3270_Left2"
            | "3270_PA1"
            | "3270_PA2"
            | "3270_PA3"
            | "3270_Play"
            | "3270_PrintScreen"
            | "3270_Quit"
            | "3270_Record"
            | "3270_Reset"
            | "3270_Right2"
            | "3270_Rule"
            | "3270_Setup"
            | "3270_Test"
            | "4"
            | "5"
            | "6"
            | "7"
            | "8"
            | "9"
            | "AE"
            | "Aacute"
            | "Abelowdot"
            | "Abreve"
            | "Abreveacute"
            | "Abrevebelowdot"
            | "Abrevegrave"
            | "Abrevehook"
            | "Abrevetilde"
            | "AccessX_Enable"
            | "AccessX_Feedback_Enable"
            | "Acircumflex"
            | "Acircumflexacute"
            | "Acircumflexbelowdot"
            | "Acircumflexgrave"
            | "Acircumflexhook"
            | "Acircumflextilde"
            | "AddFavorite"
            | "Adiaeresis"
            | "Agrave"
            | "Ahook"
            | "Alt_L"
            | "Alt_R"
            | "Amacron"
            | "Aogonek"
            | "ApplicationLeft"
            | "ApplicationRight"
            | "Arabic_0"
            | "Arabic_1"
            | "Arabic_2"
            | "Arabic_3"
            | "Arabic_4"
            | "Arabic_5"
            | "Arabic_6"
            | "Arabic_7"
            | "Arabic_8"
            | "Arabic_9"
            | "Arabic_ain"
            | "Arabic_alef"
            | "Arabic_alefmaksura"
            | "Arabic_beh"
            | "Arabic_comma"
            | "Arabic_dad"
            | "Arabic_dal"
            | "Arabic_damma"
            | "Arabic_dammatan"
            | "Arabic_ddal"
            | "Arabic_farsi_yeh"
            | "Arabic_fatha"
            | "Arabic_fathatan"
            | "Arabic_feh"
            | "Arabic_fullstop"
            | "Arabic_gaf"
            | "Arabic_ghain"
            | "Arabic_ha"
            | "Arabic_hah"
            | "Arabic_hamza"
            | "Arabic_hamza_above"
            | "Arabic_hamza_below"
            | "Arabic_hamzaonalef"
            | "Arabic_hamzaonwaw"
            | "Arabic_hamzaonyeh"
            | "Arabic_hamzaunderalef"
            | "Arabic_heh"
            | "Arabic_heh_doachashmee"
            | "Arabic_heh_goal"
            | "Arabic_jeem"
            | "Arabic_jeh"
            | "Arabic_kaf"
            | "Arabic_kasra"
            | "Arabic_kasratan"
            | "Arabic_keheh"
            | "Arabic_khah"
            | "Arabic_lam"
            | "Arabic_madda_above"
            | "Arabic_maddaonalef"
            | "Arabic_meem"
            | "Arabic_noon"
            | "Arabic_noon_ghunna"
            | "Arabic_peh"
            | "Arabic_percent"
            | "Arabic_qaf"
            | "Arabic_question_mark"
            | "Arabic_ra"
            | "Arabic_rreh"
            | "Arabic_sad"
            | "Arabic_seen"
            | "Arabic_semicolon"
            | "Arabic_shadda"
            | "Arabic_sheen"
            | "Arabic_sukun"
            | "Arabic_superscript_alef"
            | "Arabic_switch"
            | "Arabic_tah"
            | "Arabic_tatweel"
            | "Arabic_tcheh"
            | "Arabic_teh"
            | "Arabic_tehmarbuta"
            | "Arabic_thal"
            | "Arabic_theh"
            | "Arabic_tteh"
            | "Arabic_veh"
            | "Arabic_waw"
            | "Arabic_yeh"
            | "Arabic_yeh_baree"
            | "Arabic_zah"
            | "Arabic_zain"
            | "Aring"
            | "Armenian_AT"
            | "Armenian_AYB"
            | "Armenian_BEN"
            | "Armenian_CHA"
            | "Armenian_DA"
            | "Armenian_DZA"
            | "Armenian_E"
            | "Armenian_FE"
            | "Armenian_GHAT"
            | "Armenian_GIM"
            | "Armenian_HI"
            | "Armenian_HO"
            | "Armenian_INI"
            | "Armenian_JE"
            | "Armenian_KE"
            | "Armenian_KEN"
            | "Armenian_KHE"
            | "Armenian_LYUN"
            | "Armenian_MEN"
            | "Armenian_NU"
            | "Armenian_O"
            | "Armenian_PE"
            | "Armenian_PYUR"
            | "Armenian_RA"
            | "Armenian_RE"
            | "Armenian_SE"
            | "Armenian_SHA"
            | "Armenian_TCHE"
            | "Armenian_TO"
            | "Armenian_TSA"
            | "Armenian_TSO"
            | "Armenian_TYUN"
            | "Armenian_VEV"
            | "Armenian_VO"
            | "Armenian_VYUN"
            | "Armenian_YECH"
            | "Armenian_ZA"
            | "Armenian_ZHE"
            | "Armenian_accent"
            | "Armenian_amanak"
            | "Armenian_apostrophe"
            | "Armenian_at"
            | "Armenian_ayb"
            | "Armenian_ben"
            | "Armenian_but"
            | "Armenian_cha"
            | "Armenian_da"
            | "Armenian_dza"
            | "Armenian_e"
            | "Armenian_exclam"
            | "Armenian_fe"
            | "Armenian_full_stop"
            | "Armenian_ghat"
            | "Armenian_gim"
            | "Armenian_hi"
            | "Armenian_ho"
            | "Armenian_hyphen"
            | "Armenian_ini"
            | "Armenian_je"
            | "Armenian_ke"
            | "Armenian_ken"
            | "Armenian_khe"
            | "Armenian_ligature_ew"
            | "Armenian_lyun"
            | "Armenian_men"
            | "Armenian_nu"
            | "Armenian_o"
            | "Armenian_paruyk"
            | "Armenian_pe"
            | "Armenian_pyur"
            | "Armenian_question"
            | "Armenian_ra"
            | "Armenian_re"
            | "Armenian_se"
            | "Armenian_separation_mark"
            | "Armenian_sha"
            | "Armenian_shesht"
            | "Armenian_tche"
            | "Armenian_to"
            | "Armenian_tsa"
            | "Armenian_tso"
            | "Armenian_tyun"
            | "Armenian_verjaket"
            | "Armenian_vev"
            | "Armenian_vo"
            | "Armenian_vyun"
            | "Armenian_yech"
            | "Armenian_yentamna"
            | "Armenian_za"
            | "Armenian_zhe"
            | "Atilde"
            | "AudibleBell_Enable"
            | "AudioCycleTrack"
            | "AudioForward"
            | "AudioLowerVolume"
            | "AudioMedia"
            | "AudioMicMute"
            | "AudioMute"
            | "AudioNext"
            | "AudioPause"
            | "AudioPlay"
            | "AudioPreset"
            | "AudioPrev"
            | "AudioRaiseVolume"
            | "AudioRandomPlay"
            | "AudioRecord"
            | "AudioRepeat"
            | "AudioRewind"
            | "AudioStop"
            | "Away"
            | "Babovedot"
            | "Back"
            | "BackForward"
            | "BackSpace"
            | "Battery"
            | "Begin"
            | "Blue"
            | "Bluetooth"
            | "Book"
            | "BounceKeys_Enable"
            | "Break"
            | "BrightnessAdjust"
            | "Byelorussian_SHORTU"
            | "Byelorussian_shortu"
            | "CD"
            | "CH"
            | "C_H"
            | "C_h"
            | "Cabovedot"
            | "Cacute"
            | "Calculator"
            | "Calendar"
            | "Cancel"
            | "Caps_Lock"
            | "Ccaron"
            | "Ccedilla"
            | "Ccircumflex"
            | "Ch"
            | "ClearGrab"
            | "Close"
            | "Codeinput"
            | "ColonSign"
            | "Community"
            | "ContrastAdjust"
            | "Control_L"
            | "Control_R"
            | "Copy"
            | "CruzeiroSign"
            | "Cut"
            | "CycleAngle"
            | "Cyrillic_A"
            | "Cyrillic_BE"
            | "Cyrillic_CHE"
            | "Cyrillic_CHE_descender"
            | "Cyrillic_CHE_vertstroke"
            | "Cyrillic_DE"
            | "Cyrillic_DZHE"
            | "Cyrillic_E"
            | "Cyrillic_EF"
            | "Cyrillic_EL"
            | "Cyrillic_EM"
            | "Cyrillic_EN"
            | "Cyrillic_EN_descender"
            | "Cyrillic_ER"
            | "Cyrillic_ES"
            | "Cyrillic_GHE"
            | "Cyrillic_GHE_bar"
            | "Cyrillic_HA"
            | "Cyrillic_HARDSIGN"
            | "Cyrillic_HA_descender"
            | "Cyrillic_I"
            | "Cyrillic_IE"
            | "Cyrillic_IO"
            | "Cyrillic_I_macron"
            | "Cyrillic_JE"
            | "Cyrillic_KA"
            | "Cyrillic_KA_descender"
            | "Cyrillic_KA_vertstroke"
            | "Cyrillic_LJE"
            | "Cyrillic_NJE"
            | "Cyrillic_O"
            | "Cyrillic_O_bar"
            | "Cyrillic_PE"
            | "Cyrillic_SCHWA"
            | "Cyrillic_SHA"
            | "Cyrillic_SHCHA"
            | "Cyrillic_SHHA"
            | "Cyrillic_SHORTI"
            | "Cyrillic_SOFTSIGN"
            | "Cyrillic_TE"
            | "Cyrillic_TSE"
            | "Cyrillic_U"
            | "Cyrillic_U_macron"
            | "Cyrillic_U_straight"
            | "Cyrillic_U_straight_bar"
            | "Cyrillic_VE"
            | "Cyrillic_YA"
            | "Cyrillic_YERU"
            | "Cyrillic_YU"
            | "Cyrillic_ZE"
            | "Cyrillic_ZHE"
            | "Cyrillic_ZHE_descender"
            | "Cyrillic_a"
            | "Cyrillic_be"
            | "Cyrillic_che"
            | "Cyrillic_che_descender"
            | "Cyrillic_che_vertstroke"
            | "Cyrillic_de"
            | "Cyrillic_dzhe"
            | "Cyrillic_e"
            | "Cyrillic_ef"
            | "Cyrillic_el"
            | "Cyrillic_em"
            | "Cyrillic_en"
            | "Cyrillic_en_descender"
            | "Cyrillic_er"
            | "Cyrillic_es"
            | "Cyrillic_ghe"
            | "Cyrillic_ghe_bar"
            | "Cyrillic_ha"
            | "Cyrillic_ha_descender"
            | "Cyrillic_hardsign"
            | "Cyrillic_i"
            | "Cyrillic_i_macron"
            | "Cyrillic_ie"
            | "Cyrillic_io"
            | "Cyrillic_je"
            | "Cyrillic_ka"
            | "Cyrillic_ka_descender"
            | "Cyrillic_ka_vertstroke"
            | "Cyrillic_lje"
            | "Cyrillic_nje"
            | "Cyrillic_o"
            | "Cyrillic_o_bar"
            | "Cyrillic_pe"
            | "Cyrillic_schwa"
            | "Cyrillic_sha"
            | "Cyrillic_shcha"
            | "Cyrillic_shha"
            | "Cyrillic_shorti"
            | "Cyrillic_softsign"
            | "Cyrillic_te"
            | "Cyrillic_tse"
            | "Cyrillic_u"
            | "Cyrillic_u_macron"
            | "Cyrillic_u_straight"
            | "Cyrillic_u_straight_bar"
            | "Cyrillic_ve"
            | "Cyrillic_ya"
            | "Cyrillic_yeru"
            | "Cyrillic_yu"
            | "Cyrillic_ze"
            | "Cyrillic_zhe"
            | "Cyrillic_zhe_descender"
            | "DOS"
            | "Dabovedot"
            | "Dcaron"
            | "Delete"
            | "Documents"
            | "DongSign"
            | "Down"
            | "Dstroke"
            | "ENG"
            | "ETH"
            | "EZH"
            | "Eabovedot"
            | "Eacute"
            | "Ebelowdot"
            | "Ecaron"
            | "Ecircumflex"
            | "Ecircumflexacute"
            | "Ecircumflexbelowdot"
            | "Ecircumflexgrave"
            | "Ecircumflexhook"
            | "Ecircumflextilde"
            | "EcuSign"
            | "Ediaeresis"
            | "Egrave"
            | "Ehook"
            | "Eisu_Shift"
            | "Eisu_toggle"
            | "Eject"
            | "Emacron"
            | "End"
            | "Eogonek"
            | "Escape"
            | "Eth"
            | "Etilde"
            | "EuroSign"
            | "Excel"
            | "Execute"
            | "Explorer"
            | "F1"
            | "F10"
            | "F11"
            | "F12"
            | "F13"
            | "F14"
            | "F15"
            | "F16"
            | "F17"
            | "F18"
            | "F19"
            | "F2"
            | "F20"
            | "F21"
            | "F22"
            | "F23"
            | "F24"
            | "F25"
            | "F26"
            | "F27"
            | "F28"
            | "F29"
            | "F3"
            | "F30"
            | "F31"
            | "F32"
            | "F33"
            | "F34"
            | "F35"
            | "F4"
            | "F5"
            | "F6"
            | "F7"
            | "F8"
            | "F9"
            | "FFrancSign"
            | "Fabovedot"
            | "Farsi_0"
            | "Farsi_1"
            | "Farsi_2"
            | "Farsi_3"
            | "Farsi_4"
            | "Farsi_5"
            | "Farsi_6"
            | "Farsi_7"
            | "Farsi_8"
            | "Farsi_9"
            | "Farsi_yeh"
            | "Favorites"
            | "Finance"
            | "Find"
            | "First_Virtual_Screen"
            | "Forward"
            | "FrameBack"
            | "FrameForward"
            | "G"
            | "Gabovedot"
            | "Game"
            | "Gbreve"
            | "Gcaron"
            | "Gcedilla"
            | "Gcircumflex"
            | "Georgian_an"
            | "Georgian_ban"
            | "Georgian_can"
            | "Georgian_char"
            | "Georgian_chin"
            | "Georgian_cil"
            | "Georgian_don"
            | "Georgian_en"
            | "Georgian_fi"
            | "Georgian_gan"
            | "Georgian_ghan"
            | "Georgian_hae"
            | "Georgian_har"
            | "Georgian_he"
            | "Georgian_hie"
            | "Georgian_hoe"
            | "Georgian_in"
            | "Georgian_jhan"
            | "Georgian_jil"
            | "Georgian_kan"
            | "Georgian_khar"
            | "Georgian_las"
            | "Georgian_man"
            | "Georgian_nar"
            | "Georgian_on"
            | "Georgian_par"
            | "Georgian_phar"
            | "Georgian_qar"
            | "Georgian_rae"
            | "Georgian_san"
            | "Georgian_shin"
            | "Georgian_tan"
            | "Georgian_tar"
            | "Georgian_un"
            | "Georgian_vin"
            | "Georgian_we"
            | "Georgian_xan"
            | "Georgian_zen"
            | "Georgian_zhar"
            | "Go"
            | "Greek_ALPHA"
            | "Greek_ALPHAaccent"
            | "Greek_BETA"
            | "Greek_CHI"
            | "Greek_DELTA"
            | "Greek_EPSILON"
            | "Greek_EPSILONaccent"
            | "Greek_ETA"
            | "Greek_ETAaccent"
            | "Greek_GAMMA"
            | "Greek_IOTA"
            | "Greek_IOTAaccent"
            | "Greek_IOTAdiaeresis"
            | "Greek_IOTAdieresis"
            | "Greek_KAPPA"
            | "Greek_LAMBDA"
            | "Greek_LAMDA"
            | "Greek_MU"
            | "Greek_NU"
            | "Greek_OMEGA"
            | "Greek_OMEGAaccent"
            | "Greek_OMICRON"
            | "Greek_OMICRONaccent"
            | "Greek_PHI"
            | "Greek_PI"
            | "Greek_PSI"
            | "Greek_RHO"
            | "Greek_SIGMA"
            | "Greek_TAU"
            | "Greek_THETA"
            | "Greek_UPSILON"
            | "Greek_UPSILONaccent"
            | "Greek_UPSILONdieresis"
            | "Greek_XI"
            | "Greek_ZETA"
            | "Greek_accentdieresis"
            | "Greek_alpha"
            | "Greek_alphaaccent"
            | "Greek_beta"
            | "Greek_chi"
            | "Greek_delta"
            | "Greek_epsilon"
            | "Greek_epsilonaccent"
            | "Greek_eta"
            | "Greek_etaaccent"
            | "Greek_finalsmallsigma"
            | "Greek_gamma"
            | "Greek_horizbar"
            | "Greek_iota"
            | "Greek_iotaaccent"
            | "Greek_iotaaccentdieresis"
            | "Greek_iotadieresis"
            | "Greek_kappa"
            | "Greek_lambda"
            | "Greek_lamda"
            | "Greek_mu"
            | "Greek_nu"
            | "Greek_omega"
            | "Greek_omegaaccent"
            | "Greek_omicron"
            | "Greek_omicronaccent"
            | "Greek_phi"
            | "Greek_pi"
            | "Greek_psi"
            | "Greek_rho"
            | "Greek_sigma"
            | "Greek_switch"
            | "Greek_tau"
            | "Greek_theta"
            | "Greek_upsilon"
            | "Greek_upsilonaccent"
            | "Greek_upsilonaccentdieresis"
            | "Greek_upsilondieresis"
            | "Greek_xi"
            | "Greek_zeta"
            | "Green"
            | "H"
            | "Hangul"
            | "Hangul_A"
            | "Hangul_AE"
            | "Hangul_AraeA"
            | "Hangul_AraeAE"
            | "Hangul_Banja"
            | "Hangul_Cieuc"
            | "Hangul_Codeinput"
            | "Hangul_Dikeud"
            | "Hangul_E"
            | "Hangul_EO"
            | "Hangul_EU"
            | "Hangul_End"
            | "Hangul_Hanja"
            | "Hangul_Hieuh"
            | "Hangul_I"
            | "Hangul_Ieung"
            | "Hangul_J_Cieuc"
            | "Hangul_J_Dikeud"
            | "Hangul_J_Hieuh"
            | "Hangul_J_Ieung"
            | "Hangul_J_Jieuj"
            | "Hangul_J_Khieuq"
            | "Hangul_J_Kiyeog"
            | "Hangul_J_KiyeogSios"
            | "Hangul_J_KkogjiDalrinIeung"
            | "Hangul_J_Mieum"
            | "Hangul_J_Nieun"
            | "Hangul_J_NieunHieuh"
            | "Hangul_J_NieunJieuj"
            | "Hangul_J_PanSios"
            | "Hangul_J_Phieuf"
            | "Hangul_J_Pieub"
            | "Hangul_J_PieubSios"
            | "Hangul_J_Rieul"
            | "Hangul_J_RieulHieuh"
            | "Hangul_J_RieulKiyeog"
            | "Hangul_J_RieulMieum"
            | "Hangul_J_RieulPhieuf"
            | "Hangul_J_RieulPieub"
            | "Hangul_J_RieulSios"
            | "Hangul_J_RieulTieut"
            | "Hangul_J_Sios"
            | "Hangul_J_SsangKiyeog"
            | "Hangul_J_SsangSios"
            | "Hangul_J_Tieut"
            | "Hangul_J_YeorinHieuh"
            | "Hangul_Jamo"
            | "Hangul_Jeonja"
            | "Hangul_Jieuj"
            | "Hangul_Khieuq"
            | "Hangul_Kiyeog"
            | "Hangul_KiyeogSios"
            | "Hangul_KkogjiDalrinIeung"
            | "Hangul_Mieum"
            | "Hangul_MultipleCandidate"
            | "Hangul_Nieun"
            | "Hangul_NieunHieuh"
            | "Hangul_NieunJieuj"
            | "Hangul_O"
            | "Hangul_OE"
            | "Hangul_PanSios"
            | "Hangul_Phieuf"
            | "Hangul_Pieub"
            | "Hangul_PieubSios"
            | "Hangul_PostHanja"
            | "Hangul_PreHanja"
            | "Hangul_PreviousCandidate"
            | "Hangul_Rieul"
            | "Hangul_RieulHieuh"
            | "Hangul_RieulKiyeog"
            | "Hangul_RieulMieum"
            | "Hangul_RieulPhieuf"
            | "Hangul_RieulPieub"
            | "Hangul_RieulSios"
            | "Hangul_RieulTieut"
            | "Hangul_RieulYeorinHieuh"
            | "Hangul_Romaja"
            | "Hangul_SingleCandidate"
            | "Hangul_Sios"
            | "Hangul_Special"
            | "Hangul_SsangDikeud"
            | "Hangul_SsangJieuj"
            | "Hangul_SsangKiyeog"
            | "Hangul_SsangPieub"
            | "Hangul_SsangSios"
            | "Hangul_Start"
            | "Hangul_SunkyeongeumMieum"
            | "Hangul_SunkyeongeumPhieuf"
            | "Hangul_SunkyeongeumPieub"
            | "Hangul_Tieut"
            | "Hangul_U"
            | "Hangul_WA"
            | "Hangul_WAE"
            | "Hangul_WE"
            | "Hangul_WEO"
            | "Hangul_WI"
            | "Hangul_YA"
            | "Hangul_YAE"
            | "Hangul_YE"
            | "Hangul_YEO"
            | "Hangul_YI"
            | "Hangul_YO"
            | "Hangul_YU"
            | "Hangul_YeorinHieuh"
            | "Hangul_switch"
            | "Hankaku"
            | "Hcircumflex"
            | "Hebrew_switch"
            | "Help"
            | "Henkan"
            | "Henkan_Mode"
            | "Hibernate"
            | "Hiragana"
            | "Hiragana_Katakana"
            | "History"
            | "Home"
            | "HomePage"
            | "HotLinks"
            | "Hstroke"
            | "Hyper_L"
            | "Hyper_R"
            | "I"
            | "ISO_Center_Object"
            | "ISO_Continuous_Underline"
            | "ISO_Discontinuous_Underline"
            | "ISO_Emphasize"
            | "ISO_Enter"
            | "ISO_Fast_Cursor_Down"
            | "ISO_Fast_Cursor_Left"
            | "ISO_Fast_Cursor_Right"
            | "ISO_Fast_Cursor_Up"
            | "ISO_First_Group"
            | "ISO_First_Group_Lock"
            | "ISO_Group_Latch"
            | "ISO_Group_Lock"
            | "ISO_Group_Shift"
            | "ISO_Last_Group"
            | "ISO_Last_Group_Lock"
            | "ISO_Left_Tab"
            | "ISO_Level2_Latch"
            | "ISO_Level3_Latch"
            | "ISO_Level3_Lock"
            | "ISO_Level3_Shift"
            | "ISO_Level5_Latch"
            | "ISO_Level5_Lock"
            | "ISO_Level5_Shift"
            | "ISO_Lock"
            | "ISO_Move_Line_Down"
            | "ISO_Move_Line_Up"
            | "ISO_Next_Group"
            | "ISO_Next_Group_Lock"
            | "ISO_Partial_Line_Down"
            | "ISO_Partial_Line_Up"
            | "ISO_Partial_Space_Left"
            | "ISO_Partial_Space_Right"
            | "ISO_Prev_Group"
            | "ISO_Prev_Group_Lock"
            | "ISO_Release_Both_Margins"
            | "ISO_Release_Margin_Left"
            | "ISO_Release_Margin_Right"
            | "ISO_Set_Margin_Left"
            | "ISO_Set_Margin_Right"
            | "Iabovedot"
            | "Iacute"
            | "Ibelowdot"
            | "Ibreve"
            | "Icircumflex"
            | "Idiaeresis"
            | "Igrave"
            | "Ihook"
            | "Imacron"
            | "Insert"
            | "Iogonek"
            | "Itilde"
            | "J"
            | "Jcircumflex"
            | "K"
            | "KP_0"
            | "KP_1"
            | "KP_2"
            | "KP_3"
            | "KP_4"
            | "KP_5"
            | "KP_6"
            | "KP_7"
            | "KP_8"
            | "KP_9"
            | "KP_Add"
            | "KP_Begin"
            | "KP_Decimal"
            | "KP_Delete"
            | "KP_Divide"
            | "KP_Down"
            | "KP_End"
            | "KP_Enter"
            | "KP_Equal"
            | "KP_F1"
            | "KP_F2"
            | "KP_F3"
            | "KP_F4"
            | "KP_Home"
            | "KP_Insert"
            | "KP_Left"
            | "KP_Multiply"
            | "KP_Next"
            | "KP_Page_Down"
            | "KP_Page_Up"
            | "KP_Prior"
            | "KP_Right"
            | "KP_Separator"
            | "KP_Space"
            | "KP_Subtract"
            | "KP_Tab"
            | "KP_Up"
            | "Kana_Lock"
            | "Kana_Shift"
            | "Kanji"
            | "Kanji_Bangou"
            | "Katakana"
            | "KbdBrightnessDown"
            | "KbdBrightnessUp"
            | "KbdLightOnOff"
            | "Kcedilla"
            | "Keyboard"
            | "Korean_Won"
            | "L1"
            | "L10"
            | "L2"
            | "L3"
            | "L4"
            | "L5"
            | "L6"
            | "L7"
            | "L8"
            | "L9"
            | "Lacute"
            | "Last_Virtual_Screen"
            | "Launch0"
            | "Launch1"
            | "Launch2"
            | "Launch3"
            | "Launch4"
            | "Launch5"
            | "Launch6"
            | "Launch7"
            | "Launch8"
            | "Launch9"
            | "LaunchA"
            | "LaunchB"
            | "LaunchC"
            | "LaunchD"
            | "LaunchE"
            | "LaunchF"
            | "Lbelowdot"
            | "Lcaron"
            | "Lcedilla"
            | "Left"
            | "LightBulb"
            | "Linefeed"
            | "LiraSign"
            | "LogGrabInfo"
            | "LogOff"
            | "LogWindowTree"
            | "Lstroke"
            | "Mabovedot"
            | "Macedonia_DSE"
            | "Macedonia_GJE"
            | "Macedonia_KJE"
            | "Macedonia_dse"
            | "Macedonia_gje"
            | "Macedonia_kje"
            | "Mae_Koho"
            | "Mail"
            | "MailForward"
            | "Market"
            | "Massyo"
            | "Meeting"
            | "Memo"
            | "Menu"
            | "MenuKB"
            | "MenuPB"
            | "Messenger"
            | "Meta_L"
            | "Meta_R"
            | "MillSign"
            | "ModeLock"
            | "Mode_switch"
            | "MonBrightnessDown"
            | "MonBrightnessUp"
            | "MouseKeys_Accel_Enable"
            | "MouseKeys_Enable"
            | "Muhenkan"
            | "Multi_key"
            | "MultipleCandidate"
            | "Music"
            | "MyComputer"
            | "MySites"
            | "Nacute"
            | "NairaSign"
            | "Ncaron"
            | "Ncedilla"
            | "New"
            | "NewSheqelSign"
            | "News"
            | "Next"
            | "Next_VMode"
            | "Next_Virtual_Screen"
            | "Ntilde"
            | "Num_Lock"
            | "OE"
            | "Oacute"
            | "Obarred"
            | "Obelowdot"
            | "Ocaron"
            | "Ocircumflex"
            | "Ocircumflexacute"
            | "Ocircumflexbelowdot"
            | "Ocircumflexgrave"
            | "Ocircumflexhook"
            | "Ocircumflextilde"
            | "Odiaeresis"
            | "Odoubleacute"
            | "OfficeHome"
            | "Ograve"
            | "Ohook"
            | "Ohorn"
            | "Ohornacute"
            | "Ohornbelowdot"
            | "Ohorngrave"
            | "Ohornhook"
            | "Ohorntilde"
            | "Omacron"
            | "Ooblique"
            | "Open"
            | "OpenURL"
            | "Option"
            | "Oslash"
            | "Otilde"
            | "Overlay1_Enable"
            | "Overlay2_Enable"
            | "Pabovedot"
            | "Page_Down"
            | "Page_Up"
            | "Paste"
            | "Pause"
            | "PesetaSign"
            | "Phone"
            | "Pictures"
            | "Pointer_Accelerate"
            | "Pointer_Button1"
            | "Pointer_Button2"
            | "Pointer_Button3"
            | "Pointer_Button4"
            | "Pointer_Button5"
            | "Pointer_Button_Dflt"
            | "Pointer_DblClick1"
            | "Pointer_DblClick2"
            | "Pointer_DblClick3"
            | "Pointer_DblClick4"
            | "Pointer_DblClick5"
            | "Pointer_DblClick_Dflt"
            | "Pointer_DfltBtnNext"
            | "Pointer_DfltBtnPrev"
            | "Pointer_Down"
            | "Pointer_DownLeft"
            | "Pointer_DownRight"
            | "Pointer_Drag1"
            | "Pointer_Drag2"
            | "Pointer_Drag3"
            | "Pointer_Drag4"
            | "Pointer_Drag5"
            | "Pointer_Drag_Dflt"
            | "Pointer_EnableKeys"
            | "Pointer_Left"
            | "Pointer_Right"
            | "Pointer_Up"
            | "Pointer_UpLeft"
            | "Pointer_UpRight"
            | "PowerDown"
            | "PowerOff"
            | "Prev_VMode"
            | "Prev_Virtual_Screen"
            | "PreviousCandidate"
            | "Print"
            | "Prior"
            | "Q"
            | "R1"
            | "R10"
            | "R11"
            | "R12"
            | "R13"
            | "R14"
            | "R15"
            | "R2"
            | "R3"
            | "R4"
            | "R5"
            | "R6"
            | "R7"
            | "R8"
            | "R9"
            | "RFKill"
            | "Racute"
            | "Rcaron"
            | "Rcedilla"
            | "Red"
            | "Redo"
            | "Refresh"
            | "Reload"
            | "RepeatKeys_Enable"
            | "Reply"
            | "Return"
            | "Right"
            | "RockerDown"
            | "RockerEnter"
            | "RockerUp"
            | "Romaji"
            | "RotateWindows"
            | "RotationKB"
            | "RotationPB"
            | "RupeeSign"
            | "SCHWA"
            | "Sabovedot"
            | "Sacute"
            | "Save"
            | "Scaron"
            | "Scedilla"
            | "Scircumflex"
            | "ScreenSaver"
            | "ScrollClick"
            | "ScrollDown"
            | "ScrollUp"
            | "Scroll_Lock"
            | "Search"
            | "Select"
            | "SelectButton"
            | "Send"
            | "Serbian_DJE"
            | "Serbian_DZE"
            | "Serbian_JE"
            | "Serbian_LJE"
            | "Serbian_NJE"
            | "Serbian_TSHE"
            | "Serbian_dje"
            | "Serbian_dze"
            | "Serbian_je"
            | "Serbian_lje"
            | "Serbian_nje"
            | "Serbian_tshe"
            | "Shift_L"
            | "Shift_Lock"
            | "Shift_R"
            | "Shop"
            | "SingleCandidate"
            | "Sinh_a"
            | "Sinh_aa"
            | "Sinh_aa2"
            | "Sinh_ae"
            | "Sinh_ae2"
            | "Sinh_aee"
            | "Sinh_aee2"
            | "Sinh_ai"
            | "Sinh_ai2"
            | "Sinh_al"
            | "Sinh_au"
            | "Sinh_au2"
            | "Sinh_ba"
            | "Sinh_bha"
            | "Sinh_ca"
            | "Sinh_cha"
            | "Sinh_dda"
            | "Sinh_ddha"
            | "Sinh_dha"
            | "Sinh_dhha"
            | "Sinh_e"
            | "Sinh_e2"
            | "Sinh_ee"
            | "Sinh_ee2"
            | "Sinh_fa"
            | "Sinh_ga"
            | "Sinh_gha"
            | "Sinh_h2"
            | "Sinh_ha"
            | "Sinh_i"
            | "Sinh_i2"
            | "Sinh_ii"
            | "Sinh_ii2"
            | "Sinh_ja"
            | "Sinh_jha"
            | "Sinh_jnya"
            | "Sinh_ka"
            | "Sinh_kha"
            | "Sinh_kunddaliya"
            | "Sinh_la"
            | "Sinh_lla"
            | "Sinh_lu"
            | "Sinh_lu2"
            | "Sinh_luu"
            | "Sinh_luu2"
            | "Sinh_ma"
            | "Sinh_mba"
            | "Sinh_na"
            | "Sinh_ndda"
            | "Sinh_ndha"
            | "Sinh_ng"
            | "Sinh_ng2"
            | "Sinh_nga"
            | "Sinh_nja"
            | "Sinh_nna"
            | "Sinh_nya"
            | "Sinh_o"
            | "Sinh_o2"
            | "Sinh_oo"
            | "Sinh_oo2"
            | "Sinh_pa"
            | "Sinh_pha"
            | "Sinh_ra"
            | "Sinh_ri"
            | "Sinh_rii"
            | "Sinh_ru2"
            | "Sinh_ruu2"
            | "Sinh_sa"
            | "Sinh_sha"
            | "Sinh_ssha"
            | "Sinh_tha"
            | "Sinh_thha"
            | "Sinh_tta"
            | "Sinh_ttha"
            | "Sinh_u"
            | "Sinh_u2"
            | "Sinh_uu"
            | "Sinh_uu2"
            | "Sinh_va"
            | "Sinh_ya"
            | "Sleep"
            | "SlowKeys_Enable"
            | "Spell"
            | "SplitScreen"
            | "Standby"
            | "Start"
            | "StickyKeys_Enable"
            | "Stop"
            | "Subtitle"
            | "Super_L"
            | "Super_R"
            | "Support"
            | "Suspend"
            | "Switch_VT_1"
            | "Switch_VT_10"
            | "Switch_VT_11"
            | "Switch_VT_12"
            | "Switch_VT_2"
            | "Switch_VT_3"
            | "Switch_VT_4"
            | "Switch_VT_5"
            | "Switch_VT_6"
            | "Switch_VT_7"
            | "Switch_VT_8"
            | "Switch_VT_9"
            | "Sys_Req"
            | "THORN"
            | "Tab"
            | "Tabovedot"
            | "TaskPane"
            | "Tcaron"
            | "Tcedilla"
            | "Terminal"
            | "Terminate_Server"
            | "Thai_baht"
            | "Thai_bobaimai"
            | "Thai_chochan"
            | "Thai_chochang"
            | "Thai_choching"
            | "Thai_chochoe"
            | "Thai_dochada"
            | "Thai_dodek"
            | "Thai_fofa"
            | "Thai_fofan"
            | "Thai_hohip"
            | "Thai_honokhuk"
            | "Thai_khokhai"
            | "Thai_khokhon"
            | "Thai_khokhuat"
            | "Thai_khokhwai"
            | "Thai_khorakhang"
            | "Thai_kokai"
            | "Thai_lakkhangyao"
            | "Thai_lekchet"
            | "Thai_lekha"
            | "Thai_lekhok"
            | "Thai_lekkao"
            | "Thai_leknung"
            | "Thai_lekpaet"
            | "Thai_leksam"
            | "Thai_leksi"
            | "Thai_leksong"
            | "Thai_leksun"
            | "Thai_lochula"
            | "Thai_loling"
            | "Thai_lu"
            | "Thai_maichattawa"
            | "Thai_maiek"
            | "Thai_maihanakat"
            | "Thai_maihanakat_maitho"
            | "Thai_maitaikhu"
            | "Thai_maitho"
            | "Thai_maitri"
            | "Thai_maiyamok"
            | "Thai_moma"
            | "Thai_ngongu"
            | "Thai_nikhahit"
            | "Thai_nonen"
            | "Thai_nonu"
            | "Thai_oang"
            | "Thai_paiyannoi"
            | "Thai_phinthu"
            | "Thai_phophan"
            | "Thai_phophung"
            | "Thai_phosamphao"
            | "Thai_popla"
            | "Thai_rorua"
            | "Thai_ru"
            | "Thai_saraa"
            | "Thai_saraaa"
            | "Thai_saraae"
            | "Thai_saraaimaimalai"
            | "Thai_saraaimaimuan"
            | "Thai_saraam"
            | "Thai_sarae"
            | "Thai_sarai"
            | "Thai_saraii"
            | "Thai_sarao"
            | "Thai_sarau"
            | "Thai_saraue"
            | "Thai_sarauee"
            | "Thai_sarauu"
            | "Thai_sorusi"
            | "Thai_sosala"
            | "Thai_soso"
            | "Thai_sosua"
            | "Thai_thanthakhat"
            | "Thai_thonangmontho"
            | "Thai_thophuthao"
            | "Thai_thothahan"
            | "Thai_thothan"
            | "Thai_thothong"
            | "Thai_thothung"
            | "Thai_topatak"
            | "Thai_totao"
            | "Thai_wowaen"
            | "Thai_yoyak"
            | "Thai_yoying"
            | "Thorn"
            | "Time"
            | "ToDoList"
            | "Tools"
            | "TopMenu"
            | "TouchpadOff"
            | "TouchpadOn"
            | "TouchpadToggle"
            | "Touroku"
            | "Travel"
            | "Tslash"
            | "U"
            | "UWB"
            | "Uacute"
            | "Ubelowdot"
            | "Ubreve"
            | "Ucircumflex"
            | "Udiaeresis"
            | "Udoubleacute"
            | "Ugrave"
            | "Uhook"
            | "Uhorn"
            | "Uhornacute"
            | "Uhornbelowdot"
            | "Uhorngrave"
            | "Uhornhook"
            | "Uhorntilde"
            | "Ukrainian_GHE_WITH_UPTURN"
            | "Ukrainian_I"
            | "Ukrainian_IE"
            | "Ukrainian_YI"
            | "Ukrainian_ghe_with_upturn"
            | "Ukrainian_i"
            | "Ukrainian_ie"
            | "Ukrainian_yi"
            | "Ukranian_I"
            | "Ukranian_JE"
            | "Ukranian_YI"
            | "Ukranian_i"
            | "Ukranian_je"
            | "Ukranian_yi"
            | "Umacron"
            | "Undo"
            | "Ungrab"
            | "Uogonek"
            | "Up"
            | "Uring"
            | "User1KB"
            | "User2KB"
            | "UserPB"
            | "Utilde"
            | "V"
            | "VendorHome"
            | "Video"
            | "View"
            | "VoidSymbol"
            | "WLAN"
            | "WWAN"
            | "WWW"
            | "Wacute"
            | "WakeUp"
            | "Wcircumflex"
            | "Wdiaeresis"
            | "WebCam"
            | "Wgrave"
            | "WheelButton"
            | "WindowClear"
            | "WonSign"
            | "Word"
            | "X"
            | "Xabovedot"
            | "Xfer"
            | "Y"
            | "Yacute"
            | "Ybelowdot"
            | "Ycircumflex"
            | "Ydiaeresis"
            | "Yellow"
            | "Ygrave"
            | "Yhook"
            | "Ytilde"
            | "Z"
            | "Zabovedot"
            | "Zacute"
            | "Zcaron"
            | "Zen_Koho"
            | "Zenkaku"
            | "Zenkaku_Hankaku"
            | "ZoomIn"
            | "ZoomOut"
            | "Zstroke"
            | "aacute"
            | "abelowdot"
            | "abovedot"
            | "abreve"
            | "abreveacute"
            | "abrevebelowdot"
            | "abrevegrave"
            | "abrevehook"
            | "abrevetilde"
            | "acircumflex"
            | "acircumflexacute"
            | "acircumflexbelowdot"
            | "acircumflexgrave"
            | "acircumflexhook"
            | "acircumflextilde"
            | "acute"
            | "adiaeresis"
            | "ae"
            | "agrave"
            | "ahook"
            | "amacron"
            | "ampersand"
            | "aogonek"
            | "apostrophe"
            | "approxeq"
            | "approximate"
            | "aring"
            | "asciicircum"
            | "asciitilde"
            | "asterisk"
            | "atilde"
            | "babovedot"
            | "backslash"
            | "ballotcross"
            | "bar"
            | "because"
            | "blank"
            | "botintegral"
            | "botleftparens"
            | "botleftsqbracket"
            | "botleftsummation"
            | "botrightparens"
            | "botrightsqbracket"
            | "botrightsummation"
            | "bott"
            | "botvertsummationconnector"
            | "braceleft"
            | "braceright"
            | "bracketleft"
            | "bracketright"
            | "braille_blank"
            | "braille_dot_1"
            | "braille_dot_10"
            | "braille_dot_2"
            | "braille_dot_3"
            | "braille_dot_4"
            | "braille_dot_5"
            | "braille_dot_6"
            | "braille_dot_7"
            | "braille_dot_8"
            | "braille_dot_9"
            | "braille_dots_1"
            | "braille_dots_12"
            | "braille_dots_123"
            | "braille_dots_1234"
            | "braille_dots_12345"
            | "braille_dots_123456"
            | "braille_dots_1234567"
            | "braille_dots_12345678"
            | "braille_dots_1234568"
            | "braille_dots_123457"
            | "braille_dots_1234578"
            | "braille_dots_123458"
            | "braille_dots_12346"
            | "braille_dots_123467"
            | "braille_dots_1234678"
            | "braille_dots_123468"
            | "braille_dots_12347"
            | "braille_dots_123478"
            | "braille_dots_12348"
            | "braille_dots_1235"
            | "braille_dots_12356"
            | "braille_dots_123567"
            | "braille_dots_1235678"
            | "braille_dots_123568"
            | "braille_dots_12357"
            | "braille_dots_123578"
            | "braille_dots_12358"
            | "braille_dots_1236"
            | "braille_dots_12367"
            | "braille_dots_123678"
            | "braille_dots_12368"
            | "braille_dots_1237"
            | "braille_dots_12378"
            | "braille_dots_1238"
            | "braille_dots_124"
            | "braille_dots_1245"
            | "braille_dots_12456"
            | "braille_dots_124567"
            | "braille_dots_1245678"
            | "braille_dots_124568"
            | "braille_dots_12457"
            | "braille_dots_124578"
            | "braille_dots_12458"
            | "braille_dots_1246"
            | "braille_dots_12467"
            | "braille_dots_124678"
            | "braille_dots_12468"
            | "braille_dots_1247"
            | "braille_dots_12478"
            | "braille_dots_1248"
            | "braille_dots_125"
            | "braille_dots_1256"
            | "braille_dots_12567"
            | "braille_dots_125678"
            | "braille_dots_12568"
            | "braille_dots_1257"
            | "braille_dots_12578"
            | "braille_dots_1258"
            | "braille_dots_126"
            | "braille_dots_1267"
            | "braille_dots_12678"
            | "braille_dots_1268"
            | "braille_dots_127"
            | "braille_dots_1278"
            | "braille_dots_128"
            | "braille_dots_13"
            | "braille_dots_134"
            | "braille_dots_1345"
            | "braille_dots_13456"
            | "braille_dots_134567"
            | "braille_dots_1345678"
            | "braille_dots_134568"
            | "braille_dots_13457"
            | "braille_dots_134578"
            | "braille_dots_13458"
            | "braille_dots_1346"
            | "braille_dots_13467"
            | "braille_dots_134678"
            | "braille_dots_13468"
            | "braille_dots_1347"
            | "braille_dots_13478"
            | "braille_dots_1348"
            | "braille_dots_135"
            | "braille_dots_1356"
            | "braille_dots_13567"
            | "braille_dots_135678"
            | "braille_dots_13568"
            | "braille_dots_1357"
            | "braille_dots_13578"
            | "braille_dots_1358"
            | "braille_dots_136"
            | "braille_dots_1367"
            | "braille_dots_13678"
            | "braille_dots_1368"
            | "braille_dots_137"
            | "braille_dots_1378"
            | "braille_dots_138"
            | "braille_dots_14"
            | "braille_dots_145"
            | "braille_dots_1456"
            | "braille_dots_14567"
            | "braille_dots_145678"
            | "braille_dots_14568"
            | "braille_dots_1457"
            | "braille_dots_14578"
            | "braille_dots_1458"
            | "braille_dots_146"
            | "braille_dots_1467"
            | "braille_dots_14678"
            | "braille_dots_1468"
            | "braille_dots_147"
            | "braille_dots_1478"
            | "braille_dots_148"
            | "braille_dots_15"
            | "braille_dots_156"
            | "braille_dots_1567"
            | "braille_dots_15678"
            | "braille_dots_1568"
            | "braille_dots_157"
            | "braille_dots_1578"
            | "braille_dots_158"
            | "braille_dots_16"
            | "braille_dots_167"
            | "braille_dots_1678"
            | "braille_dots_168"
            | "braille_dots_17"
            | "braille_dots_178"
            | "braille_dots_18"
            | "braille_dots_2"
            | "braille_dots_23"
            | "braille_dots_234"
            | "braille_dots_2345"
            | "braille_dots_23456"
            | "braille_dots_234567"
            | "braille_dots_2345678"
            | "braille_dots_234568"
            | "braille_dots_23457"
            | "braille_dots_234578"
            | "braille_dots_23458"
            | "braille_dots_2346"
            | "braille_dots_23467"
            | "braille_dots_234678"
            | "braille_dots_23468"
            | "braille_dots_2347"
            | "braille_dots_23478"
            | "braille_dots_2348"
            | "braille_dots_235"
            | "braille_dots_2356"
            | "braille_dots_23567"
            | "braille_dots_235678"
            | "braille_dots_23568"
            | "braille_dots_2357"
            | "braille_dots_23578"
            | "braille_dots_2358"
            | "braille_dots_236"
            | "braille_dots_2367"
            | "braille_dots_23678"
            | "braille_dots_2368"
            | "braille_dots_237"
            | "braille_dots_2378"
            | "braille_dots_238"
            | "braille_dots_24"
            | "braille_dots_245"
            | "braille_dots_2456"
            | "braille_dots_24567"
            | "braille_dots_245678"
            | "braille_dots_24568"
            | "braille_dots_2457"
            | "braille_dots_24578"
            | "braille_dots_2458"
            | "braille_dots_246"
            | "braille_dots_2467"
            | "braille_dots_24678"
            | "braille_dots_2468"
            | "braille_dots_247"
            | "braille_dots_2478"
            | "braille_dots_248"
            | "braille_dots_25"
            | "braille_dots_256"
            | "braille_dots_2567"
            | "braille_dots_25678"
            | "braille_dots_2568"
            | "braille_dots_257"
            | "braille_dots_2578"
            | "braille_dots_258"
            | "braille_dots_26"
            | "braille_dots_267"
            | "braille_dots_2678"
            | "braille_dots_268"
            | "braille_dots_27"
            | "braille_dots_278"
            | "braille_dots_28"
            | "braille_dots_3"
            | "braille_dots_34"
            | "braille_dots_345"
            | "braille_dots_3456"
            | "braille_dots_34567"
            | "braille_dots_345678"
            | "braille_dots_34568"
            | "braille_dots_3457"
            | "braille_dots_34578"
            | "braille_dots_3458"
            | "braille_dots_346"
            | "braille_dots_3467"
            | "braille_dots_34678"
            | "braille_dots_3468"
            | "braille_dots_347"
            | "braille_dots_3478"
            | "braille_dots_348"
            | "braille_dots_35"
            | "braille_dots_356"
            | "braille_dots_3567"
            | "braille_dots_35678"
            | "braille_dots_3568"
            | "braille_dots_357"
            | "braille_dots_3578"
            | "braille_dots_358"
            | "braille_dots_36"
            | "braille_dots_367"
            | "braille_dots_3678"
            | "braille_dots_368"
            | "braille_dots_37"
            | "braille_dots_378"
            | "braille_dots_38"
            | "braille_dots_4"
            | "braille_dots_45"
            | "braille_dots_456"
            | "braille_dots_4567"
            | "braille_dots_45678"
            | "braille_dots_4568"
            | "braille_dots_457"
            | "braille_dots_4578"
            | "braille_dots_458"
            | "braille_dots_46"
            | "braille_dots_467"
            | "braille_dots_4678"
            | "braille_dots_468"
            | "braille_dots_47"
            | "braille_dots_478"
            | "braille_dots_48"
            | "braille_dots_5"
            | "braille_dots_56"
            | "braille_dots_567"
            | "braille_dots_5678"
            | "braille_dots_568"
            | "braille_dots_57"
            | "braille_dots_578"
            | "braille_dots_58"
            | "braille_dots_6"
            | "braille_dots_67"
            | "braille_dots_678"
            | "braille_dots_68"
            | "braille_dots_7"
            | "braille_dots_78"
            | "braille_dots_8"
            | "breve"
            | "brokenbar"
            | "c_h"
            | "cabovedot"
            | "cacute"
            | "careof"
            | "caret"
            | "caron"
            | "ccaron"
            | "ccedilla"
            | "ccircumflex"
            | "cedilla"
            | "cent"
            | "ch"
            | "checkerboard"
            | "checkmark"
            | "circle"
            | "club"
            | "colon"
            | "comma"
            | "containsas"
            | "copyright"
            | "cr"
            | "crossinglines"
            | "cuberoot"
            | "currency"
            | "dabovedot"
            | "dagger"
            | "dcaron"
            | "dead_A"
            | "dead_E"
            | "dead_I"
            | "dead_O"
            | "dead_U"
            | "dead_a"
            | "dead_abovecomma"
            | "dead_abovedot"
            | "dead_abovereversedcomma"
            | "dead_abovering"
            | "dead_aboveverticalline"
            | "dead_acute"
            | "dead_belowbreve"
            | "dead_belowcircumflex"
            | "dead_belowcomma"
            | "dead_belowdiaeresis"
            | "dead_belowdot"
            | "dead_belowmacron"
            | "dead_belowring"
            | "dead_belowtilde"
            | "dead_belowverticalline"
            | "dead_breve"
            | "dead_capital_schwa"
            | "dead_caron"
            | "dead_cedilla"
            | "dead_circumflex"
            | "dead_currency"
            | "dead_dasia"
            | "dead_diaeresis"
            | "dead_doubleacute"
            | "dead_doublegrave"
            | "dead_e"
            | "dead_grave"
            | "dead_greek"
            | "dead_hook"
            | "dead_horn"
            | "dead_i"
            | "dead_invertedbreve"
            | "dead_iota"
            | "dead_longsolidusoverlay"
            | "dead_lowline"
            | "dead_macron"
            | "dead_o"
            | "dead_ogonek"
            | "dead_perispomeni"
            | "dead_psili"
            | "dead_semivoiced_sound"
            | "dead_small_schwa"
            | "dead_stroke"
            | "dead_tilde"
            | "dead_u"
            | "dead_voiced_sound"
            | "decimalpoint"
            | "degree"
            | "diaeresis"
            | "diamond"
            | "digitspace"
            | "dintegral"
            | "division"
            | "dollar"
            | "doubbaselinedot"
            | "doubleacute"
            | "doubledagger"
            | "doublelowquotemark"
            | "downarrow"
            | "downcaret"
            | "downshoe"
            | "downstile"
            | "downtack"
            | "dstroke"
            | "eabovedot"
            | "eacute"
            | "ebelowdot"
            | "ecaron"
            | "ecircumflex"
            | "ecircumflexacute"
            | "ecircumflexbelowdot"
            | "ecircumflexgrave"
            | "ecircumflexhook"
            | "ecircumflextilde"
            | "ediaeresis"
            | "egrave"
            | "ehook"
            | "eightsubscript"
            | "eightsuperior"
            | "elementof"
            | "ellipsis"
            | "em3space"
            | "em4space"
            | "emacron"
            | "emdash"
            | "emfilledcircle"
            | "emfilledrect"
            | "emopencircle"
            | "emopenrectangle"
            | "emptyset"
            | "emspace"
            | "endash"
            | "enfilledcircbullet"
            | "enfilledsqbullet"
            | "eng"
            | "enopencircbullet"
            | "enopensquarebullet"
            | "enspace"
            | "eogonek"
            | "equal"
            | "eth"
            | "etilde"
            | "exclam"
            | "exclamdown"
            | "ezh"
            | "fabovedot"
            | "femalesymbol"
            | "ff"
            | "figdash"
            | "filledlefttribullet"
            | "filledrectbullet"
            | "filledrighttribullet"
            | "filledtribulletdown"
            | "filledtribulletup"
            | "fiveeighths"
            | "fivesixths"
            | "fivesubscript"
            | "fivesuperior"
            | "fourfifths"
            | "foursubscript"
            | "foursuperior"
            | "fourthroot"
            | "gabovedot"
            | "gbreve"
            | "gcaron"
            | "gcedilla"
            | "gcircumflex"
            | "grave"
            | "greater"
            | "greaterthanequal"
            | "guillemotleft"
            | "guillemotright"
            | "hairspace"
            | "hcircumflex"
            | "heart"
            | "hebrew_aleph"
            | "hebrew_ayin"
            | "hebrew_bet"
            | "hebrew_beth"
            | "hebrew_chet"
            | "hebrew_dalet"
            | "hebrew_daleth"
            | "hebrew_doublelowline"
            | "hebrew_finalkaph"
            | "hebrew_finalmem"
            | "hebrew_finalnun"
            | "hebrew_finalpe"
            | "hebrew_finalzade"
            | "hebrew_finalzadi"
            | "hebrew_gimel"
            | "hebrew_gimmel"
            | "hebrew_he"
            | "hebrew_het"
            | "hebrew_kaph"
            | "hebrew_kuf"
            | "hebrew_lamed"
            | "hebrew_mem"
            | "hebrew_nun"
            | "hebrew_pe"
            | "hebrew_qoph"
            | "hebrew_resh"
            | "hebrew_samech"
            | "hebrew_samekh"
            | "hebrew_shin"
            | "hebrew_taf"
            | "hebrew_taw"
            | "hebrew_tet"
            | "hebrew_teth"
            | "hebrew_waw"
            | "hebrew_yod"
            | "hebrew_zade"
            | "hebrew_zadi"
            | "hebrew_zain"
            | "hebrew_zayin"
            | "hexagram"
            | "horizconnector"
            | "horizlinescan1"
            | "horizlinescan3"
            | "horizlinescan5"
            | "horizlinescan7"
            | "horizlinescan9"
            | "hstroke"
            | "ht"
            | "hyphen"
            | "iTouch"
            | "iacute"
            | "ibelowdot"
            | "ibreve"
            | "icircumflex"
            | "identical"
            | "idiaeresis"
            | "idotless"
            | "ifonlyif"
            | "igrave"
            | "ihook"
            | "imacron"
            | "implies"
            | "includedin"
            | "infinity"
            | "integral"
            | "intersection"
            | "iogonek"
            | "itilde"
            | "j"
            | "jcircumflex"
            | "jot"
            | "k"
            | "kana_A"
            | "kana_CHI"
            | "kana_E"
            | "kana_FU"
            | "kana_HA"
            | "kana_HE"
            | "kana_HI"
            | "kana_HO"
            | "kana_HU"
            | "kana_I"
            | "kana_KA"
            | "kana_KE"
            | "kana_KI"
            | "kana_KO"
            | "kana_KU"
            | "kana_MA"
            | "kana_ME"
            | "kana_MI"
            | "kana_MO"
            | "kana_MU"
            | "kana_N"
            | "kana_NA"
            | "kana_NE"
            | "kana_NI"
            | "kana_NO"
            | "kana_NU"
            | "kana_O"
            | "kana_RA"
            | "kana_RE"
            | "kana_RI"
            | "kana_RO"
            | "kana_RU"
            | "kana_SA"
            | "kana_SE"
            | "kana_SHI"
            | "kana_SO"
            | "kana_SU"
            | "kana_TA"
            | "kana_TE"
            | "kana_TI"
            | "kana_TO"
            | "kana_TSU"
            | "kana_TU"
            | "kana_U"
            | "kana_WA"
            | "kana_WO"
            | "kana_YA"
            | "kana_YO"
            | "kana_YU"
            | "kana_a"
            | "kana_closingbracket"
            | "kana_comma"
            | "kana_conjunctive"
            | "kana_e"
            | "kana_fullstop"
            | "kana_i"
            | "kana_middledot"
            | "kana_o"
            | "kana_openingbracket"
            | "kana_switch"
            | "kana_tsu"
            | "kana_tu"
            | "kana_u"
            | "kana_ya"
            | "kana_yo"
            | "kana_yu"
            | "kappa"
            | "kcedilla"
            | "kra"
            | "lacute"
            | "latincross"
            | "lbelowdot"
            | "lcaron"
            | "lcedilla"
            | "leftanglebracket"
            | "leftarrow"
            | "leftcaret"
            | "leftdoublequotemark"
            | "leftmiddlecurlybrace"
            | "leftopentriangle"
            | "leftpointer"
            | "leftradical"
            | "leftshoe"
            | "leftsinglequotemark"
            | "leftt"
            | "lefttack"
            | "less"
            | "lessthanequal"
            | "lf"
            | "logicaland"
            | "logicalor"
            | "lowleftcorner"
            | "lowrightcorner"
            | "lstroke"
            | "mabovedot"
            | "macron"
            | "malesymbol"
            | "maltesecross"
            | "marker"
            | "masculine"
            | "minus"
            | "minutes"
            | "mu"
            | "multiply"
            | "musicalflat"
            | "musicalsharp"
            | "nabla"
            | "nacute"
            | "ncaron"
            | "ncedilla"
            | "ninesubscript"
            | "ninesuperior"
            | "nl"
            | "nobreakspace"
            | "notapproxeq"
            | "notelementof"
            | "notequal"
            | "notidentical"
            | "notsign"
            | "ntilde"
            | "numbersign"
            | "numerosign"
            | "oacute"
            | "obarred"
            | "obelowdot"
            | "ocaron"
            | "ocircumflex"
            | "ocircumflexacute"
            | "ocircumflexbelowdot"
            | "ocircumflexgrave"
            | "ocircumflexhook"
            | "ocircumflextilde"
            | "odiaeresis"
            | "odoubleacute"
            | "oe"
            | "ogonek"
            | "ograve"
            | "ohook"
            | "ohorn"
            | "ohornacute"
            | "ohornbelowdot"
            | "ohorngrave"
            | "ohornhook"
            | "ohorntilde"
            | "omacron"
            | "oneeighth"
            | "onefifth"
            | "onehalf"
            | "onequarter"
            | "onesixth"
            | "onesubscript"
            | "onesuperior"
            | "onethird"
            | "ooblique"
            | "openrectbullet"
            | "openstar"
            | "opentribulletdown"
            | "opentribulletup"
            | "ordfeminine"
            | "oslash"
            | "otilde"
            | "overbar"
            | "overline"
            | "pabovedot"
            | "paragraph"
            | "parenleft"
            | "parenright"
            | "partdifferential"
            | "partialderivative"
            | "period"
            | "periodcentered"
            | "permille"
            | "phonographcopyright"
            | "plus"
            | "plusminus"
            | "prescription"
            | "prolongedsound"
            | "punctspace"
            | "quad"
            | "question"
            | "questiondown"
            | "quotedbl"
            | "quoteleft"
            | "quoteright"
            | "racute"
            | "radical"
            | "rcaron"
            | "rcedilla"
            | "registered"
            | "rightanglebracket"
            | "rightarrow"
            | "rightcaret"
            | "rightdoublequotemark"
            | "rightmiddlecurlybrace"
            | "rightmiddlesummation"
            | "rightopentriangle"
            | "rightpointer"
            | "rightshoe"
            | "rightsinglequotemark"
            | "rightt"
            | "righttack"
            | "sabovedot"
            | "sacute"
            | "scaron"
            | "scedilla"
            | "schwa"
            | "scircumflex"
            | "script_switch"
            | "seconds"
            | "section"
            | "semicolon"
            | "semivoicedsound"
            | "seveneighths"
            | "sevensubscript"
            | "sevensuperior"
            | "signaturemark"
            | "signifblank"
            | "similarequal"
            | "singlelowquotemark"
            | "sixsubscript"
            | "sixsuperior"
            | "slash"
            | "soliddiamond"
            | "space"
            | "squareroot"
            | "ssharp"
            | "sterling"
            | "stricteq"
            | "tabovedot"
            | "tcaron"
            | "tcedilla"
            | "telephone"
            | "telephonerecorder"
            | "therefore"
            | "thinspace"
            | "thorn"
            | "threeeighths"
            | "threefifths"
            | "threequarters"
            | "threesubscript"
            | "threesuperior"
            | "tintegral"
            | "topintegral"
            | "topleftparens"
            | "topleftradical"
            | "topleftsqbracket"
            | "topleftsummation"
            | "toprightparens"
            | "toprightsqbracket"
            | "toprightsummation"
            | "topt"
            | "topvertsummationconnector"
            | "trademark"
            | "trademarkincircle"
            | "tslash"
            | "twofifths"
            | "twosubscript"
            | "twosuperior"
            | "twothirds"
            | "uacute"
            | "ubelowdot"
            | "ubreve"
            | "ucircumflex"
            | "udiaeresis"
            | "udoubleacute"
            | "ugrave"
            | "uhook"
            | "uhorn"
            | "uhornacute"
            | "uhornbelowdot"
            | "uhorngrave"
            | "uhornhook"
            | "uhorntilde"
            | "umacron"
            | "underbar"
            | "underscore"
            | "union"
            | "uogonek"
            | "uparrow"
            | "upcaret"
            | "upleftcorner"
            | "uprightcorner"
            | "upshoe"
            | "upstile"
            | "uptack"
            | "uring"
            | "utilde"
            | "variation"
            | "vertbar"
            | "vertconnector"
            | "voicedsound"
            | "vt"
            | "wacute"
            | "wcircumflex"
            | "wdiaeresis"
            | "wgrave"
            | "xabovedot"
            | "yacute"
            | "ybelowdot"
            | "ycircumflex"
            | "ydiaeresis"
            | "yen"
            | "ygrave"
            | "yhook"
            | "ytilde"
            | "z"
            | "zabovedot"
            | "zacute"
            | "zcaron"
            | "zerosubscript"
            | "zerosuperior"
            | "zstroke"

      Parameters

      Returns this

      widget
      .keybind('Escape', self => self.hide())
      .keybind(['CONTROL'], 'q', () => App.quit());
    • Type Parameters

      • Fn extends (self: this, event: Event) => void
      • Key extends
            | "function"
            | "includes"
            | "at"
            | "0"
            | "s"
            | "o"
            | "g"
            | "b"
            | "n"
            | "q"
            | "t"
            | "d"
            | "u"
            | "i"
            | "x"
            | "y"
            | "h"
            | "v"
            | "r"
            | "w"
            | "percent"
            | "Clear"
            | "cursor"
            | "N"
            | "T"
            | "p"
            | "P"
            | "W"
            | "m"
            | "M"
            | "D"
            | "f"
            | "F"
            | "c"
            | "C"
            | "B"
            | "O"
            | "R"
            | "S"
            | "e"
            | "E"
            | "l"
            | "L"
            | "a"
            | "A"
            | "Display"
            | "1"
            | "2"
            | "3"
            | "3270_AltCursor"
            | "3270_Attn"
            | "3270_BackTab"
            | "3270_ChangeScreen"
            | "3270_Copy"
            | "3270_CursorBlink"
            | "3270_CursorSelect"
            | "3270_DeleteWord"
            | "3270_Duplicate"
            | "3270_Enter"
            | "3270_EraseEOF"
            | "3270_EraseInput"
            | "3270_ExSelect"
            | "3270_FieldMark"
            | "3270_Ident"
            | "3270_Jump"
            | "3270_KeyClick"
            | "3270_Left2"
            | "3270_PA1"
            | "3270_PA2"
            | "3270_PA3"
            | "3270_Play"
            | "3270_PrintScreen"
            | "3270_Quit"
            | "3270_Record"
            | "3270_Reset"
            | "3270_Right2"
            | "3270_Rule"
            | "3270_Setup"
            | "3270_Test"
            | "4"
            | "5"
            | "6"
            | "7"
            | "8"
            | "9"
            | "AE"
            | "Aacute"
            | "Abelowdot"
            | "Abreve"
            | "Abreveacute"
            | "Abrevebelowdot"
            | "Abrevegrave"
            | "Abrevehook"
            | "Abrevetilde"
            | "AccessX_Enable"
            | "AccessX_Feedback_Enable"
            | "Acircumflex"
            | "Acircumflexacute"
            | "Acircumflexbelowdot"
            | "Acircumflexgrave"
            | "Acircumflexhook"
            | "Acircumflextilde"
            | "AddFavorite"
            | "Adiaeresis"
            | "Agrave"
            | "Ahook"
            | "Alt_L"
            | "Alt_R"
            | "Amacron"
            | "Aogonek"
            | "ApplicationLeft"
            | "ApplicationRight"
            | "Arabic_0"
            | "Arabic_1"
            | "Arabic_2"
            | "Arabic_3"
            | "Arabic_4"
            | "Arabic_5"
            | "Arabic_6"
            | "Arabic_7"
            | "Arabic_8"
            | "Arabic_9"
            | "Arabic_ain"
            | "Arabic_alef"
            | "Arabic_alefmaksura"
            | "Arabic_beh"
            | "Arabic_comma"
            | "Arabic_dad"
            | "Arabic_dal"
            | "Arabic_damma"
            | "Arabic_dammatan"
            | "Arabic_ddal"
            | "Arabic_farsi_yeh"
            | "Arabic_fatha"
            | "Arabic_fathatan"
            | "Arabic_feh"
            | "Arabic_fullstop"
            | "Arabic_gaf"
            | "Arabic_ghain"
            | "Arabic_ha"
            | "Arabic_hah"
            | "Arabic_hamza"
            | "Arabic_hamza_above"
            | "Arabic_hamza_below"
            | "Arabic_hamzaonalef"
            | "Arabic_hamzaonwaw"
            | "Arabic_hamzaonyeh"
            | "Arabic_hamzaunderalef"
            | "Arabic_heh"
            | "Arabic_heh_doachashmee"
            | "Arabic_heh_goal"
            | "Arabic_jeem"
            | "Arabic_jeh"
            | "Arabic_kaf"
            | "Arabic_kasra"
            | "Arabic_kasratan"
            | "Arabic_keheh"
            | "Arabic_khah"
            | "Arabic_lam"
            | "Arabic_madda_above"
            | "Arabic_maddaonalef"
            | "Arabic_meem"
            | "Arabic_noon"
            | "Arabic_noon_ghunna"
            | "Arabic_peh"
            | "Arabic_percent"
            | "Arabic_qaf"
            | "Arabic_question_mark"
            | "Arabic_ra"
            | "Arabic_rreh"
            | "Arabic_sad"
            | "Arabic_seen"
            | "Arabic_semicolon"
            | "Arabic_shadda"
            | "Arabic_sheen"
            | "Arabic_sukun"
            | "Arabic_superscript_alef"
            | "Arabic_switch"
            | "Arabic_tah"
            | "Arabic_tatweel"
            | "Arabic_tcheh"
            | "Arabic_teh"
            | "Arabic_tehmarbuta"
            | "Arabic_thal"
            | "Arabic_theh"
            | "Arabic_tteh"
            | "Arabic_veh"
            | "Arabic_waw"
            | "Arabic_yeh"
            | "Arabic_yeh_baree"
            | "Arabic_zah"
            | "Arabic_zain"
            | "Aring"
            | "Armenian_AT"
            | "Armenian_AYB"
            | "Armenian_BEN"
            | "Armenian_CHA"
            | "Armenian_DA"
            | "Armenian_DZA"
            | "Armenian_E"
            | "Armenian_FE"
            | "Armenian_GHAT"
            | "Armenian_GIM"
            | "Armenian_HI"
            | "Armenian_HO"
            | "Armenian_INI"
            | "Armenian_JE"
            | "Armenian_KE"
            | "Armenian_KEN"
            | "Armenian_KHE"
            | "Armenian_LYUN"
            | "Armenian_MEN"
            | "Armenian_NU"
            | "Armenian_O"
            | "Armenian_PE"
            | "Armenian_PYUR"
            | "Armenian_RA"
            | "Armenian_RE"
            | "Armenian_SE"
            | "Armenian_SHA"
            | "Armenian_TCHE"
            | "Armenian_TO"
            | "Armenian_TSA"
            | "Armenian_TSO"
            | "Armenian_TYUN"
            | "Armenian_VEV"
            | "Armenian_VO"
            | "Armenian_VYUN"
            | "Armenian_YECH"
            | "Armenian_ZA"
            | "Armenian_ZHE"
            | "Armenian_accent"
            | "Armenian_amanak"
            | "Armenian_apostrophe"
            | "Armenian_at"
            | "Armenian_ayb"
            | "Armenian_ben"
            | "Armenian_but"
            | "Armenian_cha"
            | "Armenian_da"
            | "Armenian_dza"
            | "Armenian_e"
            | "Armenian_exclam"
            | "Armenian_fe"
            | "Armenian_full_stop"
            | "Armenian_ghat"
            | "Armenian_gim"
            | "Armenian_hi"
            | "Armenian_ho"
            | "Armenian_hyphen"
            | "Armenian_ini"
            | "Armenian_je"
            | "Armenian_ke"
            | "Armenian_ken"
            | "Armenian_khe"
            | "Armenian_ligature_ew"
            | "Armenian_lyun"
            | "Armenian_men"
            | "Armenian_nu"
            | "Armenian_o"
            | "Armenian_paruyk"
            | "Armenian_pe"
            | "Armenian_pyur"
            | "Armenian_question"
            | "Armenian_ra"
            | "Armenian_re"
            | "Armenian_se"
            | "Armenian_separation_mark"
            | "Armenian_sha"
            | "Armenian_shesht"
            | "Armenian_tche"
            | "Armenian_to"
            | "Armenian_tsa"
            | "Armenian_tso"
            | "Armenian_tyun"
            | "Armenian_verjaket"
            | "Armenian_vev"
            | "Armenian_vo"
            | "Armenian_vyun"
            | "Armenian_yech"
            | "Armenian_yentamna"
            | "Armenian_za"
            | "Armenian_zhe"
            | "Atilde"
            | "AudibleBell_Enable"
            | "AudioCycleTrack"
            | "AudioForward"
            | "AudioLowerVolume"
            | "AudioMedia"
            | "AudioMicMute"
            | "AudioMute"
            | "AudioNext"
            | "AudioPause"
            | "AudioPlay"
            | "AudioPreset"
            | "AudioPrev"
            | "AudioRaiseVolume"
            | "AudioRandomPlay"
            | "AudioRecord"
            | "AudioRepeat"
            | "AudioRewind"
            | "AudioStop"
            | "Away"
            | "Babovedot"
            | "Back"
            | "BackForward"
            | "BackSpace"
            | "Battery"
            | "Begin"
            | "Blue"
            | "Bluetooth"
            | "Book"
            | "BounceKeys_Enable"
            | "Break"
            | "BrightnessAdjust"
            | "Byelorussian_SHORTU"
            | "Byelorussian_shortu"
            | "CD"
            | "CH"
            | "C_H"
            | "C_h"
            | "Cabovedot"
            | "Cacute"
            | "Calculator"
            | "Calendar"
            | "Cancel"
            | "Caps_Lock"
            | "Ccaron"
            | "Ccedilla"
            | "Ccircumflex"
            | "Ch"
            | "ClearGrab"
            | "Close"
            | "Codeinput"
            | "ColonSign"
            | "Community"
            | "ContrastAdjust"
            | "Control_L"
            | "Control_R"
            | "Copy"
            | "CruzeiroSign"
            | "Cut"
            | "CycleAngle"
            | "Cyrillic_A"
            | "Cyrillic_BE"
            | "Cyrillic_CHE"
            | "Cyrillic_CHE_descender"
            | "Cyrillic_CHE_vertstroke"
            | "Cyrillic_DE"
            | "Cyrillic_DZHE"
            | "Cyrillic_E"
            | "Cyrillic_EF"
            | "Cyrillic_EL"
            | "Cyrillic_EM"
            | "Cyrillic_EN"
            | "Cyrillic_EN_descender"
            | "Cyrillic_ER"
            | "Cyrillic_ES"
            | "Cyrillic_GHE"
            | "Cyrillic_GHE_bar"
            | "Cyrillic_HA"
            | "Cyrillic_HARDSIGN"
            | "Cyrillic_HA_descender"
            | "Cyrillic_I"
            | "Cyrillic_IE"
            | "Cyrillic_IO"
            | "Cyrillic_I_macron"
            | "Cyrillic_JE"
            | "Cyrillic_KA"
            | "Cyrillic_KA_descender"
            | "Cyrillic_KA_vertstroke"
            | "Cyrillic_LJE"
            | "Cyrillic_NJE"
            | "Cyrillic_O"
            | "Cyrillic_O_bar"
            | "Cyrillic_PE"
            | "Cyrillic_SCHWA"
            | "Cyrillic_SHA"
            | "Cyrillic_SHCHA"
            | "Cyrillic_SHHA"
            | "Cyrillic_SHORTI"
            | "Cyrillic_SOFTSIGN"
            | "Cyrillic_TE"
            | "Cyrillic_TSE"
            | "Cyrillic_U"
            | "Cyrillic_U_macron"
            | "Cyrillic_U_straight"
            | "Cyrillic_U_straight_bar"
            | "Cyrillic_VE"
            | "Cyrillic_YA"
            | "Cyrillic_YERU"
            | "Cyrillic_YU"
            | "Cyrillic_ZE"
            | "Cyrillic_ZHE"
            | "Cyrillic_ZHE_descender"
            | "Cyrillic_a"
            | "Cyrillic_be"
            | "Cyrillic_che"
            | "Cyrillic_che_descender"
            | "Cyrillic_che_vertstroke"
            | "Cyrillic_de"
            | "Cyrillic_dzhe"
            | "Cyrillic_e"
            | "Cyrillic_ef"
            | "Cyrillic_el"
            | "Cyrillic_em"
            | "Cyrillic_en"
            | "Cyrillic_en_descender"
            | "Cyrillic_er"
            | "Cyrillic_es"
            | "Cyrillic_ghe"
            | "Cyrillic_ghe_bar"
            | "Cyrillic_ha"
            | "Cyrillic_ha_descender"
            | "Cyrillic_hardsign"
            | "Cyrillic_i"
            | "Cyrillic_i_macron"
            | "Cyrillic_ie"
            | "Cyrillic_io"
            | "Cyrillic_je"
            | "Cyrillic_ka"
            | "Cyrillic_ka_descender"
            | "Cyrillic_ka_vertstroke"
            | "Cyrillic_lje"
            | "Cyrillic_nje"
            | "Cyrillic_o"
            | "Cyrillic_o_bar"
            | "Cyrillic_pe"
            | "Cyrillic_schwa"
            | "Cyrillic_sha"
            | "Cyrillic_shcha"
            | "Cyrillic_shha"
            | "Cyrillic_shorti"
            | "Cyrillic_softsign"
            | "Cyrillic_te"
            | "Cyrillic_tse"
            | "Cyrillic_u"
            | "Cyrillic_u_macron"
            | "Cyrillic_u_straight"
            | "Cyrillic_u_straight_bar"
            | "Cyrillic_ve"
            | "Cyrillic_ya"
            | "Cyrillic_yeru"
            | "Cyrillic_yu"
            | "Cyrillic_ze"
            | "Cyrillic_zhe"
            | "Cyrillic_zhe_descender"
            | "DOS"
            | "Dabovedot"
            | "Dcaron"
            | "Delete"
            | "Documents"
            | "DongSign"
            | "Down"
            | "Dstroke"
            | "ENG"
            | "ETH"
            | "EZH"
            | "Eabovedot"
            | "Eacute"
            | "Ebelowdot"
            | "Ecaron"
            | "Ecircumflex"
            | "Ecircumflexacute"
            | "Ecircumflexbelowdot"
            | "Ecircumflexgrave"
            | "Ecircumflexhook"
            | "Ecircumflextilde"
            | "EcuSign"
            | "Ediaeresis"
            | "Egrave"
            | "Ehook"
            | "Eisu_Shift"
            | "Eisu_toggle"
            | "Eject"
            | "Emacron"
            | "End"
            | "Eogonek"
            | "Escape"
            | "Eth"
            | "Etilde"
            | "EuroSign"
            | "Excel"
            | "Execute"
            | "Explorer"
            | "F1"
            | "F10"
            | "F11"
            | "F12"
            | "F13"
            | "F14"
            | "F15"
            | "F16"
            | "F17"
            | "F18"
            | "F19"
            | "F2"
            | "F20"
            | "F21"
            | "F22"
            | "F23"
            | "F24"
            | "F25"
            | "F26"
            | "F27"
            | "F28"
            | "F29"
            | "F3"
            | "F30"
            | "F31"
            | "F32"
            | "F33"
            | "F34"
            | "F35"
            | "F4"
            | "F5"
            | "F6"
            | "F7"
            | "F8"
            | "F9"
            | "FFrancSign"
            | "Fabovedot"
            | "Farsi_0"
            | "Farsi_1"
            | "Farsi_2"
            | "Farsi_3"
            | "Farsi_4"
            | "Farsi_5"
            | "Farsi_6"
            | "Farsi_7"
            | "Farsi_8"
            | "Farsi_9"
            | "Farsi_yeh"
            | "Favorites"
            | "Finance"
            | "Find"
            | "First_Virtual_Screen"
            | "Forward"
            | "FrameBack"
            | "FrameForward"
            | "G"
            | "Gabovedot"
            | "Game"
            | "Gbreve"
            | "Gcaron"
            | "Gcedilla"
            | "Gcircumflex"
            | "Georgian_an"
            | "Georgian_ban"
            | "Georgian_can"
            | "Georgian_char"
            | "Georgian_chin"
            | "Georgian_cil"
            | "Georgian_don"
            | "Georgian_en"
            | "Georgian_fi"
            | "Georgian_gan"
            | "Georgian_ghan"
            | "Georgian_hae"
            | "Georgian_har"
            | "Georgian_he"
            | "Georgian_hie"
            | "Georgian_hoe"
            | "Georgian_in"
            | "Georgian_jhan"
            | "Georgian_jil"
            | "Georgian_kan"
            | "Georgian_khar"
            | "Georgian_las"
            | "Georgian_man"
            | "Georgian_nar"
            | "Georgian_on"
            | "Georgian_par"
            | "Georgian_phar"
            | "Georgian_qar"
            | "Georgian_rae"
            | "Georgian_san"
            | "Georgian_shin"
            | "Georgian_tan"
            | "Georgian_tar"
            | "Georgian_un"
            | "Georgian_vin"
            | "Georgian_we"
            | "Georgian_xan"
            | "Georgian_zen"
            | "Georgian_zhar"
            | "Go"
            | "Greek_ALPHA"
            | "Greek_ALPHAaccent"
            | "Greek_BETA"
            | "Greek_CHI"
            | "Greek_DELTA"
            | "Greek_EPSILON"
            | "Greek_EPSILONaccent"
            | "Greek_ETA"
            | "Greek_ETAaccent"
            | "Greek_GAMMA"
            | "Greek_IOTA"
            | "Greek_IOTAaccent"
            | "Greek_IOTAdiaeresis"
            | "Greek_IOTAdieresis"
            | "Greek_KAPPA"
            | "Greek_LAMBDA"
            | "Greek_LAMDA"
            | "Greek_MU"
            | "Greek_NU"
            | "Greek_OMEGA"
            | "Greek_OMEGAaccent"
            | "Greek_OMICRON"
            | "Greek_OMICRONaccent"
            | "Greek_PHI"
            | "Greek_PI"
            | "Greek_PSI"
            | "Greek_RHO"
            | "Greek_SIGMA"
            | "Greek_TAU"
            | "Greek_THETA"
            | "Greek_UPSILON"
            | "Greek_UPSILONaccent"
            | "Greek_UPSILONdieresis"
            | "Greek_XI"
            | "Greek_ZETA"
            | "Greek_accentdieresis"
            | "Greek_alpha"
            | "Greek_alphaaccent"
            | "Greek_beta"
            | "Greek_chi"
            | "Greek_delta"
            | "Greek_epsilon"
            | "Greek_epsilonaccent"
            | "Greek_eta"
            | "Greek_etaaccent"
            | "Greek_finalsmallsigma"
            | "Greek_gamma"
            | "Greek_horizbar"
            | "Greek_iota"
            | "Greek_iotaaccent"
            | "Greek_iotaaccentdieresis"
            | "Greek_iotadieresis"
            | "Greek_kappa"
            | "Greek_lambda"
            | "Greek_lamda"
            | "Greek_mu"
            | "Greek_nu"
            | "Greek_omega"
            | "Greek_omegaaccent"
            | "Greek_omicron"
            | "Greek_omicronaccent"
            | "Greek_phi"
            | "Greek_pi"
            | "Greek_psi"
            | "Greek_rho"
            | "Greek_sigma"
            | "Greek_switch"
            | "Greek_tau"
            | "Greek_theta"
            | "Greek_upsilon"
            | "Greek_upsilonaccent"
            | "Greek_upsilonaccentdieresis"
            | "Greek_upsilondieresis"
            | "Greek_xi"
            | "Greek_zeta"
            | "Green"
            | "H"
            | "Hangul"
            | "Hangul_A"
            | "Hangul_AE"
            | "Hangul_AraeA"
            | "Hangul_AraeAE"
            | "Hangul_Banja"
            | "Hangul_Cieuc"
            | "Hangul_Codeinput"
            | "Hangul_Dikeud"
            | "Hangul_E"
            | "Hangul_EO"
            | "Hangul_EU"
            | "Hangul_End"
            | "Hangul_Hanja"
            | "Hangul_Hieuh"
            | "Hangul_I"
            | "Hangul_Ieung"
            | "Hangul_J_Cieuc"
            | "Hangul_J_Dikeud"
            | "Hangul_J_Hieuh"
            | "Hangul_J_Ieung"
            | "Hangul_J_Jieuj"
            | "Hangul_J_Khieuq"
            | "Hangul_J_Kiyeog"
            | "Hangul_J_KiyeogSios"
            | "Hangul_J_KkogjiDalrinIeung"
            | "Hangul_J_Mieum"
            | "Hangul_J_Nieun"
            | "Hangul_J_NieunHieuh"
            | "Hangul_J_NieunJieuj"
            | "Hangul_J_PanSios"
            | "Hangul_J_Phieuf"
            | "Hangul_J_Pieub"
            | "Hangul_J_PieubSios"
            | "Hangul_J_Rieul"
            | "Hangul_J_RieulHieuh"
            | "Hangul_J_RieulKiyeog"
            | "Hangul_J_RieulMieum"
            | "Hangul_J_RieulPhieuf"
            | "Hangul_J_RieulPieub"
            | "Hangul_J_RieulSios"
            | "Hangul_J_RieulTieut"
            | "Hangul_J_Sios"
            | "Hangul_J_SsangKiyeog"
            | "Hangul_J_SsangSios"
            | "Hangul_J_Tieut"
            | "Hangul_J_YeorinHieuh"
            | "Hangul_Jamo"
            | "Hangul_Jeonja"
            | "Hangul_Jieuj"
            | "Hangul_Khieuq"
            | "Hangul_Kiyeog"
            | "Hangul_KiyeogSios"
            | "Hangul_KkogjiDalrinIeung"
            | "Hangul_Mieum"
            | "Hangul_MultipleCandidate"
            | "Hangul_Nieun"
            | "Hangul_NieunHieuh"
            | "Hangul_NieunJieuj"
            | "Hangul_O"
            | "Hangul_OE"
            | "Hangul_PanSios"
            | "Hangul_Phieuf"
            | "Hangul_Pieub"
            | "Hangul_PieubSios"
            | "Hangul_PostHanja"
            | "Hangul_PreHanja"
            | "Hangul_PreviousCandidate"
            | "Hangul_Rieul"
            | "Hangul_RieulHieuh"
            | "Hangul_RieulKiyeog"
            | "Hangul_RieulMieum"
            | "Hangul_RieulPhieuf"
            | "Hangul_RieulPieub"
            | "Hangul_RieulSios"
            | "Hangul_RieulTieut"
            | "Hangul_RieulYeorinHieuh"
            | "Hangul_Romaja"
            | "Hangul_SingleCandidate"
            | "Hangul_Sios"
            | "Hangul_Special"
            | "Hangul_SsangDikeud"
            | "Hangul_SsangJieuj"
            | "Hangul_SsangKiyeog"
            | "Hangul_SsangPieub"
            | "Hangul_SsangSios"
            | "Hangul_Start"
            | "Hangul_SunkyeongeumMieum"
            | "Hangul_SunkyeongeumPhieuf"
            | "Hangul_SunkyeongeumPieub"
            | "Hangul_Tieut"
            | "Hangul_U"
            | "Hangul_WA"
            | "Hangul_WAE"
            | "Hangul_WE"
            | "Hangul_WEO"
            | "Hangul_WI"
            | "Hangul_YA"
            | "Hangul_YAE"
            | "Hangul_YE"
            | "Hangul_YEO"
            | "Hangul_YI"
            | "Hangul_YO"
            | "Hangul_YU"
            | "Hangul_YeorinHieuh"
            | "Hangul_switch"
            | "Hankaku"
            | "Hcircumflex"
            | "Hebrew_switch"
            | "Help"
            | "Henkan"
            | "Henkan_Mode"
            | "Hibernate"
            | "Hiragana"
            | "Hiragana_Katakana"
            | "History"
            | "Home"
            | "HomePage"
            | "HotLinks"
            | "Hstroke"
            | "Hyper_L"
            | "Hyper_R"
            | "I"
            | "ISO_Center_Object"
            | "ISO_Continuous_Underline"
            | "ISO_Discontinuous_Underline"
            | "ISO_Emphasize"
            | "ISO_Enter"
            | "ISO_Fast_Cursor_Down"
            | "ISO_Fast_Cursor_Left"
            | "ISO_Fast_Cursor_Right"
            | "ISO_Fast_Cursor_Up"
            | "ISO_First_Group"
            | "ISO_First_Group_Lock"
            | "ISO_Group_Latch"
            | "ISO_Group_Lock"
            | "ISO_Group_Shift"
            | "ISO_Last_Group"
            | "ISO_Last_Group_Lock"
            | "ISO_Left_Tab"
            | "ISO_Level2_Latch"
            | "ISO_Level3_Latch"
            | "ISO_Level3_Lock"
            | "ISO_Level3_Shift"
            | "ISO_Level5_Latch"
            | "ISO_Level5_Lock"
            | "ISO_Level5_Shift"
            | "ISO_Lock"
            | "ISO_Move_Line_Down"
            | "ISO_Move_Line_Up"
            | "ISO_Next_Group"
            | "ISO_Next_Group_Lock"
            | "ISO_Partial_Line_Down"
            | "ISO_Partial_Line_Up"
            | "ISO_Partial_Space_Left"
            | "ISO_Partial_Space_Right"
            | "ISO_Prev_Group"
            | "ISO_Prev_Group_Lock"
            | "ISO_Release_Both_Margins"
            | "ISO_Release_Margin_Left"
            | "ISO_Release_Margin_Right"
            | "ISO_Set_Margin_Left"
            | "ISO_Set_Margin_Right"
            | "Iabovedot"
            | "Iacute"
            | "Ibelowdot"
            | "Ibreve"
            | "Icircumflex"
            | "Idiaeresis"
            | "Igrave"
            | "Ihook"
            | "Imacron"
            | "Insert"
            | "Iogonek"
            | "Itilde"
            | "J"
            | "Jcircumflex"
            | "K"
            | "KP_0"
            | "KP_1"
            | "KP_2"
            | "KP_3"
            | "KP_4"
            | "KP_5"
            | "KP_6"
            | "KP_7"
            | "KP_8"
            | "KP_9"
            | "KP_Add"
            | "KP_Begin"
            | "KP_Decimal"
            | "KP_Delete"
            | "KP_Divide"
            | "KP_Down"
            | "KP_End"
            | "KP_Enter"
            | "KP_Equal"
            | "KP_F1"
            | "KP_F2"
            | "KP_F3"
            | "KP_F4"
            | "KP_Home"
            | "KP_Insert"
            | "KP_Left"
            | "KP_Multiply"
            | "KP_Next"
            | "KP_Page_Down"
            | "KP_Page_Up"
            | "KP_Prior"
            | "KP_Right"
            | "KP_Separator"
            | "KP_Space"
            | "KP_Subtract"
            | "KP_Tab"
            | "KP_Up"
            | "Kana_Lock"
            | "Kana_Shift"
            | "Kanji"
            | "Kanji_Bangou"
            | "Katakana"
            | "KbdBrightnessDown"
            | "KbdBrightnessUp"
            | "KbdLightOnOff"
            | "Kcedilla"
            | "Keyboard"
            | "Korean_Won"
            | "L1"
            | "L10"
            | "L2"
            | "L3"
            | "L4"
            | "L5"
            | "L6"
            | "L7"
            | "L8"
            | "L9"
            | "Lacute"
            | "Last_Virtual_Screen"
            | "Launch0"
            | "Launch1"
            | "Launch2"
            | "Launch3"
            | "Launch4"
            | "Launch5"
            | "Launch6"
            | "Launch7"
            | "Launch8"
            | "Launch9"
            | "LaunchA"
            | "LaunchB"
            | "LaunchC"
            | "LaunchD"
            | "LaunchE"
            | "LaunchF"
            | "Lbelowdot"
            | "Lcaron"
            | "Lcedilla"
            | "Left"
            | "LightBulb"
            | "Linefeed"
            | "LiraSign"
            | "LogGrabInfo"
            | "LogOff"
            | "LogWindowTree"
            | "Lstroke"
            | "Mabovedot"
            | "Macedonia_DSE"
            | "Macedonia_GJE"
            | "Macedonia_KJE"
            | "Macedonia_dse"
            | "Macedonia_gje"
            | "Macedonia_kje"
            | "Mae_Koho"
            | "Mail"
            | "MailForward"
            | "Market"
            | "Massyo"
            | "Meeting"
            | "Memo"
            | "Menu"
            | "MenuKB"
            | "MenuPB"
            | "Messenger"
            | "Meta_L"
            | "Meta_R"
            | "MillSign"
            | "ModeLock"
            | "Mode_switch"
            | "MonBrightnessDown"
            | "MonBrightnessUp"
            | "MouseKeys_Accel_Enable"
            | "MouseKeys_Enable"
            | "Muhenkan"
            | "Multi_key"
            | "MultipleCandidate"
            | "Music"
            | "MyComputer"
            | "MySites"
            | "Nacute"
            | "NairaSign"
            | "Ncaron"
            | "Ncedilla"
            | "New"
            | "NewSheqelSign"
            | "News"
            | "Next"
            | "Next_VMode"
            | "Next_Virtual_Screen"
            | "Ntilde"
            | "Num_Lock"
            | "OE"
            | "Oacute"
            | "Obarred"
            | "Obelowdot"
            | "Ocaron"
            | "Ocircumflex"
            | "Ocircumflexacute"
            | "Ocircumflexbelowdot"
            | "Ocircumflexgrave"
            | "Ocircumflexhook"
            | "Ocircumflextilde"
            | "Odiaeresis"
            | "Odoubleacute"
            | "OfficeHome"
            | "Ograve"
            | "Ohook"
            | "Ohorn"
            | "Ohornacute"
            | "Ohornbelowdot"
            | "Ohorngrave"
            | "Ohornhook"
            | "Ohorntilde"
            | "Omacron"
            | "Ooblique"
            | "Open"
            | "OpenURL"
            | "Option"
            | "Oslash"
            | "Otilde"
            | "Overlay1_Enable"
            | "Overlay2_Enable"
            | "Pabovedot"
            | "Page_Down"
            | "Page_Up"
            | "Paste"
            | "Pause"
            | "PesetaSign"
            | "Phone"
            | "Pictures"
            | "Pointer_Accelerate"
            | "Pointer_Button1"
            | "Pointer_Button2"
            | "Pointer_Button3"
            | "Pointer_Button4"
            | "Pointer_Button5"
            | "Pointer_Button_Dflt"
            | "Pointer_DblClick1"
            | "Pointer_DblClick2"
            | "Pointer_DblClick3"
            | "Pointer_DblClick4"
            | "Pointer_DblClick5"
            | "Pointer_DblClick_Dflt"
            | "Pointer_DfltBtnNext"
            | "Pointer_DfltBtnPrev"
            | "Pointer_Down"
            | "Pointer_DownLeft"
            | "Pointer_DownRight"
            | "Pointer_Drag1"
            | "Pointer_Drag2"
            | "Pointer_Drag3"
            | "Pointer_Drag4"
            | "Pointer_Drag5"
            | "Pointer_Drag_Dflt"
            | "Pointer_EnableKeys"
            | "Pointer_Left"
            | "Pointer_Right"
            | "Pointer_Up"
            | "Pointer_UpLeft"
            | "Pointer_UpRight"
            | "PowerDown"
            | "PowerOff"
            | "Prev_VMode"
            | "Prev_Virtual_Screen"
            | "PreviousCandidate"
            | "Print"
            | "Prior"
            | "Q"
            | "R1"
            | "R10"
            | "R11"
            | "R12"
            | "R13"
            | "R14"
            | "R15"
            | "R2"
            | "R3"
            | "R4"
            | "R5"
            | "R6"
            | "R7"
            | "R8"
            | "R9"
            | "RFKill"
            | "Racute"
            | "Rcaron"
            | "Rcedilla"
            | "Red"
            | "Redo"
            | "Refresh"
            | "Reload"
            | "RepeatKeys_Enable"
            | "Reply"
            | "Return"
            | "Right"
            | "RockerDown"
            | "RockerEnter"
            | "RockerUp"
            | "Romaji"
            | "RotateWindows"
            | "RotationKB"
            | "RotationPB"
            | "RupeeSign"
            | "SCHWA"
            | "Sabovedot"
            | "Sacute"
            | "Save"
            | "Scaron"
            | "Scedilla"
            | "Scircumflex"
            | "ScreenSaver"
            | "ScrollClick"
            | "ScrollDown"
            | "ScrollUp"
            | "Scroll_Lock"
            | "Search"
            | "Select"
            | "SelectButton"
            | "Send"
            | "Serbian_DJE"
            | "Serbian_DZE"
            | "Serbian_JE"
            | "Serbian_LJE"
            | "Serbian_NJE"
            | "Serbian_TSHE"
            | "Serbian_dje"
            | "Serbian_dze"
            | "Serbian_je"
            | "Serbian_lje"
            | "Serbian_nje"
            | "Serbian_tshe"
            | "Shift_L"
            | "Shift_Lock"
            | "Shift_R"
            | "Shop"
            | "SingleCandidate"
            | "Sinh_a"
            | "Sinh_aa"
            | "Sinh_aa2"
            | "Sinh_ae"
            | "Sinh_ae2"
            | "Sinh_aee"
            | "Sinh_aee2"
            | "Sinh_ai"
            | "Sinh_ai2"
            | "Sinh_al"
            | "Sinh_au"
            | "Sinh_au2"
            | "Sinh_ba"
            | "Sinh_bha"
            | "Sinh_ca"
            | "Sinh_cha"
            | "Sinh_dda"
            | "Sinh_ddha"
            | "Sinh_dha"
            | "Sinh_dhha"
            | "Sinh_e"
            | "Sinh_e2"
            | "Sinh_ee"
            | "Sinh_ee2"
            | "Sinh_fa"
            | "Sinh_ga"
            | "Sinh_gha"
            | "Sinh_h2"
            | "Sinh_ha"
            | "Sinh_i"
            | "Sinh_i2"
            | "Sinh_ii"
            | "Sinh_ii2"
            | "Sinh_ja"
            | "Sinh_jha"
            | "Sinh_jnya"
            | "Sinh_ka"
            | "Sinh_kha"
            | "Sinh_kunddaliya"
            | "Sinh_la"
            | "Sinh_lla"
            | "Sinh_lu"
            | "Sinh_lu2"
            | "Sinh_luu"
            | "Sinh_luu2"
            | "Sinh_ma"
            | "Sinh_mba"
            | "Sinh_na"
            | "Sinh_ndda"
            | "Sinh_ndha"
            | "Sinh_ng"
            | "Sinh_ng2"
            | "Sinh_nga"
            | "Sinh_nja"
            | "Sinh_nna"
            | "Sinh_nya"
            | "Sinh_o"
            | "Sinh_o2"
            | "Sinh_oo"
            | "Sinh_oo2"
            | "Sinh_pa"
            | "Sinh_pha"
            | "Sinh_ra"
            | "Sinh_ri"
            | "Sinh_rii"
            | "Sinh_ru2"
            | "Sinh_ruu2"
            | "Sinh_sa"
            | "Sinh_sha"
            | "Sinh_ssha"
            | "Sinh_tha"
            | "Sinh_thha"
            | "Sinh_tta"
            | "Sinh_ttha"
            | "Sinh_u"
            | "Sinh_u2"
            | "Sinh_uu"
            | "Sinh_uu2"
            | "Sinh_va"
            | "Sinh_ya"
            | "Sleep"
            | "SlowKeys_Enable"
            | "Spell"
            | "SplitScreen"
            | "Standby"
            | "Start"
            | "StickyKeys_Enable"
            | "Stop"
            | "Subtitle"
            | "Super_L"
            | "Super_R"
            | "Support"
            | "Suspend"
            | "Switch_VT_1"
            | "Switch_VT_10"
            | "Switch_VT_11"
            | "Switch_VT_12"
            | "Switch_VT_2"
            | "Switch_VT_3"
            | "Switch_VT_4"
            | "Switch_VT_5"
            | "Switch_VT_6"
            | "Switch_VT_7"
            | "Switch_VT_8"
            | "Switch_VT_9"
            | "Sys_Req"
            | "THORN"
            | "Tab"
            | "Tabovedot"
            | "TaskPane"
            | "Tcaron"
            | "Tcedilla"
            | "Terminal"
            | "Terminate_Server"
            | "Thai_baht"
            | "Thai_bobaimai"
            | "Thai_chochan"
            | "Thai_chochang"
            | "Thai_choching"
            | "Thai_chochoe"
            | "Thai_dochada"
            | "Thai_dodek"
            | "Thai_fofa"
            | "Thai_fofan"
            | "Thai_hohip"
            | "Thai_honokhuk"
            | "Thai_khokhai"
            | "Thai_khokhon"
            | "Thai_khokhuat"
            | "Thai_khokhwai"
            | "Thai_khorakhang"
            | "Thai_kokai"
            | "Thai_lakkhangyao"
            | "Thai_lekchet"
            | "Thai_lekha"
            | "Thai_lekhok"
            | "Thai_lekkao"
            | "Thai_leknung"
            | "Thai_lekpaet"
            | "Thai_leksam"
            | "Thai_leksi"
            | "Thai_leksong"
            | "Thai_leksun"
            | "Thai_lochula"
            | "Thai_loling"
            | "Thai_lu"
            | "Thai_maichattawa"
            | "Thai_maiek"
            | "Thai_maihanakat"
            | "Thai_maihanakat_maitho"
            | "Thai_maitaikhu"
            | "Thai_maitho"
            | "Thai_maitri"
            | "Thai_maiyamok"
            | "Thai_moma"
            | "Thai_ngongu"
            | "Thai_nikhahit"
            | "Thai_nonen"
            | "Thai_nonu"
            | "Thai_oang"
            | "Thai_paiyannoi"
            | "Thai_phinthu"
            | "Thai_phophan"
            | "Thai_phophung"
            | "Thai_phosamphao"
            | "Thai_popla"
            | "Thai_rorua"
            | "Thai_ru"
            | "Thai_saraa"
            | "Thai_saraaa"
            | "Thai_saraae"
            | "Thai_saraaimaimalai"
            | "Thai_saraaimaimuan"
            | "Thai_saraam"
            | "Thai_sarae"
            | "Thai_sarai"
            | "Thai_saraii"
            | "Thai_sarao"
            | "Thai_sarau"
            | "Thai_saraue"
            | "Thai_sarauee"
            | "Thai_sarauu"
            | "Thai_sorusi"
            | "Thai_sosala"
            | "Thai_soso"
            | "Thai_sosua"
            | "Thai_thanthakhat"
            | "Thai_thonangmontho"
            | "Thai_thophuthao"
            | "Thai_thothahan"
            | "Thai_thothan"
            | "Thai_thothong"
            | "Thai_thothung"
            | "Thai_topatak"
            | "Thai_totao"
            | "Thai_wowaen"
            | "Thai_yoyak"
            | "Thai_yoying"
            | "Thorn"
            | "Time"
            | "ToDoList"
            | "Tools"
            | "TopMenu"
            | "TouchpadOff"
            | "TouchpadOn"
            | "TouchpadToggle"
            | "Touroku"
            | "Travel"
            | "Tslash"
            | "U"
            | "UWB"
            | "Uacute"
            | "Ubelowdot"
            | "Ubreve"
            | "Ucircumflex"
            | "Udiaeresis"
            | "Udoubleacute"
            | "Ugrave"
            | "Uhook"
            | "Uhorn"
            | "Uhornacute"
            | "Uhornbelowdot"
            | "Uhorngrave"
            | "Uhornhook"
            | "Uhorntilde"
            | "Ukrainian_GHE_WITH_UPTURN"
            | "Ukrainian_I"
            | "Ukrainian_IE"
            | "Ukrainian_YI"
            | "Ukrainian_ghe_with_upturn"
            | "Ukrainian_i"
            | "Ukrainian_ie"
            | "Ukrainian_yi"
            | "Ukranian_I"
            | "Ukranian_JE"
            | "Ukranian_YI"
            | "Ukranian_i"
            | "Ukranian_je"
            | "Ukranian_yi"
            | "Umacron"
            | "Undo"
            | "Ungrab"
            | "Uogonek"
            | "Up"
            | "Uring"
            | "User1KB"
            | "User2KB"
            | "UserPB"
            | "Utilde"
            | "V"
            | "VendorHome"
            | "Video"
            | "View"
            | "VoidSymbol"
            | "WLAN"
            | "WWAN"
            | "WWW"
            | "Wacute"
            | "WakeUp"
            | "Wcircumflex"
            | "Wdiaeresis"
            | "WebCam"
            | "Wgrave"
            | "WheelButton"
            | "WindowClear"
            | "WonSign"
            | "Word"
            | "X"
            | "Xabovedot"
            | "Xfer"
            | "Y"
            | "Yacute"
            | "Ybelowdot"
            | "Ycircumflex"
            | "Ydiaeresis"
            | "Yellow"
            | "Ygrave"
            | "Yhook"
            | "Ytilde"
            | "Z"
            | "Zabovedot"
            | "Zacute"
            | "Zcaron"
            | "Zen_Koho"
            | "Zenkaku"
            | "Zenkaku_Hankaku"
            | "ZoomIn"
            | "ZoomOut"
            | "Zstroke"
            | "aacute"
            | "abelowdot"
            | "abovedot"
            | "abreve"
            | "abreveacute"
            | "abrevebelowdot"
            | "abrevegrave"
            | "abrevehook"
            | "abrevetilde"
            | "acircumflex"
            | "acircumflexacute"
            | "acircumflexbelowdot"
            | "acircumflexgrave"
            | "acircumflexhook"
            | "acircumflextilde"
            | "acute"
            | "adiaeresis"
            | "ae"
            | "agrave"
            | "ahook"
            | "amacron"
            | "ampersand"
            | "aogonek"
            | "apostrophe"
            | "approxeq"
            | "approximate"
            | "aring"
            | "asciicircum"
            | "asciitilde"
            | "asterisk"
            | "atilde"
            | "babovedot"
            | "backslash"
            | "ballotcross"
            | "bar"
            | "because"
            | "blank"
            | "botintegral"
            | "botleftparens"
            | "botleftsqbracket"
            | "botleftsummation"
            | "botrightparens"
            | "botrightsqbracket"
            | "botrightsummation"
            | "bott"
            | "botvertsummationconnector"
            | "braceleft"
            | "braceright"
            | "bracketleft"
            | "bracketright"
            | "braille_blank"
            | "braille_dot_1"
            | "braille_dot_10"
            | "braille_dot_2"
            | "braille_dot_3"
            | "braille_dot_4"
            | "braille_dot_5"
            | "braille_dot_6"
            | "braille_dot_7"
            | "braille_dot_8"
            | "braille_dot_9"
            | "braille_dots_1"
            | "braille_dots_12"
            | "braille_dots_123"
            | "braille_dots_1234"
            | "braille_dots_12345"
            | "braille_dots_123456"
            | "braille_dots_1234567"
            | "braille_dots_12345678"
            | "braille_dots_1234568"
            | "braille_dots_123457"
            | "braille_dots_1234578"
            | "braille_dots_123458"
            | "braille_dots_12346"
            | "braille_dots_123467"
            | "braille_dots_1234678"
            | "braille_dots_123468"
            | "braille_dots_12347"
            | "braille_dots_123478"
            | "braille_dots_12348"
            | "braille_dots_1235"
            | "braille_dots_12356"
            | "braille_dots_123567"
            | "braille_dots_1235678"
            | "braille_dots_123568"
            | "braille_dots_12357"
            | "braille_dots_123578"
            | "braille_dots_12358"
            | "braille_dots_1236"
            | "braille_dots_12367"
            | "braille_dots_123678"
            | "braille_dots_12368"
            | "braille_dots_1237"
            | "braille_dots_12378"
            | "braille_dots_1238"
            | "braille_dots_124"
            | "braille_dots_1245"
            | "braille_dots_12456"
            | "braille_dots_124567"
            | "braille_dots_1245678"
            | "braille_dots_124568"
            | "braille_dots_12457"
            | "braille_dots_124578"
            | "braille_dots_12458"
            | "braille_dots_1246"
            | "braille_dots_12467"
            | "braille_dots_124678"
            | "braille_dots_12468"
            | "braille_dots_1247"
            | "braille_dots_12478"
            | "braille_dots_1248"
            | "braille_dots_125"
            | "braille_dots_1256"
            | "braille_dots_12567"
            | "braille_dots_125678"
            | "braille_dots_12568"
            | "braille_dots_1257"
            | "braille_dots_12578"
            | "braille_dots_1258"
            | "braille_dots_126"
            | "braille_dots_1267"
            | "braille_dots_12678"
            | "braille_dots_1268"
            | "braille_dots_127"
            | "braille_dots_1278"
            | "braille_dots_128"
            | "braille_dots_13"
            | "braille_dots_134"
            | "braille_dots_1345"
            | "braille_dots_13456"
            | "braille_dots_134567"
            | "braille_dots_1345678"
            | "braille_dots_134568"
            | "braille_dots_13457"
            | "braille_dots_134578"
            | "braille_dots_13458"
            | "braille_dots_1346"
            | "braille_dots_13467"
            | "braille_dots_134678"
            | "braille_dots_13468"
            | "braille_dots_1347"
            | "braille_dots_13478"
            | "braille_dots_1348"
            | "braille_dots_135"
            | "braille_dots_1356"
            | "braille_dots_13567"
            | "braille_dots_135678"
            | "braille_dots_13568"
            | "braille_dots_1357"
            | "braille_dots_13578"
            | "braille_dots_1358"
            | "braille_dots_136"
            | "braille_dots_1367"
            | "braille_dots_13678"
            | "braille_dots_1368"
            | "braille_dots_137"
            | "braille_dots_1378"
            | "braille_dots_138"
            | "braille_dots_14"
            | "braille_dots_145"
            | "braille_dots_1456"
            | "braille_dots_14567"
            | "braille_dots_145678"
            | "braille_dots_14568"
            | "braille_dots_1457"
            | "braille_dots_14578"
            | "braille_dots_1458"
            | "braille_dots_146"
            | "braille_dots_1467"
            | "braille_dots_14678"
            | "braille_dots_1468"
            | "braille_dots_147"
            | "braille_dots_1478"
            | "braille_dots_148"
            | "braille_dots_15"
            | "braille_dots_156"
            | "braille_dots_1567"
            | "braille_dots_15678"
            | "braille_dots_1568"
            | "braille_dots_157"
            | "braille_dots_1578"
            | "braille_dots_158"
            | "braille_dots_16"
            | "braille_dots_167"
            | "braille_dots_1678"
            | "braille_dots_168"
            | "braille_dots_17"
            | "braille_dots_178"
            | "braille_dots_18"
            | "braille_dots_2"
            | "braille_dots_23"
            | "braille_dots_234"
            | "braille_dots_2345"
            | "braille_dots_23456"
            | "braille_dots_234567"
            | "braille_dots_2345678"
            | "braille_dots_234568"
            | "braille_dots_23457"
            | "braille_dots_234578"
            | "braille_dots_23458"
            | "braille_dots_2346"
            | "braille_dots_23467"
            | "braille_dots_234678"
            | "braille_dots_23468"
            | "braille_dots_2347"
            | "braille_dots_23478"
            | "braille_dots_2348"
            | "braille_dots_235"
            | "braille_dots_2356"
            | "braille_dots_23567"
            | "braille_dots_235678"
            | "braille_dots_23568"
            | "braille_dots_2357"
            | "braille_dots_23578"
            | "braille_dots_2358"
            | "braille_dots_236"
            | "braille_dots_2367"
            | "braille_dots_23678"
            | "braille_dots_2368"
            | "braille_dots_237"
            | "braille_dots_2378"
            | "braille_dots_238"
            | "braille_dots_24"
            | "braille_dots_245"
            | "braille_dots_2456"
            | "braille_dots_24567"
            | "braille_dots_245678"
            | "braille_dots_24568"
            | "braille_dots_2457"
            | "braille_dots_24578"
            | "braille_dots_2458"
            | "braille_dots_246"
            | "braille_dots_2467"
            | "braille_dots_24678"
            | "braille_dots_2468"
            | "braille_dots_247"
            | "braille_dots_2478"
            | "braille_dots_248"
            | "braille_dots_25"
            | "braille_dots_256"
            | "braille_dots_2567"
            | "braille_dots_25678"
            | "braille_dots_2568"
            | "braille_dots_257"
            | "braille_dots_2578"
            | "braille_dots_258"
            | "braille_dots_26"
            | "braille_dots_267"
            | "braille_dots_2678"
            | "braille_dots_268"
            | "braille_dots_27"
            | "braille_dots_278"
            | "braille_dots_28"
            | "braille_dots_3"
            | "braille_dots_34"
            | "braille_dots_345"
            | "braille_dots_3456"
            | "braille_dots_34567"
            | "braille_dots_345678"
            | "braille_dots_34568"
            | "braille_dots_3457"
            | "braille_dots_34578"
            | "braille_dots_3458"
            | "braille_dots_346"
            | "braille_dots_3467"
            | "braille_dots_34678"
            | "braille_dots_3468"
            | "braille_dots_347"
            | "braille_dots_3478"
            | "braille_dots_348"
            | "braille_dots_35"
            | "braille_dots_356"
            | "braille_dots_3567"
            | "braille_dots_35678"
            | "braille_dots_3568"
            | "braille_dots_357"
            | "braille_dots_3578"
            | "braille_dots_358"
            | "braille_dots_36"
            | "braille_dots_367"
            | "braille_dots_3678"
            | "braille_dots_368"
            | "braille_dots_37"
            | "braille_dots_378"
            | "braille_dots_38"
            | "braille_dots_4"
            | "braille_dots_45"
            | "braille_dots_456"
            | "braille_dots_4567"
            | "braille_dots_45678"
            | "braille_dots_4568"
            | "braille_dots_457"
            | "braille_dots_4578"
            | "braille_dots_458"
            | "braille_dots_46"
            | "braille_dots_467"
            | "braille_dots_4678"
            | "braille_dots_468"
            | "braille_dots_47"
            | "braille_dots_478"
            | "braille_dots_48"
            | "braille_dots_5"
            | "braille_dots_56"
            | "braille_dots_567"
            | "braille_dots_5678"
            | "braille_dots_568"
            | "braille_dots_57"
            | "braille_dots_578"
            | "braille_dots_58"
            | "braille_dots_6"
            | "braille_dots_67"
            | "braille_dots_678"
            | "braille_dots_68"
            | "braille_dots_7"
            | "braille_dots_78"
            | "braille_dots_8"
            | "breve"
            | "brokenbar"
            | "c_h"
            | "cabovedot"
            | "cacute"
            | "careof"
            | "caret"
            | "caron"
            | "ccaron"
            | "ccedilla"
            | "ccircumflex"
            | "cedilla"
            | "cent"
            | "ch"
            | "checkerboard"
            | "checkmark"
            | "circle"
            | "club"
            | "colon"
            | "comma"
            | "containsas"
            | "copyright"
            | "cr"
            | "crossinglines"
            | "cuberoot"
            | "currency"
            | "dabovedot"
            | "dagger"
            | "dcaron"
            | "dead_A"
            | "dead_E"
            | "dead_I"
            | "dead_O"
            | "dead_U"
            | "dead_a"
            | "dead_abovecomma"
            | "dead_abovedot"
            | "dead_abovereversedcomma"
            | "dead_abovering"
            | "dead_aboveverticalline"
            | "dead_acute"
            | "dead_belowbreve"
            | "dead_belowcircumflex"
            | "dead_belowcomma"
            | "dead_belowdiaeresis"
            | "dead_belowdot"
            | "dead_belowmacron"
            | "dead_belowring"
            | "dead_belowtilde"
            | "dead_belowverticalline"
            | "dead_breve"
            | "dead_capital_schwa"
            | "dead_caron"
            | "dead_cedilla"
            | "dead_circumflex"
            | "dead_currency"
            | "dead_dasia"
            | "dead_diaeresis"
            | "dead_doubleacute"
            | "dead_doublegrave"
            | "dead_e"
            | "dead_grave"
            | "dead_greek"
            | "dead_hook"
            | "dead_horn"
            | "dead_i"
            | "dead_invertedbreve"
            | "dead_iota"
            | "dead_longsolidusoverlay"
            | "dead_lowline"
            | "dead_macron"
            | "dead_o"
            | "dead_ogonek"
            | "dead_perispomeni"
            | "dead_psili"
            | "dead_semivoiced_sound"
            | "dead_small_schwa"
            | "dead_stroke"
            | "dead_tilde"
            | "dead_u"
            | "dead_voiced_sound"
            | "decimalpoint"
            | "degree"
            | "diaeresis"
            | "diamond"
            | "digitspace"
            | "dintegral"
            | "division"
            | "dollar"
            | "doubbaselinedot"
            | "doubleacute"
            | "doubledagger"
            | "doublelowquotemark"
            | "downarrow"
            | "downcaret"
            | "downshoe"
            | "downstile"
            | "downtack"
            | "dstroke"
            | "eabovedot"
            | "eacute"
            | "ebelowdot"
            | "ecaron"
            | "ecircumflex"
            | "ecircumflexacute"
            | "ecircumflexbelowdot"
            | "ecircumflexgrave"
            | "ecircumflexhook"
            | "ecircumflextilde"
            | "ediaeresis"
            | "egrave"
            | "ehook"
            | "eightsubscript"
            | "eightsuperior"
            | "elementof"
            | "ellipsis"
            | "em3space"
            | "em4space"
            | "emacron"
            | "emdash"
            | "emfilledcircle"
            | "emfilledrect"
            | "emopencircle"
            | "emopenrectangle"
            | "emptyset"
            | "emspace"
            | "endash"
            | "enfilledcircbullet"
            | "enfilledsqbullet"
            | "eng"
            | "enopencircbullet"
            | "enopensquarebullet"
            | "enspace"
            | "eogonek"
            | "equal"
            | "eth"
            | "etilde"
            | "exclam"
            | "exclamdown"
            | "ezh"
            | "fabovedot"
            | "femalesymbol"
            | "ff"
            | "figdash"
            | "filledlefttribullet"
            | "filledrectbullet"
            | "filledrighttribullet"
            | "filledtribulletdown"
            | "filledtribulletup"
            | "fiveeighths"
            | "fivesixths"
            | "fivesubscript"
            | "fivesuperior"
            | "fourfifths"
            | "foursubscript"
            | "foursuperior"
            | "fourthroot"
            | "gabovedot"
            | "gbreve"
            | "gcaron"
            | "gcedilla"
            | "gcircumflex"
            | "grave"
            | "greater"
            | "greaterthanequal"
            | "guillemotleft"
            | "guillemotright"
            | "hairspace"
            | "hcircumflex"
            | "heart"
            | "hebrew_aleph"
            | "hebrew_ayin"
            | "hebrew_bet"
            | "hebrew_beth"
            | "hebrew_chet"
            | "hebrew_dalet"
            | "hebrew_daleth"
            | "hebrew_doublelowline"
            | "hebrew_finalkaph"
            | "hebrew_finalmem"
            | "hebrew_finalnun"
            | "hebrew_finalpe"
            | "hebrew_finalzade"
            | "hebrew_finalzadi"
            | "hebrew_gimel"
            | "hebrew_gimmel"
            | "hebrew_he"
            | "hebrew_het"
            | "hebrew_kaph"
            | "hebrew_kuf"
            | "hebrew_lamed"
            | "hebrew_mem"
            | "hebrew_nun"
            | "hebrew_pe"
            | "hebrew_qoph"
            | "hebrew_resh"
            | "hebrew_samech"
            | "hebrew_samekh"
            | "hebrew_shin"
            | "hebrew_taf"
            | "hebrew_taw"
            | "hebrew_tet"
            | "hebrew_teth"
            | "hebrew_waw"
            | "hebrew_yod"
            | "hebrew_zade"
            | "hebrew_zadi"
            | "hebrew_zain"
            | "hebrew_zayin"
            | "hexagram"
            | "horizconnector"
            | "horizlinescan1"
            | "horizlinescan3"
            | "horizlinescan5"
            | "horizlinescan7"
            | "horizlinescan9"
            | "hstroke"
            | "ht"
            | "hyphen"
            | "iTouch"
            | "iacute"
            | "ibelowdot"
            | "ibreve"
            | "icircumflex"
            | "identical"
            | "idiaeresis"
            | "idotless"
            | "ifonlyif"
            | "igrave"
            | "ihook"
            | "imacron"
            | "implies"
            | "includedin"
            | "infinity"
            | "integral"
            | "intersection"
            | "iogonek"
            | "itilde"
            | "j"
            | "jcircumflex"
            | "jot"
            | "k"
            | "kana_A"
            | "kana_CHI"
            | "kana_E"
            | "kana_FU"
            | "kana_HA"
            | "kana_HE"
            | "kana_HI"
            | "kana_HO"
            | "kana_HU"
            | "kana_I"
            | "kana_KA"
            | "kana_KE"
            | "kana_KI"
            | "kana_KO"
            | "kana_KU"
            | "kana_MA"
            | "kana_ME"
            | "kana_MI"
            | "kana_MO"
            | "kana_MU"
            | "kana_N"
            | "kana_NA"
            | "kana_NE"
            | "kana_NI"
            | "kana_NO"
            | "kana_NU"
            | "kana_O"
            | "kana_RA"
            | "kana_RE"
            | "kana_RI"
            | "kana_RO"
            | "kana_RU"
            | "kana_SA"
            | "kana_SE"
            | "kana_SHI"
            | "kana_SO"
            | "kana_SU"
            | "kana_TA"
            | "kana_TE"
            | "kana_TI"
            | "kana_TO"
            | "kana_TSU"
            | "kana_TU"
            | "kana_U"
            | "kana_WA"
            | "kana_WO"
            | "kana_YA"
            | "kana_YO"
            | "kana_YU"
            | "kana_a"
            | "kana_closingbracket"
            | "kana_comma"
            | "kana_conjunctive"
            | "kana_e"
            | "kana_fullstop"
            | "kana_i"
            | "kana_middledot"
            | "kana_o"
            | "kana_openingbracket"
            | "kana_switch"
            | "kana_tsu"
            | "kana_tu"
            | "kana_u"
            | "kana_ya"
            | "kana_yo"
            | "kana_yu"
            | "kappa"
            | "kcedilla"
            | "kra"
            | "lacute"
            | "latincross"
            | "lbelowdot"
            | "lcaron"
            | "lcedilla"
            | "leftanglebracket"
            | "leftarrow"
            | "leftcaret"
            | "leftdoublequotemark"
            | "leftmiddlecurlybrace"
            | "leftopentriangle"
            | "leftpointer"
            | "leftradical"
            | "leftshoe"
            | "leftsinglequotemark"
            | "leftt"
            | "lefttack"
            | "less"
            | "lessthanequal"
            | "lf"
            | "logicaland"
            | "logicalor"
            | "lowleftcorner"
            | "lowrightcorner"
            | "lstroke"
            | "mabovedot"
            | "macron"
            | "malesymbol"
            | "maltesecross"
            | "marker"
            | "masculine"
            | "minus"
            | "minutes"
            | "mu"
            | "multiply"
            | "musicalflat"
            | "musicalsharp"
            | "nabla"
            | "nacute"
            | "ncaron"
            | "ncedilla"
            | "ninesubscript"
            | "ninesuperior"
            | "nl"
            | "nobreakspace"
            | "notapproxeq"
            | "notelementof"
            | "notequal"
            | "notidentical"
            | "notsign"
            | "ntilde"
            | "numbersign"
            | "numerosign"
            | "oacute"
            | "obarred"
            | "obelowdot"
            | "ocaron"
            | "ocircumflex"
            | "ocircumflexacute"
            | "ocircumflexbelowdot"
            | "ocircumflexgrave"
            | "ocircumflexhook"
            | "ocircumflextilde"
            | "odiaeresis"
            | "odoubleacute"
            | "oe"
            | "ogonek"
            | "ograve"
            | "ohook"
            | "ohorn"
            | "ohornacute"
            | "ohornbelowdot"
            | "ohorngrave"
            | "ohornhook"
            | "ohorntilde"
            | "omacron"
            | "oneeighth"
            | "onefifth"
            | "onehalf"
            | "onequarter"
            | "onesixth"
            | "onesubscript"
            | "onesuperior"
            | "onethird"
            | "ooblique"
            | "openrectbullet"
            | "openstar"
            | "opentribulletdown"
            | "opentribulletup"
            | "ordfeminine"
            | "oslash"
            | "otilde"
            | "overbar"
            | "overline"
            | "pabovedot"
            | "paragraph"
            | "parenleft"
            | "parenright"
            | "partdifferential"
            | "partialderivative"
            | "period"
            | "periodcentered"
            | "permille"
            | "phonographcopyright"
            | "plus"
            | "plusminus"
            | "prescription"
            | "prolongedsound"
            | "punctspace"
            | "quad"
            | "question"
            | "questiondown"
            | "quotedbl"
            | "quoteleft"
            | "quoteright"
            | "racute"
            | "radical"
            | "rcaron"
            | "rcedilla"
            | "registered"
            | "rightanglebracket"
            | "rightarrow"
            | "rightcaret"
            | "rightdoublequotemark"
            | "rightmiddlecurlybrace"
            | "rightmiddlesummation"
            | "rightopentriangle"
            | "rightpointer"
            | "rightshoe"
            | "rightsinglequotemark"
            | "rightt"
            | "righttack"
            | "sabovedot"
            | "sacute"
            | "scaron"
            | "scedilla"
            | "schwa"
            | "scircumflex"
            | "script_switch"
            | "seconds"
            | "section"
            | "semicolon"
            | "semivoicedsound"
            | "seveneighths"
            | "sevensubscript"
            | "sevensuperior"
            | "signaturemark"
            | "signifblank"
            | "similarequal"
            | "singlelowquotemark"
            | "sixsubscript"
            | "sixsuperior"
            | "slash"
            | "soliddiamond"
            | "space"
            | "squareroot"
            | "ssharp"
            | "sterling"
            | "stricteq"
            | "tabovedot"
            | "tcaron"
            | "tcedilla"
            | "telephone"
            | "telephonerecorder"
            | "therefore"
            | "thinspace"
            | "thorn"
            | "threeeighths"
            | "threefifths"
            | "threequarters"
            | "threesubscript"
            | "threesuperior"
            | "tintegral"
            | "topintegral"
            | "topleftparens"
            | "topleftradical"
            | "topleftsqbracket"
            | "topleftsummation"
            | "toprightparens"
            | "toprightsqbracket"
            | "toprightsummation"
            | "topt"
            | "topvertsummationconnector"
            | "trademark"
            | "trademarkincircle"
            | "tslash"
            | "twofifths"
            | "twosubscript"
            | "twosuperior"
            | "twothirds"
            | "uacute"
            | "ubelowdot"
            | "ubreve"
            | "ucircumflex"
            | "udiaeresis"
            | "udoubleacute"
            | "ugrave"
            | "uhook"
            | "uhorn"
            | "uhornacute"
            | "uhornbelowdot"
            | "uhorngrave"
            | "uhornhook"
            | "uhorntilde"
            | "umacron"
            | "underbar"
            | "underscore"
            | "union"
            | "uogonek"
            | "uparrow"
            | "upcaret"
            | "upleftcorner"
            | "uprightcorner"
            | "upshoe"
            | "upstile"
            | "uptack"
            | "uring"
            | "utilde"
            | "variation"
            | "vertbar"
            | "vertconnector"
            | "voicedsound"
            | "vt"
            | "wacute"
            | "wcircumflex"
            | "wdiaeresis"
            | "wgrave"
            | "xabovedot"
            | "yacute"
            | "ybelowdot"
            | "ycircumflex"
            | "ydiaeresis"
            | "yen"
            | "ygrave"
            | "yhook"
            | "ytilde"
            | "z"
            | "zabovedot"
            | "zacute"
            | "zcaron"
            | "zerosubscript"
            | "zerosuperior"
            | "zstroke"
      • Mod extends (
            | "SHIFT"
            | "LOCK"
            | "CONTROL"
            | "MOD1"
            | "MOD2"
            | "MOD3"
            | "MOD4"
            | "MOD5"
            | "BUTTON1"
            | "BUTTON2"
            | "BUTTON3"
            | "BUTTON4"
            | "BUTTON5"
            | "MODIFIER_RESERVED_13"
            | "MODIFIER_RESERVED_14"
            | "MODIFIER_RESERVED_15"
            | "MODIFIER_RESERVED_16"
            | "MODIFIER_RESERVED_17"
            | "MODIFIER_RESERVED_18"
            | "MODIFIER_RESERVED_19"
            | "MODIFIER_RESERVED_20"
            | "MODIFIER_RESERVED_21"
            | "MODIFIER_RESERVED_22"
            | "MODIFIER_RESERVED_23"
            | "MODIFIER_RESERVED_24"
            | "MODIFIER_RESERVED_25"
            | "SUPER"
            | "HYPER"
            | "META"
            | "MODIFIER_RESERVED_29"
            | "RELEASE"
            | "MODIFIER"
        )[]

      Parameters

      Returns this

    • This function should be called whenever keyboard navigation within a single widget hits a boundary. The function emits the #GtkWidget::keynav-failed signal on the widget and its return value should be interpreted in a way similar to the return value of gtk_widget_child_focus():

      When %TRUE is returned, stay in the widget, the failed keyboard navigation is OK and/or there is nowhere we can/should move the focus to.

      When %FALSE is returned, the caller should continue with keyboard navigation outside the widget, e.g. by calling gtk_widget_child_focus() on the widget’s toplevel.

      The default ::keynav-failed handler returns %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 gtk_widget_error_bell() to notify the user of the failed keyboard navigation.

      A use case for providing an own implementation of ::keynav-failed (either by connecting to it or by overriding it) would be a row of #GtkEntry widgets where the user should be able to navigate the entire row with the cursor keys, as e.g. known from user interfaces that require entering license keys.

      Parameters

      • direction: DirectionType | null

        direction of focus movement

      Returns boolean

      %TRUE if stopping keyboard navigation is fine, %FALSE if the emitting widget should try to handle the keyboard navigation attempt in its parent container(s).

    • Lists the closures used by widget for accelerator group connections with gtk_accel_group_connect_by_path() or gtk_accel_group_connect(). The closures can be used to monitor accelerator changes on widget, by connecting to the GtkAccelGroup::accel-changed signal of the #GtkAccelGroup of a closure which can be found out with gtk_accel_group_from_accel_closure().

      Returns Closure<any, any>[]

      a newly allocated #GList of closures

    • Retrieves a %NULL-terminated array of strings containing the prefixes of #GActionGroup's available to widget.

      Returns string[]

      a %NULL-terminated array of strings.

    • Returns a newly allocated list of the widgets, normally labels, for which this widget is the target of a mnemonic (see for example, gtk_label_set_mnemonic_widget()).

      The widgets in the list are not individually referenced. If you want to iterate through the list and perform actions involving callbacks that might destroy the widgets, you must call g_list_foreach (result, (GFunc)g_object_ref, NULL) first, and then unref all the widgets afterwards.

      Returns Widget[]

      the list of mnemonic labels; free this list with g_list_free() when you are done with it.

    • This function is only for use in widget implementations. Causes a widget to be mapped if it isn’t already.

      Returns void

    • Asks to maximize window, so that it becomes full-screen. Note that you shouldn’t assume the window is definitely maximized afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could unmaximize it again, and not all window managers support maximization. But normally the window will end up maximized. Just don’t write code that crashes if not.

      It’s permitted to call this function before showing a window, in which case the window will be maximized when it appears onscreen initially.

      You can track maximization via the “window-state-event” signal on #GtkWidget, or by listening to notifications on the #GtkWindow:is-maximized property.

      Returns void

    • Activates the targets associated with the mnemonic.

      Parameters

      • keyval: number

        the mnemonic

      • modifier: ModifierType | null

        the modifiers

      Returns boolean

      %TRUE if the activation is done.

    • Activates the targets associated with the mnemonic.

      Parameters

      • ...args: never[]

      Returns any

      %TRUE if the activation is done.

    • Sets the base color for a widget in a particular state. All other style values are left untouched. The base color is the background color used along with the text color (see gtk_widget_modify_text()) for widgets such as #GtkEntry and #GtkTextView. See also gtk_widget_modify_style().

      Note that “no window” widgets (which have the %GTK_NO_WINDOW flag set) draw on their parent container’s window and thus may not draw any background themselves. This is the case for e.g. #GtkLabel.

      To modify the background of such widgets, you have to set the base color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a #GtkEventBox widget and setting the base color on that.

      Parameters

      • state: StateType | null

        the state for which to set the base color

      • Optionalcolor: Color | null

        the color to assign (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_base().

      Returns void

    • Sets the background color for a widget in a particular state.

      All other style values are left untouched. See also gtk_widget_modify_style().

      Note that “no window” widgets (which have the %GTK_NO_WINDOW flag set) draw on their parent container’s window and thus may not draw any background themselves. This is the case for e.g. #GtkLabel.

      To modify the background of such widgets, you have to set the background color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a #GtkEventBox widget and setting the background color on that.

      Parameters

      • state: StateType | null

        the state for which to set the background color

      • Optionalcolor: Color | null

        the color to assign (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_bg().

      Returns void

    • Sets the cursor color to use in a widget, overriding the #GtkWidget cursor-color and secondary-cursor-color style properties.

      All other style values are left untouched. See also gtk_widget_modify_style().

      Parameters

      • Optionalprimary: Color | null

        the color to use for primary cursor (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_cursor().

      • Optionalsecondary: Color | null

        the color to use for secondary cursor (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_cursor().

      Returns void

    • Sets the foreground color for a widget in a particular state.

      All other style values are left untouched. See also gtk_widget_modify_style().

      Parameters

      • state: StateType | null

        the state for which to set the foreground color

      • Optionalcolor: Color | null

        the color to assign (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_fg().

      Returns void

    • Sets the font to use for a widget.

      All other style values are left untouched. See also gtk_widget_modify_style().

      Parameters

      • Optionalfont_desc: FontDescription | null

        the font description to use, or %NULL to undo the effect of previous calls to gtk_widget_modify_font()

      Returns void

    • Modifies style values on the widget.

      Modifications made using this technique take precedence over style values set via an RC file, however, they will be overridden if a style is explicitly set on the widget using gtk_widget_set_style(). The #GtkRcStyle-struct is designed so each field can either be set or unset, so it is possible, using this function, to modify some style values and leave the others unchanged.

      Note that modifications made with this function are not cumulative with previous calls to gtk_widget_modify_style() or with such functions as gtk_widget_modify_fg(). If you wish to retain previous values, you must first call gtk_widget_get_modifier_style(), make your modifications to the returned style, then call gtk_widget_modify_style() with that style. On the other hand, if you first call gtk_widget_modify_style(), subsequent calls to such functions gtk_widget_modify_fg() will have a cumulative effect with the initial modifications.

      Parameters

      • style: RcStyle

        the #GtkRcStyle-struct holding the style modifications

      Returns void

    • Sets the text color for a widget in a particular state.

      All other style values are left untouched. The text color is the foreground color used along with the base color (see gtk_widget_modify_base()) for widgets such as #GtkEntry and #GtkTextView. See also gtk_widget_modify_style().

      Parameters

      • state: StateType | null

        the state for which to set the text color

      • Optionalcolor: Color | null

        the color to assign (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_modify_text().

      Returns void

    • Asks the [window manager][gtk-X11-arch] to move window to the given position. Window managers are free to ignore this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown.

      Note: the position is the position of the gravity-determined reference point for the window. The gravity determines two things: first, the location of the reference point in root window coordinates; and second, which point on the window is positioned at the reference point.

      By default the gravity is #GDK_GRAVITY_NORTH_WEST, so the reference point is simply the x, y supplied to gtk_window_move(). The top-left corner of the window decorations (aka window frame or border) will be placed at x, y. Therefore, to position a window at the top left of the screen, you want to use the default gravity (which is #GDK_GRAVITY_NORTH_WEST) and move the window to 0,0.

      To position a window at the bottom right corner of the screen, you would set #GDK_GRAVITY_SOUTH_EAST, which means that the reference point is at x + the window width and y + the window height, and the bottom-right corner of the window border will be placed at that reference point. So, to place a window in the bottom right corner you would first set gravity to south east, then write: gtk_window_move (window, gdk_screen_width () - window_width, gdk_screen_height () - window_height) (note that this example does not take multi-head scenarios into account).

      The Extended Window Manager Hints Specification has a nice table of gravities in the “implementation notes” section.

      The gtk_window_get_position() documentation may also be relevant.

      Parameters

      • x: number

        X coordinate to move window to

      • y: number

        Y coordinate to move window to

      Returns 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

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

        typedef enum
      {
      PROP_FOO = 1,
      PROP_LAST
      } MyObjectProperty;

      static GParamSpec *properties[PROP_LAST];

      static void
      my_object_class_init (MyObjectClass *klass)
      {
      properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
      0, 100,
      50,
      G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
      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

    • Connects a callback to a signal on this widget.

      Parameters

      • signal: string

        The signal name

      • callback: (self: this, ...args: any[]) => void

        The callback

      Returns this

      this for chaining

    • Sets the background color to use for a widget.

      All other style values are left untouched. See gtk_widget_override_color().

      Parameters

      • state: StateFlags | null

        the state for which to set the background color

      • Optionalcolor: RGBA | null

        the color to assign, or %NULL to undo the effect of previous calls to gtk_widget_override_background_color()

      Returns void

    • Sets the color to use for a widget.

      All other style values are left untouched.

      This function does not act recursively. Setting the color of a container does not affect its children. Note that some widgets that you may not think of as containers, for instance #GtkButtons, are actually containers.

      This API is mostly meant as a quick way for applications to change a widget appearance. If you are developing a widgets library and intend this change to be themeable, it is better done by setting meaningful CSS classes in your widget/container implementation through gtk_style_context_add_class().

      This way, your widget library can install a #GtkCssProvider with the %GTK_STYLE_PROVIDER_PRIORITY_FALLBACK priority in order to provide a default styling for those widgets that need so, and this theming may fully overridden by the user’s theme.

      Note that for complex widgets this may bring in undesired results (such as uniform background color everywhere), in these cases it is better to fully style such widgets through a #GtkCssProvider with the %GTK_STYLE_PROVIDER_PRIORITY_APPLICATION priority.

      Parameters

      • state: StateFlags | null

        the state for which to set the color

      • Optionalcolor: RGBA | null

        the color to assign, or %NULL to undo the effect of previous calls to gtk_widget_override_color()

      Returns void

    • Sets the cursor color to use in a widget, overriding the cursor-color and secondary-cursor-color style properties. All other style values are left untouched. See also gtk_widget_modify_style().

      Note that the underlying properties have the #GdkColor type, so the alpha value in primary and secondary will be ignored.

      Parameters

      • Optionalcursor: RGBA | null

        the color to use for primary cursor (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_override_cursor().

      • Optionalsecondary_cursor: RGBA | null

        the color to use for secondary cursor (does not need to be allocated), or %NULL to undo the effect of previous calls to of gtk_widget_override_cursor().

      Returns void

    • Sets the font to use for a widget. All other style values are left untouched. See gtk_widget_override_color().

      Parameters

      • Optionalfont_desc: FontDescription | null

        the font description to use, or %NULL to undo the effect of previous calls to gtk_widget_override_font()

      Returns void

    • Sets a symbolic color for a widget.

      All other style values are left untouched. See gtk_widget_override_color() for overriding the foreground or background color.

      Parameters

      • name: string

        the name of the symbolic color to modify

      • Optionalcolor: RGBA | null

        the color to assign (does not need to be allocated), or %NULL to undo the effect of previous calls to gtk_widget_override_symbolic_color()

      Returns void

    • Parses a standard X Window System geometry string - see the manual page for X (type “man X”) for details on this. gtk_window_parse_geometry() does work on all GTK+ ports including Win32 but is primarily intended for an X environment.

      If either a size or a position can be extracted from the geometry string, gtk_window_parse_geometry() returns %TRUE and calls gtk_window_set_default_size() and/or gtk_window_move() to resize/move the window.

      If gtk_window_parse_geometry() returns %TRUE, it will also set the #GDK_HINT_USER_POS and/or #GDK_HINT_USER_SIZE hints indicating to the window manager that the size/position of the window was user-specified. This causes most window managers to honor the geometry.

      Note that for gtk_window_parse_geometry() to work as expected, it has to be called when the window has its “final” size, i.e. after calling gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints() on the window.

      #include <gtk/gtk.h>

      static void
      fill_with_content (GtkWidget *vbox)
      {
      // fill with content...
      }

      int
      main (int argc, char *argv[])
      {
      GtkWidget *window, *vbox;
      GdkGeometry size_hints = {
      100, 50, 0, 0, 100, 50, 10,
      10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
      };

      gtk_init (&argc, &argv);

      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
      vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);

      gtk_container_add (GTK_CONTAINER (window), vbox);
      fill_with_content (vbox);
      gtk_widget_show_all (vbox);

      gtk_window_set_geometry_hints (GTK_WINDOW (window),
      NULL,
      &size_hints,
      GDK_HINT_MIN_SIZE |
      GDK_HINT_BASE_SIZE |
      GDK_HINT_RESIZE_INC);

      if (argc > 1)
      {
      gboolean res;
      res = gtk_window_parse_geometry (GTK_WINDOW (window),
      argv[1]);
      if (! res)
      fprintf (stderr,
      "Failed to parse “%s\n",
      argv[1]);
      }

      gtk_widget_show_all (window);
      gtk_main ();

      return 0;
      }

      Parameters

      • geometry: string

        geometry string

      Returns boolean

      %TRUE if string was parsed successfully

    • Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

      Parameters

      • builder: Builder

        a #GtkBuilder

      Returns void

    • Obtains the full path to widget. The path is simply the name of a widget and all its parents in the container hierarchy, separated by periods. The name of a widget comes from gtk_widget_get_name(). Paths are used to apply styles to a widget in gtkrc configuration files. Widget names are the type of the widget by default (e.g. “GtkButton”) or can be set to an application-specific value with gtk_widget_set_name(). By setting the name of a widget, you allow users or theme authors to apply styles to that specific widget in their gtkrc file. path_reversed_p fills in the path in reverse order, i.e. starting with widget’s name instead of starting with the name of widget’s outermost ancestor.

      Returns [number, string, string]

    • Calls a callback at a regular interval, automatically stopping on widget destroy.

      Parameters

      • timeout: number

        Interval in milliseconds

      • callback: (self: this) => void

        The callback to invoke

      Returns this

      this for chaining

    • Presents a window to the user. This function should not be used as when it is called, it is too late to gather a valid timestamp to allow focus stealing prevention to work correctly.

      Returns void

    • Presents a window to the user. This may mean raising the window in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user’s platform, window manager, and preferences.

      If window is hidden, this function calls gtk_widget_show() as well.

      This function should be used when the user tries to open a window that’s already open. Say for example the preferences dialog is currently open, and the user chooses Preferences from the menu a second time; use gtk_window_present() to move the already-open dialog where the user can see it.

      Presents a window to the user in response to a user interaction. The timestamp should be gathered when the window was requested to be shown (when clicking a link for example), rather than once the window is ready to be shown.

      Parameters

      • timestamp: number

        the timestamp of the user interaction (typically a button or key press event) which triggered this call

      Returns void

    • When a container receives a call to the draw function, it must send synthetic #GtkWidget::draw calls to all children that don’t have their own #GdkWindows. This function provides a convenient way of doing this. A container, when it receives a call to its #GtkWidget::draw function, calls gtk_container_propagate_draw() once for each child, passing in the cr the container received.

      gtk_container_propagate_draw() takes care of translating the origin of cr, and deciding whether the draw needs to be sent to the child. It is a convenient and optimized way of getting the same effect as calling gtk_widget_draw() on the child directly.

      In most cases, a container can simply either inherit the #GtkWidget::draw implementation from #GtkContainer, or do some drawing and then chain to the ::draw implementation from #GtkContainer.

      Parameters

      • child: Widget

        a child of

      • cr: Context

        Cairo context as passed to the container. If you want to use

      Returns void

      in container’s draw function, consider using cairo_save() and cairo_restore() before calling this function.

    • Propagate a key press or release event to the focus widget and up the focus container chain until a widget handles event. This is normally called by the default ::key_press_event and ::key_release_event handlers for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.

      Parameters

      • event: EventKey

        a #GdkEventKey

      Returns boolean

      %TRUE if a widget in the focus chain handled the event.

    • This function is only for use in widget implementations.

      Flags the widget for a rerun of the GtkWidgetClass::size_allocate function. Use this function instead of gtk_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 gtk_widget_set_halign().

      Returns void

    • Mark widget as needing to recompute its expand flags. Call this function when setting legacy expand child properties on the child of a container.

      See gtk_widget_compute_expand().

      Returns void

    • Equivalent to calling gtk_widget_queue_draw_area() for the entire area of a widget.

      Returns void

    • Convenience function that calls gtk_widget_queue_draw_region() on the region created from the given coordinates.

      The region here is specified in widget coordinates. Widget coordinates are a bit odd; for historical reasons, they are defined as widget->window coordinates for widgets that return %TRUE for gtk_widget_get_has_window(), and are relative to widget->allocation.x, widget->allocation.y otherwise.

      width or height may be 0, in this case this function does nothing. Negative values for width and height are not allowed.

      Parameters

      • x: number

        x coordinate of upper-left corner of rectangle to redraw

      • y: number

        y coordinate of upper-left corner of rectangle to redraw

      • width: number

        width of region to draw

      • height: number

        height of region to draw

      Returns void

    • Invalidates the area of widget defined by region by calling gdk_window_invalidate_region() on the widget’s window and all its child windows. Once the main loop becomes idle (after the current batch of events has been processed, roughly), the window will receive expose events for the union of all regions that have been invalidated.

      Normally you would only use this function in widget implementations. You might also use it to schedule a redraw of a #GtkDrawingArea or some portion thereof.

      Parameters

      • region: Region

        region to draw

      Returns void

    • This function is only for use in widget implementations. Flags a widget to have its size renegotiated; should be called when a widget for some reason has a new size request. For example, when you change the text in a #GtkLabel, #GtkLabel queues a resize to ensure there’s enough space for the new text.

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

      Returns void

    • This function works like gtk_widget_queue_resize(), except that the widget is not invalidated.

      Returns void

    • Creates the GDK (windowing system) resources associated with a widget. For example, widget->window will be created when a widget is realized. Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically.

      Realizing a widget requires all the widget’s parent widgets to be realized; calling gtk_widget_realize() realizes the widget’s parents in addition to 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 #GtkWidget::draw. Or simply g_signal_connect () to the #GtkWidget::realize signal.

      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 Object

      the same

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

    • Computes the intersection of a widget’s area and region, returning the intersection. The result may be empty, use cairo_region_is_empty() to check.

      Parameters

      • region: Region

        a #cairo_region_t, in the same coordinate system as @widget->allocation. That is, relative to @widget->window for widgets which return %FALSE from gtk_widget_get_has_window(); relative to the parent window of @widget->window otherwise.

      Returns Region

      A newly allocated region holding the intersection of

      and @region.

    • Registers a #GdkWindow with the widget and sets it up so that the widget receives events for it. Call gtk_widget_unregister_window() when destroying the window.

      Before 3.8 you needed to call gdk_window_set_user_data() directly to set this up. This is now deprecated and you should use gtk_widget_register_window() instead. Old code will keep working as is, although some new features like transparency might not work perfectly.

      Parameters

      • window: Window

        a #GdkWindow

      Returns void

    • Removes widget from container. widget must be inside container. Note that container will own a reference to widget, and that this may be the last reference held; so removing a widget from its container can destroy that widget. If you want to use widget again, you need to add a reference to it before removing it from a container, using g_object_ref(). If you don’t want to use widget again it’s usually more efficient to simply destroy it directly using gtk_widget_destroy() since this will remove it from the container and help break any circular reference count cycles.

      Parameters

      • widget: Widget

        a current child of

      Returns void

    • Reverses the effects of gtk_window_add_accel_group().

      Parameters

      • accel_group: AccelGroup

        a #GtkAccelGroup

      Returns void

    • Removes an accelerator from widget, previously installed with gtk_widget_add_accelerator().

      Parameters

      • accel_group: AccelGroup

        accel group for this widget

      • accel_key: number

        GDK keyval of the accelerator

      • accel_mods: ModifierType | null

        modifier key combination of the accelerator

      Returns boolean

      whether an accelerator was installed and could be removed

    • Removes a mnemonic from this window.

      Parameters

      • keyval: number

        the mnemonic

      • target: Widget

        the widget that gets activated by the mnemonic

      Returns void

    • Removes a widget from the list of mnemonic labels for this widget. (See gtk_widget_list_mnemonic_labels()). The widget must have previously been added to the list with gtk_widget_add_mnemonic_label().

      Parameters

      • label: Widget

        a #GtkWidget that was previously set as a mnemonic label for

      Returns void

      with gtk_widget_add_mnemonic_label().

    • Removes a tick callback previously registered with gtk_widget_add_tick_callback().

      Parameters

      • id: number

        an id returned by gtk_widget_add_tick_callback()

      Returns void

    • A convenience function that uses the theme settings for widget to look up stock_id and render it to a pixbuf. stock_id should be a stock icon ID such as #GTK_STOCK_OPEN or #GTK_STOCK_OK. size should be a size such as #GTK_ICON_SIZE_MENU. detail should be a string that identifies the widget or code doing the rendering, so that theme engines can special-case rendering for that widget or code.

      The pixels in the returned #GdkPixbuf are shared with the rest of the application and should not be modified. The pixbuf should be freed after use with g_object_unref().

      Parameters

      • stock_id: string

        a stock ID

      • size: number

        a stock size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale (if there are multiple source sizes, GTK+ picks one of the available sizes).

      • Optionaldetail: string | null

        render detail to pass to theme engine

      Returns Pixbuf | null

      a new pixbuf, or %NULL if the stock ID wasn’t known

    • A convenience function that uses the theme engine and style settings for widget to look up stock_id and render it to a pixbuf. stock_id should be a stock icon ID such as #GTK_STOCK_OPEN or #GTK_STOCK_OK. size should be a size such as #GTK_ICON_SIZE_MENU.

      The pixels in the returned #GdkPixbuf are shared with the rest of the application and should not be modified. The pixbuf should be freed after use with g_object_unref().

      Parameters

      • stock_id: string

        a stock ID

      • size: number

        a stock size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale (if there are multiple source sizes, GTK+ picks one of the available sizes).

      Returns Pixbuf | null

      a new pixbuf, or %NULL if the stock ID wasn’t known

    • Moves a widget from one #GtkContainer to another, handling reference count issues to avoid destroying the widget.

      Parameters

      • new_parent: Widget

        a #GtkContainer to move the widget into

      Returns void

    • Reset the styles of widget and all descendents, so when they are looked up again, they get the correct values for the currently loaded RC file settings.

      This function is not useful for applications.

      Returns void

    • Updates the style context of widget and all descendants by updating its widget path. #GtkContainers may want to use this on a child when reordering it in a way that a different style might apply to it. See also gtk_container_get_path_for_child().

      Returns void

    • Hides window, then reshows it, resetting the default size and position of the window. Used by GUI builders only.

      Returns void

    • Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call gtk_widget_set_size_request() to set the window's request to a smaller value.

      If gtk_window_resize() is called before showing a window for the first time, it overrides any default size set with gtk_window_set_default_size().

      Windows may not be resized smaller than 1 by 1 pixels.

      When using client side decorations, GTK+ will do its best to adjust the given size so that the resulting window size matches the requested size without the title bar, borders and shadows added for the client side decorations, but there is no guarantee that the result will be totally accurate because these widgets added for client side decorations depend on the theme and may not be realized or visible at the time gtk_window_resize() is issued.

      If the GtkWindow has a titlebar widget (see gtk_window_set_titlebar()), then typically, gtk_window_resize() will compensate for the height of the titlebar widget only if the height is known when the resulting GtkWindow configuration is issued. For example, if new widgets are added after the GtkWindow configuration and cause the titlebar widget to grow in height, this will result in a window content smaller that specified by gtk_window_resize() and not a larger window.

      Parameters

      • width: number

        width in pixels to resize the window to

      • height: number

        height in pixels to resize the window to

      Returns void

    • Returns void

    • Determines whether a resize grip is visible for the specified window.

      Returns boolean

      %TRUE if a resize grip exists and is visible

    • Like gtk_window_resize(), but width and height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints.

      Parameters

      • width: number

        width in resize increments to resize the window to

      • height: number

        height in resize increments to resize the window to

      Returns 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

    • Very rarely-used function. This function is used to emit an expose event on a widget. This function is not normally used directly. The only time it is used is when propagating an expose event to a windowless child widget (gtk_widget_get_has_window() is %FALSE), and that is normally done using gtk_container_propagate_draw().

      If you want to force an area of a window to be redrawn, use gdk_window_invalidate_rect() or gdk_window_invalidate_region(). To cause the redraw to be done immediately, follow that call with a call to gdk_window_process_updates().

      Parameters

      • event: Event

        a expose #GdkEvent

      Returns number

      return from the event signal emission (%TRUE if the event was handled)

    • Sends the focus change event to widget

      This function is not meant to be used by applications. The only time it should be used is when it is necessary for a #GtkWidget to assign focus to a widget that is semantically owned by the first widget even though it’s not a direct child - for instance, a search entry in a floating window similar to the quick search in #GtkTreeView.

      An example of its usage is:

        GdkEvent *fevent = gdk_event_new (GDK_FOCUS_CHANGE);

      fevent->focus_change.type = GDK_FOCUS_CHANGE;
      fevent->focus_change.in = TRUE;
      fevent->focus_change.window = _gtk_widget_get_window (widget);
      if (fevent->focus_change.window != NULL)
      g_object_ref (fevent->focus_change.window);

      gtk_widget_send_focus_change (widget, fevent);

      gdk_event_free (event);

      Parameters

      • event: Event

        a #GdkEvent of type GDK_FOCUS_CHANGE

      Returns boolean

      the return value from the event signal emission: %TRUE if the event was handled, and %FALSE otherwise

    • Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.

      Parameters

      • properties: { [key: string]: any }

        Object containing the properties to set

      Returns void

    • Given an accelerator group, accel_group, and an accelerator path, accel_path, sets up an accelerator in accel_group so whenever the key binding that is defined for accel_path is pressed, widget will be activated. This removes any accelerators (for any accelerator group) installed by previous calls to gtk_widget_set_accel_path(). Associating accelerators with paths allows them to be modified by the user and the modifications to be saved for future use. (See gtk_accel_map_save().)

      This function is a low level function that would most likely be used by a menu creation system like #GtkUIManager. If you use #GtkUIManager, setting up accelerator paths will be done automatically.

      Even when you you aren’t using #GtkUIManager, if you only want to set up accelerators on menu items gtk_menu_item_set_accel_path() provides a somewhat more convenient interface.

      Note that accel_path string will be stored in a #GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().

      Parameters

      • Optionalaccel_path: string | null

        path used to look up the accelerator

      • Optionalaccel_group: AccelGroup | null

        a #GtkAccelGroup.

      Returns void

    • Windows may set a hint asking the desktop environment not to receive the input focus. This function sets this hint.

      Parameters

      • setting: boolean

        %TRUE to let this window receive input focus

      Returns void

    • Sets the widget’s allocation. This should not be used directly, but from within a widget’s size_allocate method.

      The allocation set should be the “adjusted” or actual allocation. If you’re implementing a #GtkContainer, you want to use gtk_widget_size_allocate() instead of gtk_widget_set_allocation(). The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside gtk_widget_size_allocate() to create an adjusted allocation.

      Parameters

      • allocation: Rectangle

        a pointer to a #GtkAllocation to copy from

      Returns void

    • Sets whether the application intends to draw on the widget in an #GtkWidget::draw handler.

      This is a hint to the widget and does not affect the behavior of the GTK+ core; many widgets ignore this flag entirely. For widgets that do pay attention to the flag, such as #GtkEventBox and #GtkWindow, the effect is to suppress default themed drawing of the widget's background. (Children of the widget will still be drawn.) The application is then entirely responsible for drawing the widget background.

      Note that the background is still drawn when the widget is mapped.

      Parameters

      • app_paintable: boolean

        %TRUE if the application will paint on the widget

      Returns void

    • Sets or unsets the #GtkApplication associated with the window.

      The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows).

      Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the application to %NULL.

      This is equivalent to calling gtk_application_remove_window() and/or gtk_application_add_window() on the old/new applications as relevant.

      Parameters

      • Optionalapplication: Application | null

        a #GtkApplication, or %NULL to unset

      Returns void

    • Marks window as attached to attach_widget. This creates a logical binding between the window and the widget it belongs to, which is used by GTK+ to propagate information such as styling or accessibility to window as if it was a children of attach_widget.

      Examples of places where specifying this relation is useful are for instance a #GtkMenu created by a #GtkComboBox, a completion popup window created by #GtkEntry or a typeahead search entry created by #GtkTreeView.

      Note that this function should not be confused with gtk_window_set_transient_for(), which specifies a window manager relation between two toplevels instead.

      Passing %NULL for attach_widget detaches the window.

      Parameters

      • Optionalattach_widget: Widget | null

        a #GtkWidget, or %NULL

      Returns void

    • Sets the border width of the container.

      The border width of a container is the amount of space to leave around the outside of the container. The only exception to this is #GtkWindow; because toplevel windows can’t leave space outside, they leave the space inside. The border is added on all sides of the container. To add space to only one side, use a specific #GtkWidget:margin property on the child widget, for example #GtkWidget:margin-top.

      Parameters

      • border_width: number

        amount of blank space to leave outside the container. Valid values are in the range 0-65535 pixels.

      Returns void

    • Sets the property name name to value on the buildable object.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • name: string

        name of property

      • value: any

        value of property

      Returns void

    • Specifies whether widget can be a default widget. See gtk_widget_grab_default() for details about the meaning of “default”.

      Parameters

      • can_default: boolean

        whether or not

      Returns void

      can be a default widget.

    • Specifies whether widget can own the input focus. See gtk_widget_grab_focus() for actually setting the input focus on a widget.

      Parameters

      • can_focus: boolean

        whether or not

      Returns void

      can own the input focus.

    • Sets whether widget should be mapped along with its when its parent is mapped and widget has been shown with gtk_widget_show().

      The child visibility can be set for widget before it is added to a container with gtk_widget_set_parent(), to avoid mapping children unnecessary before immediately unmapping them. However it will be reset to its default state of %TRUE when the widget is removed from a container.

      Note that changing the child visibility of a widget does not queue a resize on the widget. Most of the time, the size of a widget is computed from all visible children, whether or not they are mapped. If this is not the case, the container can queue a resize itself.

      This function is only useful for container implementations and never should be called by an application.

      Parameters

      • is_visible: boolean

        if %TRUE,

      Returns void

      should be mapped along with its parent.

    • Sets the widget’s clip. This must not be used directly, but from within a widget’s size_allocate method. It must be called after gtk_widget_set_allocation() (or after chaining up to the parent class), because that function resets the clip.

      The clip set should be the area that widget draws on. If widget is a #GtkContainer, the area must contain all children's clips.

      If this function is not called by widget during a ::size-allocate handler, the clip will be set to widget's allocation.

      Parameters

      • clip: Rectangle

        a pointer to a #GtkAllocation to copy from

      Returns void

    • Sets a widgets composite name. The widget must be a composite child of its parent; see gtk_widget_push_composite_child().

      Parameters

      • name: string

        the name to set

      Returns 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

      • Optionaldata: any

        data to associate with that key

      Returns void

    • By default, windows are decorated with a title bar, resize controls, etc. Some [window managers][gtk-X11-arch] allow GTK+ to disable these decorations, creating a borderless window. If you set the decorated property to %FALSE using this function, GTK+ will do its best to convince the window manager not to decorate the window. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_widget_show().

      On Windows, this function always works, since there’s no window manager policy involved.

      Parameters

      • setting: boolean

        %TRUE to decorate the window

      Returns void

    • The default widget is the widget that’s activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a #GtkWindow. When setting (rather than unsetting) the default widget it’s generally easier to call gtk_widget_grab_default() on the widget. Before making a widget the default widget, you must call gtk_widget_set_can_default() on the widget you’d like to make the default.

      Parameters

      • Optionaldefault_widget: Widget | null

        widget to be the default, or %NULL to unset the default widget for the toplevel

      Returns void

    • Like gtk_window_set_default_size(), but width and height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints.

      Parameters

      • width: number

        width in resize increments, or -1 to unset the default width

      • height: number

        height in resize increments, or -1 to unset the default height

      Returns void

    • Sets the default size of a window. If the window’s “natural” size (its size request) is larger than the default, the default will be ignored. More generally, if the default size does not obey the geometry hints for the window (gtk_window_set_geometry_hints() can be used to set these explicitly), the default size will be clamped to the nearest permitted size.

      Unlike gtk_widget_set_size_request(), which sets a size request for a widget and thus would keep users from shrinking the window, this function only sets the initial size, just as if the user had resized the window themselves. Users can still shrink the window again as they normally would. Setting a default size of -1 means to use the “natural” default size (the size request of the window).

      For more control over a window’s initial size and how resizing works, investigate gtk_window_set_geometry_hints().

      For some uses, gtk_window_resize() is a more appropriate function. gtk_window_resize() changes the current size of the window, rather than the size to be used on initial display. gtk_window_resize() always affects the window itself, not the geometry widget.

      The default size of a window only affects the first time a window is shown; if a window is hidden and re-shown, it will remember the size it had prior to hiding, rather than using the default size.

      Windows can’t actually be 0x0 in size, they must be at least 1x1, but passing 0 for width and height is OK, resulting in a 1x1 default size.

      If you use this function to reestablish a previously saved window size, note that the appropriate size to save is the one returned by gtk_window_get_size(). Using the window allocation directly will not work in all circumstances and can lead to growing or shrinking windows.

      Parameters

      • width: number

        width in pixels, or -1 to unset the default width

      • height: number

        height in pixels, or -1 to unset the default height

      Returns void

    • By default, windows have a close button in the window frame. Some [window managers][gtk-X11-arch] allow GTK+ to disable this button. If you set the deletable property to %FALSE using this function, GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_widget_show().

      On Windows, this function always works, since there’s no window manager policy involved.

      Parameters

      • setting: boolean

        %TRUE to decorate the window as deletable

      Returns void

    • If setting is %TRUE, then destroying the transient parent of window will also destroy window itself. This is useful for dialogs that shouldn’t persist beyond the lifetime of the main window they're associated with, for example.

      Parameters

      • setting: boolean

        whether to destroy

      Returns void

      with its transient parent

    • Enables or disables a #GdkDevice to interact with widget and all its children.

      It does so by descending through the #GdkWindow hierarchy and enabling the same mask that is has for core events (i.e. the one that gdk_window_get_events() returns).

      Parameters

      • device: Device

        a #GdkDevice

      • enabled: boolean

        whether to enable the device

      Returns void

    • Sets the device event mask (see #GdkEventMask) for a widget. The event mask determines which events a widget will receive from device. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget’s functionality, so be careful. This function must be called while a widget is unrealized. Consider gtk_widget_add_device_events() for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with windowless widgets (which return %FALSE from gtk_widget_get_has_window()); to get events on those widgets, place them inside a #GtkEventBox and receive events on the event box.

      Parameters

      • device: Device

        a #GdkDevice

      • events: EventMask | null

        event mask

      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 gtk_widget_set_default_direction() will be used.

      Parameters

      • dir: TextDirection | null

        the new direction

      Returns void

    • Widgets are double buffered by default; you can use this function to turn off the buffering. “Double buffered” simply means that gdk_window_begin_draw_frame() and gdk_window_end_draw_frame() are called automatically around expose events sent to the widget. gdk_window_begin_draw_frame() diverts all drawing to a widget's window to an offscreen buffer, and gdk_window_end_draw_frame() draws the buffer to the screen. The result is that users see the window update in one smooth step, and don’t see individual graphics primitives being rendered.

      In very simple terms, double buffered widgets don’t flicker, so you would only use this function to turn off double buffering if you had special needs and really knew what you were doing.

      Note: if you turn off double-buffering, you have to handle expose events, since even the clearing to the background color or pixmap will not happen automatically (as it is done in gdk_window_begin_draw_frame()).

      In 3.10 GTK and GDK have been restructured for translucent drawing. Since then expose events for double-buffered widgets are culled into a single event to the toplevel GDK window. If you now unset double buffering, you will cause a separate rendering pass for every widget. This will likely cause rendering problems - in particular related to stacking - and usually increases rendering times significantly.

      Parameters

      • double_buffered: boolean

        %TRUE to double-buffer a widget

      Returns void

    • Sets the event mask (see #GdkEventMask) for a widget. The event mask determines which events a widget will receive. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget’s functionality, so be careful. This function must be called while a widget is unrealized. Consider gtk_widget_add_events() for widgets that are already realized, or if you want to preserve the existing event mask. This function can’t be used with widgets that have no window. (See gtk_widget_get_has_window()). To get events on those widgets, place them inside a #GtkEventBox and receive events on the event box.

      Parameters

      • events: number

        event mask

      Returns void

    • If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is %NULL, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use gtk_widget_grab_focus() instead of this function.

      Parameters

      • Optionalfocus: Widget | null

        widget to be the new focus widget, or %NULL to unset any focus widget for the toplevel window.

      Returns void

    • Sets a focus chain, overriding the one computed automatically by GTK+.

      In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it’s allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn’t always packed. The necessary checks are done when the focus chain is actually traversed.

      Parameters

      • focusable_widgets: Widget[]

        the new focus chain

      Returns void

    • Sets, or unsets if child is %NULL, the focused child of container.

      This function emits the GtkContainer::set_focus_child signal of container. Implementations of #GtkContainer can override the default behaviour by overriding the class closure of this signal.

      This is function is mostly meant to be used by widgets. Applications can use gtk_widget_grab_focus() to manually set the focus to a specific widget.

      Parameters

      • Optionalchild: Widget | null

        a #GtkWidget, or %NULL

      Returns void

    • Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the horizontal alignment. See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_vadjustment() for setting the vertical adjustment.

      The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.

      Parameters

      • adjustment: Adjustment

        an adjustment which should be adjusted when the focus is moved among the descendents of

      Returns 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

      • focus_on_click: boolean

        whether the widget should grab focus when clicked with the mouse

      Returns void

    • Windows may set a hint asking the desktop environment not to receive the input focus when the window is mapped. This function sets this hint.

      Parameters

      • setting: boolean

        %TRUE to let this window receive input focus on map

      Returns void

    • Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the vertical alignment. See gtk_scrolled_window_get_vadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_hadjustment() for setting the horizontal adjustment.

      The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.

      Parameters

      • adjustment: Adjustment

        an adjustment which should be adjusted when the focus is moved among the descendents of

      Returns void

    • Sets the #GtkWindow:focus-visible property.

      Parameters

      • setting: boolean

        the new value

      Returns void

    • Sets the font map to use for Pango rendering. When not set, the widget will inherit the font map from its parent.

      Parameters

      • Optionalfont_map: FontMap<Object> | null

        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 #GdkScreen will be used.

      Parameters

      • Optionaloptions: FontOptions | null

        a #cairo_font_options_t, or %NULL to unset any previously set default font options.

      Returns void

    • This function sets up hints about how a window can be resized by the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the #GdkGeometry struct.

      Parameters

      • geometry_widget: Widget | null

        widget the geometry hints used to be applied to or %NULL. Since 3.20 this argument is ignored and GTK behaves as if %NULL was set.

      • geometry: Geometry | null

        struct containing geometry information or %NULL

      • geom_mask: WindowHints | null

        mask indicating which struct fields should be paid attention to

      Returns void

    • Window gravity defines the meaning of coordinates passed to gtk_window_move(). See gtk_window_move() and #GdkGravity for more details.

      The default window gravity is #GDK_GRAVITY_NORTH_WEST which will typically “do what you mean.”

      Parameters

      • gravity: Gravity | null

        window gravity

      Returns void

    • Sets the horizontal alignment of widget. See the #GtkWidget:halign property.

      Parameters

      • align: Align | null

        the horizontal alignment

      Returns void

    • Sets whether window has a corner resize grip.

      Note that the resize grip is only shown if the window is actually resizable and not maximized. Use gtk_window_resize_grip_is_visible() to find out if the resize grip is currently shown.

      Parameters

      • value: boolean

        %TRUE to allow a resize grip

      Returns void

    • Sets the has-tooltip property on widget to has_tooltip. See #GtkWidget:has-tooltip for more information.

      Parameters

      • has_tooltip: boolean

        whether or not

      Returns void

      has a tooltip.

    • Tells GTK+ whether to drop its extra reference to the window when gtk_widget_destroy() is called.

      This function is only exported for the benefit of language bindings which may need to keep the window alive until their wrapper object is garbage collected. There is no justification for ever calling this function in an application.

      Parameters

      • setting: boolean

        the new value

      Returns void

    • Specifies whether widget has a #GdkWindow of its own. Note that all realized widgets have a non-%NULL “window” pointer (gtk_widget_get_window() never returns a %NULL window when a widget is realized), but for many of them it’s actually the #GdkWindow of one of its parent widgets. Widgets that do not create a %window for themselves in #GtkWidget::realize must announce this by calling this function with has_window = %FALSE.

      This function should only be called by widget implementations, and they should call it in their init() function.

      Parameters

      • has_window: boolean

        whether or not

      Returns void

      has a window.

    • Sets whether the widget would like any available extra horizontal space. When a user resizes a #GtkWindow, widgets with expand=TRUE generally receive the extra space. For example, a list or scrollable area or document in your window would often be set to expand.

      Call this function to set the expand flag if you would like your widget to become larger horizontally when the window has extra room.

      By default, widgets automatically expand if any of their children want to expand. (To see if a widget will automatically expand given its current children and state, call gtk_widget_compute_expand(). A container can decide how the expandability of children affects the expansion of the container by overriding the compute_expand virtual method on #GtkWidget.).

      Setting hexpand explicitly with this function will override the automatic expand behavior.

      This function forces the widget to expand or not to expand, regardless of children. The override occurs because gtk_widget_set_hexpand() sets the hexpand-set property (see gtk_widget_set_hexpand_set()) which causes the widget’s hexpand value to be used, rather than looking at children and widget state.

      Parameters

      • expand: boolean

        whether to expand

      Returns void

    • Sets whether the hexpand flag (see gtk_widget_get_hexpand()) will be used.

      The hexpand-set property will be set automatically when you call gtk_widget_set_hexpand() to set hexpand, so the most likely reason to use this function would be to unset an explicit expand flag.

      If hexpand is set, then it overrides any computed expand value based on child widgets. If hexpand is not set, then the expand value depends on whether any children of the widget would like to expand.

      There are few reasons to use this function, but it’s here for completeness and consistency.

      Parameters

      • set: boolean

        value for hexpand-set property

      Returns void

    • If setting is %TRUE, then window will request that it’s titlebar should be hidden when maximized. This is useful for windows that don’t convey any information other than the application name in the titlebar, to put the available screen space to better use. If the underlying window system does not support the request, the setting will not have any effect.

      Note that custom titlebars set with gtk_window_set_titlebar() are not affected by this. The application is in full control of their content and visibility anyway.

      Parameters

      • setting: boolean

        whether to hide the titlebar when

      Returns void

      is maximized

    • Sets up the icon representing a #GtkWindow. This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

      The icon should be provided in whatever size it was naturally drawn; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

      If you have your icon hand-drawn in multiple sizes, use gtk_window_set_icon_list(). Then the best size will be used.

      This function is equivalent to calling gtk_window_set_icon_list() with a 1-element list.

      See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.

      Parameters

      • Optionalicon: Pixbuf | null

        icon image, or %NULL

      Returns void

    • Sets the icon for window. Warns on failure if err is %NULL.

      This function is equivalent to calling gtk_window_set_icon() with a pixbuf created by loading the image from filename.

      Parameters

      • filename: string

        location of icon file

      Returns boolean

      %TRUE if setting the icon succeeded.

    • Sets up the icon representing a #GtkWindow. The icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

      gtk_window_set_icon_list() allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

      By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling.

      Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger images (64x64, 128x128) if you have them.

      See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.

      Note that transient windows (those who have been set transient for another window using gtk_window_set_transient_for()) will inherit their icon from their transient parent. So there’s no need to explicitly set the icon on transient windows.

      Parameters

      • list: Pixbuf[]

        list of #GdkPixbuf

      Returns void

    • Sets the icon for the window from a named themed icon. See the docs for #GtkIconTheme for more details. On some platforms, the window icon is not used at all.

      Note that this has nothing to do with the WM_ICON_NAME property which is mentioned in the ICCCM.

      Parameters

      • Optionalname: string | null

        the name of the themed icon

      Returns void

    • Asks to keep window above, so that it stays on top. Note that you shouldn’t assume the window is definitely above afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could not keep it above, and not all window managers support keeping windows above. But normally the window will end kept above. Just don’t write code that crashes if not.

      It’s permitted to call this function before showing a window, in which case the window will be kept above when it appears onscreen initially.

      You can track the above state via the “window-state-event” signal on #GtkWidget.

      Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.

      Parameters

      • setting: boolean

        whether to keep

      Returns void

      above other windows

    • Asks to keep window below, so that it stays in bottom. Note that you shouldn’t assume the window is definitely below afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could not keep it below, and not all window managers support putting windows below. But normally the window will be kept below. Just don’t write code that crashes if not.

      It’s permitted to call this function before showing a window, in which case the window will be kept below when it appears onscreen initially.

      You can track the below state via the “window-state-event” signal on #GtkWidget.

      Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.

      Parameters

      • setting: boolean

        whether to keep

      Returns void

      below other windows

    • Marks the widget as being mapped.

      This function should only ever be called in a derived widget's “map” or “unmap” implementation.

      Parameters

      • mapped: boolean

        %TRUE to mark the widget as mapped

      Returns void

    • Sets the bottom margin of widget. See the #GtkWidget:margin-bottom property.

      Parameters

      • margin: number

        the bottom margin

      Returns void

    • Sets the end margin of widget. See the #GtkWidget:margin-end property.

      Parameters

      • margin: number

        the end margin

      Returns void

    • Sets the left margin of widget. See the #GtkWidget:margin-left property.

      Parameters

      • margin: number

        the left margin

      Returns void

    • Sets the right margin of widget. See the #GtkWidget:margin-right property.

      Parameters

      • margin: number

        the right margin

      Returns void

    • Sets the start margin of widget. See the #GtkWidget:margin-start property.

      Parameters

      • margin: number

        the start margin

      Returns void

    • Sets the top margin of widget. See the #GtkWidget:margin-top property.

      Parameters

      • margin: number

        the top margin

      Returns void

    • Sets the mnemonic modifier for this window.

      Parameters

      • modifier: ModifierType | null

        the modifier mask used to activate mnemonics on this window.

      Returns void

    • Sets the #GtkWindow:mnemonics-visible property.

      Parameters

      • setting: boolean

        the new value

      Returns void

    • Sets a window modal or non-modal. Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use gtk_window_set_transient_for() to make the dialog transient for the parent; most [window managers][gtk-X11-arch] will then disallow lowering the dialog below the parent.

      Parameters

      • modal: boolean

        whether the window is modal

      Returns void

    • Sets the name of the buildable object.

      Parameters

      • name: string

        name to set

      Returns void

    • Sets the #GtkWidget:no-show-all property, which determines whether calls to gtk_widget_show_all() will affect this widget.

      This is mostly for use in constructing widget hierarchies with externally controlled visibility, see #GtkUIManager.

      Parameters

      • no_show_all: boolean

        the new value for the “no-show-all” property

      Returns void

    • Request the windowing system to make window partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.) On X11 this has any effect only on X screens with a compositing manager running. See gtk_widget_is_composited(). On Windows it should work always.

      Note that setting a window’s opacity after the window has been shown causes it to flicker once on Windows.

      Parameters

      • opacity: number

        desired opacity, between 0 and 1

      Returns void

    • This function is useful only when implementing subclasses of #GtkContainer. Sets the container as the parent of widget, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite function is gtk_widget_unparent().

      Parameters

      • parent: Widget

        parent container

      Returns void

    • Sets a non default parent window for widget.

      For #GtkWindow classes, setting a parent_window effects whether the window is a toplevel window or can be embedded into other widgets.

      For #GtkWindow classes, this needs to be called before the window is realized.

      Parameters

      • parent_window: Window

        the new parent window.

      Returns void

    • Sets a position constraint for this window. If the old or new constraint is %GTK_WIN_POS_CENTER_ALWAYS, this will also cause the window to be repositioned to satisfy the new constraint.

      Parameters

      • position: WindowPosition | null

        a position constraint.

      Returns void

    • Sets a property on an object.

      Parameters

      • property_name: string

        The name of the property to set

      • value: any

        The value to set the property to

      Returns void

    • Marks the widget as being realized. This function must only be called after all #GdkWindows for the widget have been created and registered.

      This function should only ever be called in a derived widget's “realize” or “unrealize” implementation.

      Parameters

      • realized: boolean

        %TRUE to mark the widget as realized

      Returns void

    • Sets the reallocate_redraws flag of the container to the given value.

      Containers requesting reallocation redraws get automatically redrawn if any of their children changed allocation.

      Parameters

      • needs_redraws: boolean

        the new value for the container’s @reallocate_redraws flag

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

      See gtk_widget_grab_default() for details about the meaning of “default”.

      Parameters

      • receives_default: boolean

        whether or not

      Returns void

      can be a default widget.

    • Sets whether the entire widget is queued for drawing when its size allocation changes. By default, this setting is %TRUE and the entire widget is redrawn on every size change. If your widget leaves the upper left unchanged when made bigger, turning this setting off will improve performance.

      Note that for widgets where gtk_widget_get_has_window() is %FALSE setting this flag to %FALSE turns off all allocation on resizing: the widget will not even redraw if its position changes; this is to allow containers that don’t draw anything to avoid excess invalidations. If you set this flag on a widget with no window that does draw on widget->window, you are responsible for invalidating both the old and new allocation of the widget when the widget is moved and responsible for invalidating regions newly when the widget increases size.

      Parameters

      • redraw_on_allocate: boolean

        if %TRUE, the entire widget will be redrawn when it is allocated to a new size. Otherwise, only the new portion of the widget will be redrawn.

      Returns void

    • Sets whether the user can resize a window. Windows are user resizable by default.

      Parameters

      • resizable: boolean

        %TRUE if the user can resize this window

      Returns void

    • Sets the resize mode for the container.

      The resize mode of a container determines whether a resize request will be passed to the container’s parent, queued for later execution or executed immediately.

      Parameters

      • resize_mode: ResizeMode | null

        the new resize mode

      Returns void

    • This function is only useful on X11, not with other GTK+ targets.

      In combination with the window title, the window role allows a [window manager][gtk-X11-arch] to identify "the same" window when an application is restarted. So for example you might set the “toolbox” role on your app’s toolbox window, so that when the user restarts their session, the window manager can put the toolbox back in the same place.

      If a window already has a unique title, you don’t need to set the role, since the WM can use the title to identify the window when restoring the session.

      Parameters

      • role: string

        unique identifier for the window to be used when restoring a session

      Returns void

    • Sets the #GdkScreen where the window is displayed; if the window is already mapped, it will be unmapped, and then remapped on the new screen.

      Parameters

      • screen: Screen

        a #GdkScreen.

      Returns 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

    • 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, gtk_window_set_default_size() is a better choice for toplevel windows than this function; setting the default size will still allow users to shrink the window. Setting the size request will force them to leave the window at least as large as the size request. When dealing with window sizes, gtk_window_set_geometry_hints() can be a useful function as well.

      Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can all change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct.

      The size request of a widget is the smallest size a widget can accept while still functioning well and drawing itself correctly. However in some strange cases a widget may be allocated less than its requested size, and in many cases a widget may be allocated more space than it requested.

      If the size request in a given direction is -1 (unset), then the “natural” size request of the widget will be used instead.

      The size request set here does not include any margin from the #GtkWidget properties margin-left, margin-right, margin-top, and margin-bottom, but it does include pretty much all other padding or border properties set by any subclass of #GtkWidget.

      Parameters

      • width: number

        width

      • height: number

        height

      Returns void

      should request, or -1 to unset

      should request, or -1 to unset

    • Windows may set a hint asking the desktop environment not to display the window in the pager. This function sets this hint. (A "pager" is any desktop navigation tool such as a workspace switcher that displays a thumbnail representation of the windows on the screen.)

      Parameters

      • setting: boolean

        %TRUE to keep this window from appearing in the pager

      Returns void

    • Windows may set a hint asking the desktop environment not to display the window in the task bar. This function sets this hint.

      Parameters

      • setting: boolean

        %TRUE to keep this window from appearing in the task bar

      Returns void

    • Startup notification identifiers are used by desktop environment to track application startup, to provide user feedback and other features. This function changes the corresponding property on the underlying GdkWindow. Normally, startup identifier is managed automatically and you should only use this function in special cases like transferring focus from other processes. You should use this function before calling gtk_window_present() or any equivalent function generating a window map event.

      This function is only useful on X11, not with other GTK+ targets.

      Parameters

      • startup_id: string

        a string with startup-notification identifier

      Returns void

    • This function is for use in widget implementations. Sets the state of a widget (insensitive, prelighted, etc.) Usually you should set the state using wrapper functions such as gtk_widget_set_sensitive().

      Parameters

      • state: StateType | null

        new state for

      Returns void

    • This function is for use in widget implementations. Turns on flag values in the current widget state (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 gtk_widget_set_direction().

      It is worth mentioning that any other state than %GTK_STATE_FLAG_INSENSITIVE, will be propagated down to all non-internal children if widget is a #GtkContainer, while %GTK_STATE_FLAG_INSENSITIVE itself will be propagated down to all #GtkContainer children by different means than turning on the state flag down the hierarchy, both gtk_widget_get_state_flags() and gtk_widget_is_sensitive() will make use of these.

      Parameters

      • flags: StateFlags | null

        State flags to turn on

      • clear: boolean

        Whether to clear state before turning on

      Returns void

    • Used to set the #GtkStyle for a widget (widget->style). Since GTK 3, this function does nothing, the passed in style is ignored.

      Parameters

      • Optionalstyle: Style | null

        a #GtkStyle, or %NULL to remove the effect of a previous call to gtk_widget_set_style() and go back to the default style

      Returns void

    • Enables or disables multiple pointer awareness. If this setting is %TRUE, widget will start receiving multiple, per device enter/leave events. Note that if custom #GdkWindows are created in #GtkWidget::realize, gdk_window_set_support_multidevice() will have to be called manually on them.

      Parameters

      • support_multidevice: boolean

        %TRUE to support input from multiple devices.

      Returns void

    • Sets the title of the #GtkWindow. The title of a window will be displayed in its title bar; on the X Window System, the title bar is rendered by the [window manager][gtk-X11-arch], so exactly how the title appears to users may vary according to a user’s exact configuration. The title should help a user distinguish this window from other windows they may have open. A good title might include the application name and current document filename, for example.

      Parameters

      • title: string

        title of the window

      Returns void

    • Sets a custom titlebar for window.

      A typical widget used here is #GtkHeaderBar, as it provides various features expected of a titlebar while allowing the addition of child widgets to it.

      If you set a custom titlebar, GTK+ will do its best to convince the window manager not to put its own titlebar on the window. Depending on the system, this function may not work for a window that is already visible, so you set the titlebar before calling gtk_widget_show().

      Parameters

      • Optionaltitlebar: Widget | null

        the widget to use as titlebar

      Returns void

    • Sets markup as the contents of the tooltip, which is marked up with the [Pango text markup language][PangoMarkupFormat].

      This function will take care of setting #GtkWidget:has-tooltip to %TRUE and of the default handler for the #GtkWidget::query-tooltip signal.

      See also the #GtkWidget:tooltip-markup property and gtk_tooltip_set_markup().

      Parameters

      • Optionalmarkup: string | null

        the contents of the tooltip for @widget, or %NULL

      Returns void

    • Sets text as the contents of the tooltip. This function will take care of setting #GtkWidget:has-tooltip to %TRUE and of the default handler for the #GtkWidget::query-tooltip signal.

      See also the #GtkWidget:tooltip-text property and gtk_tooltip_set_text().

      Parameters

      • Optionaltext: string | null

        the contents of the tooltip for

      Returns void

    • Replaces the default window used for displaying tooltips with custom_window. GTK+ will take care of showing and hiding custom_window at the right moment, to behave likewise as the default tooltip window. If custom_window is %NULL, the default tooltip window will be used.

      Parameters

      • Optionalcustom_window: Window | null

        a #GtkWindow, or %NULL

      Returns void

    • Dialog windows should be set transient for the main application window they were spawned from. This allows [window managers][gtk-X11-arch] to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf.

      Passing %NULL for parent unsets the current transient window.

      On Wayland, this function can also be used to attach a new #GTK_WINDOW_POPUP to a #GTK_WINDOW_TOPLEVEL parent already mapped on screen so that the #GTK_WINDOW_POPUP will be created as a subsurface-based window #GDK_WINDOW_SUBSURFACE which can be positioned at will relatively to the #GTK_WINDOW_TOPLEVEL surface.

      On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X.

      Parameters

      • Optionalparent: Window | null

        parent window, or %NULL

      Returns void

    • By setting the type hint for the window, you allow the window manager to decorate and handle the window in a way which is suitable to the function of the window in your application.

      This function should be called before the window becomes visible.

      gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_type_hint() on your behalf.

      Parameters

      • hint: WindowTypeHint | null

        the window type

      Returns void

    • Windows may set a hint asking the desktop environment to draw the users attention to the window. This function sets this hint.

      Parameters

      • setting: boolean

        %TRUE to mark this window as urgent

      Returns void

    • Sets the vertical alignment of widget. See the #GtkWidget:valign property.

      Parameters

      • align: Align | null

        the vertical alignment

      Returns void

    • Sets whether the widget would like any available extra vertical space.

      See gtk_widget_set_hexpand() for more detail.

      Parameters

      • expand: boolean

        whether to expand

      Returns void

    • Sets whether the vexpand flag (see gtk_widget_get_vexpand()) will be used.

      See gtk_widget_set_hexpand_set() for more detail.

      Parameters

      • set: boolean

        value for vexpand-set property

      Returns void

    • Sets the visibility state of widget. Note that setting this to %TRUE doesn’t mean the widget is actually viewable, see gtk_widget_get_visible().

      This function simply calls gtk_widget_show() or gtk_widget_hide() but is nicer to use when the visibility of the widget depends on some condition.

      Parameters

      • visible: boolean

        whether the widget should be shown or not

      Returns void

    • Sets the visual that should be used for by widget and its children for creating #GdkWindows. The visual must be on the same #GdkScreen as returned by gtk_widget_get_screen(), so handling the #GtkWidget::screen-changed signal is necessary.

      Setting a new visual will not cause widget to recreate its windows, so you should call this function before widget is realized.

      Parameters

      • Optionalvisual: Visual | null

        visual to be used or %NULL to unset a previous one

      Returns void

    • Sets a widget’s window. This function should only be used in a widget’s #GtkWidget::realize implementation. The %window passed is usually either new window created with gdk_window_new(), or the window of its parent widget as returned by gtk_widget_get_parent_window().

      Widgets must indicate whether they will create their own #GdkWindow by calling gtk_widget_set_has_window(). This is usually done in the widget’s init() function.

      Note that this function does not add any reference to window.

      Parameters

      • window: Window

        a #GdkWindow

      Returns void

    • Don’t use this function. It sets the X Window System “class” and “name” hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call gtk_window_set_role() on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session.

      Parameters

      • wmclass_name: string

        window name hint

      • wmclass_class: string

        window class hint

      Returns void

    • Sets inline CSS on this widget, wrapping in * { ... } if needed.

      Parameters

      • css: string

        CSS string

      Returns void

    • Sets a shape for this widget’s GDK window. This allows for transparent windows etc., see gdk_window_shape_combine_region() for more information.

      Parameters

      • Optionalregion: Region | null

        shape to be added, or %NULL to remove an existing shape

      Returns void

    • Flags a widget to be displayed. Any widget that isn’t shown will not appear on the screen. If you want to show all the widgets in a container, it’s easier to call gtk_widget_show_all() on the container, instead of individually showing the widgets.

      Remember that you have to show the containers containing a widget, in addition to the widget itself, before it will appear onscreen.

      When a toplevel container is shown, it is immediately realized and mapped; other shown widgets are realized and mapped when their toplevel container is realized and mapped.

      Returns void

    • Recursively shows a widget, and any child widgets (if the widget is a container).

      Returns void

    • Shows a widget. If the widget is an unmapped toplevel widget (i.e. a #GtkWindow that has not yet been shown), enter the main loop and wait for the window to actually be mapped. Be careful; because the main loop is running, anything can happen during this function.

      Returns void

    • This function is only used by #GtkContainer subclasses, to assign a size and position to their child widgets.

      In this function, the allocation may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual method on the child will be used to adjust the allocation. Standard adjustments include removing the widget’s margins, and applying the widget’s #GtkWidget:halign and #GtkWidget:valign properties.

      For baseline support in containers you need to use gtk_widget_size_allocate_with_baseline() instead.

      Parameters

      • allocation: Rectangle

        position and size to be allocated to

      Returns void

    • This function is only used by #GtkContainer subclasses, to assign a size, position and (optionally) baseline to their child widgets.

      In this function, the allocation and baseline may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual and adjust_baseline_allocation methods on the child will be used to adjust the allocation and baseline. Standard adjustments include removing the widget's margins, and applying the widget’s #GtkWidget:halign and #GtkWidget:valign properties.

      If the child widget does not have a valign of %GTK_ALIGN_BASELINE the baseline argument is ignored and -1 is used instead.

      Parameters

      • allocation: Rectangle

        position and size to be allocated to

      • baseline: number

        The baseline of the child, or -1

      Returns void

    • This function is typically used when implementing a #GtkContainer subclass. Obtains the preferred size of a widget. The container uses this information to arrange its child widgets and decide what size allocations to give them with gtk_widget_size_allocate().

      You can also call this function from an application, with some caveats. Most notably, getting a size request requires the widget to be associated with a screen, because font information may be needed. Multihead-aware applications should keep this in mind.

      Also remember that the size request is not necessarily the size a widget will actually be allocated.

      Returns Requisition

    • Remove a specified datum from the object's data associations, without invoking the association's destroy handler.

      Parameters

      • key: string

        name of the key

      Returns any

      the data if found, or %NULL if no such data exists.

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

      The user data pointer set, or %NULL

    • Asks to stick window, which means that it will appear on all user desktops. Note that you shouldn’t assume the window is definitely stuck afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch] could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don't write code that crashes if not.

      It’s permitted to call this function before showing a window.

      You can track stickiness via the “window-state-event” signal on #GtkWidget.

      Returns void

    • Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.

      Parameters

      • detailedName: string

        Name of the signal to stop emission of

      Returns void

    • This function attaches the widget’s #GtkStyle to the widget's #GdkWindow. It is a replacement for

      widget->style = gtk_style_attach (widget->style, widget->window);
      

      and should only ever be called in a derived widget’s “realize” implementation which does not chain up to its parent class' “realize” implementation, because one of the parent classes (finally #GtkWidget) would attach the style itself.

      Returns void

    • Gets the value of a style property of widget.

      Parameters

      • property_name: string

        the name of a style property

      • value: any

        location to return the property value

      Returns void

    • Reverts the effect of a previous call to gtk_widget_freeze_child_notify(). This causes all queued #GtkWidget::child-notify signals on widget to be emitted.

      Returns 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

    • Adds or removes a CSS class name.

      Parameters

      • className: string

        The CSS class name

      • Optionalcondition: boolean

        If true (default), adds the class; if false, removes it

      Returns void

    • Translate coordinates relative to src_widget’s allocation to coordinates relative to dest_widget’s allocations. In order to perform this operation, both widgets must be realized, and must share a common toplevel.

      Parameters

      • dest_widget: Widget

        a #GtkWidget

      • src_x: number

        X position relative to @src_widget

      • src_y: number

        Y position relative to @src_widget

      Returns [boolean, number, number]

      %FALSE if either widget was not realized, or there was no common ancestor. In this case, nothing is stored in *@dest_x and *@dest_y. Otherwise %TRUE.

    • Triggers a tooltip query on the display where the toplevel of widget is located. See gtk_tooltip_trigger_tooltip_query() for more information.

      Returns void

    • Unblocks a handler so it will be called again during any signal emissions

      Parameters

      • id: number

        Handler ID of the handler to be unblocked

      Returns void

    • Asks to toggle off the fullscreen state for window. Note that you shouldn’t assume the window is definitely not full screen afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could fullscreen it again, and not all window managers honor requests to unfullscreen windows. But normally the window will end up restored to its normal state. Just don’t write code that crashes if not.

      You can track the fullscreen state via the “window-state-event” signal on #GtkWidget.

      Returns void

    • This function is only for use in widget implementations. Causes a widget to be unmapped if it’s currently mapped.

      Returns void

    • Asks to unmaximize window. Note that you shouldn’t assume the window is definitely unmaximized afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could maximize it again, and not all window managers honor requests to unmaximize. But normally the window will end up unmaximized. Just don’t write code that crashes if not.

      You can track maximization via the “window-state-event” signal on #GtkWidget.

      Returns void

    • This function is only for use in widget implementations. Should be called by implementations of the remove method on #GtkContainer, to dissociate a child from the container.

      Returns void

    • This function is only useful in widget implementations. Causes a widget to be unrealized (frees all GDK resources associated with the widget, such as widget->window).

      Returns 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

    • Unregisters a #GdkWindow from the widget that was previously set up with gtk_widget_register_window(). You need to call this when the window is no longer used by the widget, such as when you destroy it.

      Parameters

      • window: Window

        a #GdkWindow

      Returns void

    • Removes a focus chain explicitly set with gtk_container_set_focus_chain().

      Returns void

    • This function is for use in widget implementations. Turns off flag values for the current widget state (insensitive, prelighted, etc.). See gtk_widget_set_state_flags().

      Parameters

      • flags: StateFlags | null

        State flags to turn off

      Returns void

    • Asks to unstick window, which means that it will appear on only one of the user’s desktops. Note that you shouldn’t assume the window is definitely unstuck afterward, because other entities (e.g. the user or [window manager][gtk-X11-arch]) could stick it again. But normally the window will end up unstuck. Just don’t write code that crashes if not.

      You can track stickiness via the “window-state-event” signal on #GtkWidget.

      Returns void

    • Activates the default widget for the window.

      Returns void

    • Activates the current focused widget within the window.

      Returns void

    • Adds widget to container. Typically used for simple containers such as #GtkWindow, #GtkFrame, or #GtkButton; for more complicated layout containers such as #GtkBox or #GtkGrid, this function will pick default packing parameters that may not be correct. So consider functions such as gtk_box_pack_start() and gtk_grid_attach() as an alternative to gtk_container_add() in those cases. A widget may be added to only one container at a time; you can’t place the same widget inside two different containers.

      Note that some containers, such as #GtkScrolledWindow or #GtkListBox, may add intermediate children between the added widget and the container.

      Parameters

      • widget: Widget

        a widget to be placed inside

      Returns void

    • Adds a child to buildable. type is an optional string describing how the child should be added.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • child: Object

        child to add

      • Optionaltype: string | null

        kind of child or %NULL

      Returns void

    • Parameters

      • baseline: number

      Returns void

    • Parameters

      • minimum_baseline: number
      • natural_baseline: number

      Returns void

    • Convert an initial size allocation assigned by a #GtkContainer using gtk_widget_size_allocate(), into an actual size allocation to be used by the widget. adjust_size_allocation adjusts to a child widget’s actual allocation from what a parent container computed for the child. The adjusted allocation must be entirely within the original allocation. In any custom implementation, chain up to the default #GtkWidget implementation of this method, which applies the margin and alignment properties of #GtkWidget. Chain up before performing your own adjustments so your own adjustments remove more allocation after the #GtkWidget base class has already removed margin and alignment. The natural size passed in should be adjusted in the same way as the allocated size, which allows adjustments to perform alignments or other changes based on natural size.

      Parameters

      • orientation: Orientation
      • minimum_size: number
      • natural_size: number
      • allocated_pos: number
      • allocated_size: number

      Returns void

    • Convert an initial size request from a widget's #GtkSizeRequestMode virtual method implementations into a size request to be used by parent containers in laying out the widget. adjust_size_request adjusts from a child widget's original request to what a parent container should use for layout. The for_size argument will be -1 if the request should not be for a particular size in the opposing orientation, i.e. if the request is not height-for-width or width-for-height. If for_size is greater than -1, it is the proposed allocation in the opposing orientation that we need the request for. Implementations of adjust_size_request should chain up to the default implementation, which applies #GtkWidget’s margin properties and imposes any values from gtk_widget_set_size_request(). Chaining up should be last, after your subclass adjusts the request, so #GtkWidget can apply constraints and add the margin properly.

      Parameters

      • orientation: Orientation
      • minimum_size: number
      • natural_size: number

      Returns void

    • Signal will be emitted when a button (typically from a mouse) is pressed.

      Parameters

      • event: EventButton

      Returns boolean

    • Signal will be emitted when a button (typically from a mouse) is released.

      Parameters

      • event: EventButton

      Returns boolean

    • Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This is done by emitting the #GtkWidget::can-activate-accel signal on widget; if the signal isn’t overridden by a handler or in a derived widget, then the default check is that the widget must be sensitive, and the widget and all its ancestors mapped.

      Parameters

      • signal_id: number

        the ID of a signal installed on

      Returns boolean

    • Signal emitted when a size recalculation is needed.

      Returns void

    • Emits a #GtkWidget::child-notify signal for the [child property][child-properties] child_property on widget.

      This is the analogue of g_object_notify() for child properties.

      Also see gtk_container_child_notify().

      Parameters

      • child_property: ParamSpec

        the name of a child property installed on the class of @widget’s parent

      Returns void

    • Returns the type of the children supported by the container.

      Note that this may return %G_TYPE_NONE to indicate that no more children can be added, e.g. for a #GtkPaned which already has two children.

      Returns GType

    • Gets a widget’s composite name. Deprecated: 3.10.

      Parameters

      • child: Widget

      Returns string

    • Signal emitted when the composited status of widgets screen changes. See gdk_screen_is_composited().

      Returns void

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

      Parameters

      • hexpand_p: boolean
      • vexpand_p: boolean

      Returns void

    • Signal will be emitted when the size, position or stacking of the widget’s window has changed.

      Parameters

      • event: EventConfigure

      Returns boolean

    • Constructs a child of buildable with the name name.

      #GtkBuilder calls this function if a “constructor” has been specified in the UI definition.

      Type Parameters

      • T = Object

      Parameters

      • builder: Builder

        #GtkBuilder used to construct this object

      • name: string

        name of child to construct

      Returns T

    • the constructed function is called by g_object_new() as the final step of the object creation process. At the point of the call, all construction properties have been set on the object. The purpose of this call is to allow for object initialisation steps that can only be performed after construction properties have been set. constructed implementors should chain up to the constructed call of their parent class to allow it to complete its initialisation.

      Returns void

    • This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        the name of the tag

      • Optionaldata: any

        user data created in custom_tag_start

      Returns void

    • This is called at the end of each custom element handled by the buildable.

      Parameters

      • builder: Builder

        #GtkBuilder used to construct this object

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        name of tag

      • Optionaldata: any

        user data that will be passed in to parser functions

      Returns void

    • This is called for each unknown element under <child>.

      Parameters

      • builder: Builder

        a #GtkBuilder used to construct this object

      • child: Object | null

        child object or %NULL for non-child tags

      • tagname: string

        name of tag

      Returns [boolean, MarkupParser, any]

    • Signal emitted when a redirected window belonging to widget gets drawn into.

      Parameters

      • event: EventExpose

      Returns boolean

    • Signal emitted if a user requests that a toplevel window is closed.

      Parameters

      • event: EventAny

      Returns boolean

    • Destroys a widget.

      When a widget is destroyed all references it holds on other objects will be released:

      • if the widget is inside a container, it will be removed from its parent
      • if the widget is a container, all its children will be destroyed, recursively
      • if the widget is a top level, it will be removed from the list of top level widgets that GTK+ maintains internally

      It's expected that all references held on the widget will also be released; you should connect to the #GtkWidget::destroy signal if you hold a reference to widget and you wish to remove it when this function is called. It is not necessary to do so if you are implementing a #GtkContainer, as you'll be able to use the #GtkContainerClass.remove() virtual function for that.

      It's important to notice that gtk_widget_destroy() will only cause the widget to be finalized if no additional references, acquired using g_object_ref(), are held on it. In case additional references are in place, the widget will be in an "inert" state after calling this function; widget will still point to valid memory, allowing you to release the references you hold, but you may not query the widget's own state.

      You should typically call this function on top level widgets, and rarely on child widgets.

      See also: gtk_container_remove()

      Returns void

    • Signal is emitted when a #GdkWindow is destroyed.

      Parameters

      • event: EventAny

      Returns boolean

    • Signal emitted when the text direction of a widget changes.

      Parameters

      • previous_direction: TextDirection

      Returns void

    • Seldomly overidden.

      Parameters

      • n_pspecs: number
      • pspecs: ParamSpec

      Returns void

    • emits property change notification for a bunch of properties. Overriding dispatch_properties_changed should be rarely needed.

      Parameters

      • n_pspecs: number
      • pspecs: ParamSpec

      Returns void

    • the dispose function is supposed to drop all references to other objects, but keep the instance otherwise intact, so that client method invocations still work. It may be run multiple times (due to reference loops). Before returning, dispose should chain up to the dispose method of the parent class.

      Returns void

    • Signal emitted on the drag source when a drag is started.

      Parameters

      • context: DragContext

      Returns void

    • Signal emitted on the drag source when a drag with the action %GDK_ACTION_MOVE is successfully completed.

      Parameters

      • context: DragContext

      Returns void

    • Signal emitted on the drag source when the drop site requests the data which is dragged.

      Parameters

      • context: DragContext
      • selection_data: SelectionData
      • info: number
      • time_: number

      Returns void

    • Signal emitted on the drop site when the dragged data has been received.

      Parameters

      • context: DragContext
      • x: number
      • y: number
      • selection_data: SelectionData
      • info: number
      • time_: number

      Returns void

    • Signal emitted on the drop site when the user drops the data onto the widget.

      Parameters

      • context: DragContext
      • x: number
      • y: number
      • time_: number

      Returns boolean

    • Signal emitted on the drag source when a drag is finished.

      Parameters

      • context: DragContext

      Returns void

    • Signal emitted on the drag source when a drag has failed.

      Parameters

      • context: DragContext
      • result: DragResult

      Returns boolean

    • Signal emitted on the drop site when the cursor leaves the widget.

      Parameters

      • context: DragContext
      • time_: number

      Returns void

    • signal emitted on the drop site when the user moves the cursor over the widget during a drag.

      Parameters

      • context: DragContext
      • x: number
      • y: number
      • time_: number

      Returns boolean

    • Signal emitted when a widget is supposed to render itself.

      Parameters

      • cr: Context

      Returns boolean

    • Class handler for the #GtkWindow::enable-debugging keybinding signal. Since: 3.14

      Parameters

      • toggle: boolean

      Returns boolean

    • Signal event will be emitted when the pointer enters the widget’s window.

      Parameters

      • event: EventCrossing

      Returns boolean

    • Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don’t use this function; instead, use gtk_main_do_event() so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use gdk_window_invalidate_rect() to invalidate a region of the window.

      Parameters

      • event: Event

        a #GdkEvent

      Returns boolean

    • instance finalization function, should finish the finalization of the instance begun in dispose and chain up to the finalize method of the parent class.

      Returns void

    • Parameters

      • direction: DirectionType

      Returns boolean

    • Signal emitted when the keyboard focus enters the widget’s window.

      Parameters

      • event: EventFocus

      Returns boolean

    • Signal emitted when the keyboard focus leaves the widget’s window.

      Parameters

      • event: EventFocus

      Returns boolean

    • Invokes callback on each direct child of container, including children that are considered “internal” (implementation details of the container). “Internal” children generally weren’t added by the user of the container, but were added by the container implementation itself.

      Most applications should use gtk_container_foreach(), rather than gtk_container_forall().

      Parameters

      • include_internals: boolean
      • callback: Callback

        a callback

      Returns void

    • Returns the accessible object that describes the widget to an assistive technology.

      If accessibility support is not available, this #AtkObject instance may be a no-op. Likewise, if no class-specific #AtkObject implementation is available for the widget instance in question, it will inherit an #AtkObject implementation from the first ancestor class for which such an implementation is defined.

      The documentation of the ATK library contains more information about accessible objects and their uses.

      Returns Object

    • Get a property from a child of container.

      Parameters

      • child: Widget
      • property_id: number
      • value: any
      • pspec: ParamSpec

      Returns void

    • Get the internal child called childname of the buildable object.

      Type Parameters

      • T = Object

      Parameters

      • builder: Builder

        a #GtkBuilder

      • childname: string

        name of child

      Returns T

    • Gets the name of the buildable object.

      #GtkBuilder sets the name based on the [GtkBuilder UI definition][BUILDER-UI] used to construct the buildable.

      Returns string

    • Returns a newly created widget path representing all the widget hierarchy from the toplevel down to and including child.

      Parameters

      • child: Widget

        a child of

      Returns WidgetPath

    • Retrieves a widget’s initial minimum and natural height.

      This call is specific to width-for-height requests.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Returns [number, number]

    • Retrieves a widget’s minimum and natural height and the corresponding baselines if it would be given the specified width, or the default height if width is -1. The baselines may be -1 which means that no baseline is requested for this widget.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request and GtkWidgetClass::adjust_baseline_request virtual methods and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • width: number

        the width which is available for allocation, or -1 if none

      Returns [number, number, number, number]

    • Retrieves a widget’s minimum and natural height if it would be given the specified width.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • width: number

        the width which is available for allocation

      Returns [number, number]

    • Retrieves a widget’s initial minimum and natural width.

      This call is specific to height-for-width requests.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Returns [number, number]

    • Retrieves a widget’s minimum and natural width if it would be given the specified height.

      The returned request will be modified by the GtkWidgetClass::adjust_size_request virtual method and by any #GtkSizeGroups that have been applied. That is, the returned request is the one that should be used for layout, not necessarily the one returned by the widget itself.

      Parameters

      • height: number

        the height which is available for allocation

      Returns [number, number]

    • the generic getter for all properties of this type. Should be overridden for every type with properties.

      Parameters

      • property_id: number
      • value: any
      • pspec: ParamSpec

      Returns void

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

      #GtkBin widgets generally propagate the preference of their child, container widgets need to request something either in context of their children or in context of their allocation capabilities.

      Returns SizeRequestMode

    • Signal emitted when a pointer or keyboard grab on a window belonging to widget gets broken.

      Parameters

      • event: EventGrabBroken

      Returns boolean

    • Causes widget to have the keyboard focus for the #GtkWindow it's inside. widget must be a focusable widget, such as a #GtkEntry; something like #GtkFrame won’t work.

      More precisely, it must have the %GTK_CAN_FOCUS flag set. Use gtk_widget_set_can_focus() to modify that flag.

      The widget also needs to be realized and mapped. This is indicated by the related signals. Grabbing the focus immediately after creating the widget will likely fail and cause critical warnings.

      Returns void

    • Signal emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.

      Parameters

      • was_grabbed: boolean

      Returns void

    • Reverses the effects of gtk_widget_show(), causing the widget to be hidden (invisible to the user).

      Returns void

    • Signal emitted when the anchored state of a widget changes.

      Parameters

      • previous_toplevel: Widget

      Returns void

    • Signal emitted when a key is pressed.

      Parameters

      • event: EventKey

      Returns boolean

    • Signal is emitted when a key is released.

      Parameters

      • event: EventKey

      Returns boolean

    • This function should be called whenever keyboard navigation within a single widget hits a boundary. The function emits the #GtkWidget::keynav-failed signal on the widget and its return value should be interpreted in a way similar to the return value of gtk_widget_child_focus():

      When %TRUE is returned, stay in the widget, the failed keyboard navigation is OK and/or there is nowhere we can/should move the focus to.

      When %FALSE is returned, the caller should continue with keyboard navigation outside the widget, e.g. by calling gtk_widget_child_focus() on the widget’s toplevel.

      The default ::keynav-failed handler returns %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 gtk_widget_error_bell() to notify the user of the failed keyboard navigation.

      A use case for providing an own implementation of ::keynav-failed (either by connecting to it or by overriding it) would be a row of #GtkEntry widgets where the user should be able to navigate the entire row with the cursor keys, as e.g. known from user interfaces that require entering license keys.

      Parameters

      • direction: DirectionType

        direction of focus movement

      Returns boolean

    • Signal gets emitted when the set of accelerators or mnemonics that are associated with window changes.

      Returns void

    • Will be emitted when the pointer leaves the widget’s window.

      Parameters

      • event: EventCrossing

      Returns boolean

    • This function is only for use in widget implementations. Causes a widget to be mapped if it isn’t already.

      Returns void

    • Signal emitted when the widget’s window is mapped.

      Parameters

      • event: EventAny

      Returns boolean

    • Emits the #GtkWidget::mnemonic-activate signal.

      Parameters

      • group_cycling: boolean

        %TRUE if there are other widgets with the same mnemonic

      Returns boolean

    • Signal emitted when the pointer moves over the widget’s #GdkWindow.

      Parameters

      • event: EventMotion

      Returns boolean

    • Signal emitted when a change of focus is requested

      Parameters

      • direction: DirectionType

      Returns 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

      • pspec: ParamSpec

      Returns void

    • Signal emitted when a new parent has been set on a widget.

      Parameters

      • previous_parent: Widget

      Returns void

    • Called when the builder finishes the parsing of a [GtkBuilder UI definition][BUILDER-UI]. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.

      Parameters

      • builder: Builder

        a #GtkBuilder

      Returns void

    • Signal emitted whenever a widget should pop up a context menu.

      Returns boolean

    • Signal will be emitted when a property on the widget’s window has been changed or deleted.

      Parameters

      • event: EventProperty

      Returns boolean

    • Parameters

      • event: EventProximity

      Returns boolean

    • Parameters

      • event: EventProximity

      Returns boolean

    • Signal emitted when “has-tooltip” is %TRUE and the hover timeout has expired with the cursor hovering “above” widget; or emitted when widget got focus in keyboard mode.

      Parameters

      • x: number
      • y: number
      • keyboard_tooltip: boolean
      • tooltip: Tooltip

      Returns boolean

    • Invalidates the area of widget defined by region by calling gdk_window_invalidate_region() on the widget’s window and all its child windows. Once the main loop becomes idle (after the current batch of events has been processed, roughly), the window will receive expose events for the union of all regions that have been invalidated.

      Normally you would only use this function in widget implementations. You might also use it to schedule a redraw of a #GtkDrawingArea or some portion thereof.

      Parameters

      • region: Region

        region to draw

      Returns void

    • Creates the GDK (windowing system) resources associated with a widget. For example, widget->window will be created when a widget is realized. Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically.

      Realizing a widget requires all the widget’s parent widgets to be realized; calling gtk_widget_realize() realizes the widget’s parents in addition to 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 #GtkWidget::draw. Or simply g_signal_connect () to the #GtkWidget::realize signal.

      Returns void

    • Removes widget from container. widget must be inside container. Note that container will own a reference to widget, and that this may be the last reference held; so removing a widget from its container can destroy that widget. If you want to use widget again, you need to add a reference to it before removing it from a container, using g_object_ref(). If you don’t want to use widget again it’s usually more efficient to simply destroy it directly using gtk_widget_destroy() since this will remove it from the container and help break any circular reference count cycles.

      Parameters

      • widget: Widget

        a current child of

      Returns void

    • Signal emitted when the screen of a widget has changed.

      Parameters

      • previous_screen: Screen

      Returns void

    • Signal emitted when a button in the 4 to 7 range is pressed.

      Parameters

      • event: EventScroll

      Returns boolean

    • Signal will be emitted when the the widget’s window has lost ownership of a selection.

      Parameters

      • event: EventSelection

      Returns boolean

    • Parameters

      • selection_data: SelectionData
      • info: number
      • time_: number

      Returns void

    • Parameters

      • event: EventSelection

      Returns boolean

    • Parameters

      • selection_data: SelectionData
      • time_: number

      Returns void

    • Signal will be emitted when another client requests ownership of the selection owned by the widget's window.

      Parameters

      • event: EventSelection

      Returns boolean

    • Sets the property name name to value on the buildable object.

      Parameters

      • builder: Builder

        a #GtkBuilder

      • name: string

        name of property

      • value: any

        value of property

      Returns void

    • Set a property on a child of container.

      Parameters

      • child: Widget
      • property_id: number
      • value: any
      • pspec: ParamSpec

      Returns void

    • If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is %NULL, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use gtk_widget_grab_focus() instead of this function.

      Parameters

      • Optionalfocus: Widget | null

        widget to be the new focus widget, or %NULL to unset any focus widget for the toplevel window.

      Returns void

    • Sets, or unsets if child is %NULL, the focused child of container.

      This function emits the GtkContainer::set_focus_child signal of container. Implementations of #GtkContainer can override the default behaviour by overriding the class closure of this signal.

      This is function is mostly meant to be used by widgets. Applications can use gtk_widget_grab_focus() to manually set the focus to a specific widget.

      Parameters

      • Optionalchild: Widget | null

        a #GtkWidget, or %NULL

      Returns void

    • Sets the name of the buildable object.

      Parameters

      • name: string

        name to set

      Returns void

    • the generic setter for all properties of this type. Should be overridden for every type with properties. If implementations of set_property don't emit property change notification explicitly, this will be done implicitly by the type system. However, if the notify signal is emitted explicitly, the type system will not emit it a second time.

      Parameters

      • property_id: number
      • value: any
      • pspec: ParamSpec

      Returns void

    • Flags a widget to be displayed. Any widget that isn’t shown will not appear on the screen. If you want to show all the widgets in a container, it’s easier to call gtk_widget_show_all() on the container, instead of individually showing the widgets.

      Remember that you have to show the containers containing a widget, in addition to the widget itself, before it will appear onscreen.

      When a toplevel container is shown, it is immediately realized and mapped; other shown widgets are realized and mapped when their toplevel container is realized and mapped.

      Returns void

    • Recursively shows a widget, and any child widgets (if the widget is a container).

      Returns void

    • Parameters

      • help_type: WidgetHelpType

      Returns boolean

    • This function is only used by #GtkContainer subclasses, to assign a size and position to their child widgets.

      In this function, the allocation may be adjusted. It will be forced to a 1x1 minimum size, and the adjust_size_allocation virtual method on the child will be used to adjust the allocation. Standard adjustments include removing the widget’s margins, and applying the widget’s #GtkWidget:halign and #GtkWidget:valign properties.

      For baseline support in containers you need to use gtk_widget_size_allocate_with_baseline() instead.

      Parameters

      • allocation: Rectangle

        position and size to be allocated to

      Returns void

    • Signal emitted when the widget state changes. Deprecated: 3.0

      Parameters

      • previous_state: StateType

      Returns void

    • Signal emitted when the widget state changes, see gtk_widget_get_state_flags().

      Parameters

      • previous_state_flags: StateFlags

      Returns void

    • Signal emitted when a new style has been set on a widget. Deprecated: 3.0

      Parameters

      • previous_style: Style

      Returns void

    • Signal emitted when the GtkStyleContext of a widget is changed.

      Returns void

    • Signal emitted when a touch event happens

      Parameters

      • event: EventTouch

      Returns boolean

    • This function is only for use in widget implementations. Causes a widget to be unmapped if it’s currently mapped.

      Returns void

    • Signal will be emitted when the widget’s window is unmapped.

      Parameters

      • event: EventAny

      Returns boolean

    • This function is only useful in widget implementations. Causes a widget to be unrealized (frees all GDK resources associated with the widget, such as widget->window).

      Returns void

    • Signal emitted when the widget’s window is obscured or unobscured.

      Parameters

      • event: EventVisibility

      Returns boolean

    • Signal emitted when the state of the toplevel window associated to the widget changes.

      Parameters

      • event: EventWindowState

      Returns boolean

    • 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: Closure

        #GClosure to watch

      Returns void

    • Parameters

      • klass: any

      Returns any

    • Parameters

      • callback_name: string
      • callback_symbol: Callback

      Returns void

    • Parameters

      • name: string
      • internal_child: boolean
      • struct_offset: number

      Returns void

    • Parameters

      • what: number
      • Optionaldata: any

      Returns number

    • Parameters

      • property_name: string

      Returns ParamSpec<unknown> | null

    • Parameters

      • property_name: string

      Returns ParamSpec

    • Parameters

      • property_name: string

      Returns ParamSpec

    • Returns string

    • Obtains the current default reading direction. See gtk_widget_set_default_direction().

      Returns TextDirection

    • Gets the value set by gtk_window_set_default_icon_list(). The list is a copy and should be freed with g_list_free(), but the pixbufs in the list have not had their reference count incremented.

      Returns Pixbuf[]

    • Returns the fallback icon name for windows that has been set with gtk_window_set_default_icon_name(). The returned string is owned by GTK+ and should not be modified. It is only valid until the next call to gtk_window_set_default_icon_name().

      Returns string

    • Returns the default style used by all widgets initially.

      Returns Style

    • Returns void

    • Parameters

      • pspecs: ParamSpec<unknown>[]

      Returns void

    • Parameters

      • property_id: number
      • pspec: ParamSpec

      Returns void

    • Parameters

      • pspecs: ParamSpec<unknown>[]

      Returns void

    • Parameters

      • property_id: number
      • pspec: ParamSpec

      Returns void

    • Parameters

      • pspec: ParamSpec

      Returns void

    • 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

      • g_iface: TypeInterface

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

      • property_name: 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

      • g_iface: 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

      • g_iface: TypeInterface

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

      Returns ParamSpec<unknown>[]

    • Returns ParamSpec<unknown>[]

    • Returns ParamSpec<unknown>[]

    • Returns ParamSpec<unknown>[]

    • Returns a list of all existing toplevel windows. 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 Widget[]

    • Parameters

      • type: WindowType

      Returns Window

    • Parameters

      • object_type: GType
      • parameters: Parameter[]

      Returns Object

    • Parameters

      • property_id: number
      • name: string

      Returns void

    • Cancels the effect of a previous call to gtk_widget_push_composite_child().

      Returns void

    • Makes all newly-created widgets as composite children until the corresponding gtk_widget_pop_composite_child() call.

      A composite child is a child that’s an implementation detail of the container it’s inside and should not be visible to people using the container. Composite children aren’t treated differently by GTK+ (but see gtk_container_foreach() vs. gtk_container_forall()), but e.g. GUI builders might want to treat them in a different way.

      Returns void

    • Parameters

      • role: Role

      Returns void

    • Parameters

      • type: GType

      Returns void

    • By default, after showing the first #GtkWindow, GTK+ calls gdk_notify_startup_complete(). Call this function to disable the automatic startup notification. You might do this if your first window is a splash screen, and you want to delay notification until after your real main window has been shown, for example.

      In that example, you would disable startup notification temporarily, show your splash screen, then re-enable it so that showing the main window would automatically result in notification.

      Parameters

      • setting: boolean

        %TRUE to automatically do startup notification

      Returns void

    • Parameters

      • connect_func: BuilderConnectFunc

      Returns void

    • Parameters

      • name: string

      Returns void

    • Sets the default reading direction for widgets where the direction has not been explicitly set by gtk_widget_set_direction().

      Parameters

      • dir: TextDirection

        the new default direction. This cannot be %GTK_TEXT_DIR_NONE.

      Returns void

    • Sets an icon to be used as fallback for windows that haven't had gtk_window_set_icon() called on them from a pixbuf.

      Parameters

      • icon: Pixbuf

        the icon

      Returns void

    • Sets an icon to be used as fallback for windows that haven't had gtk_window_set_icon_list() called on them from a file on disk. Warns on failure if err is %NULL.

      Parameters

      • filename: string

        location of icon file

      Returns boolean

    • Sets an icon list to be used as fallback for windows that haven't had gtk_window_set_icon_list() called on them to set up a window-specific icon list. This function allows you to set up the icon for all windows in your app at once.

      See gtk_window_set_icon_list() for more details.

      Parameters

      • list: Pixbuf[]

        a list of #GdkPixbuf

      Returns void

    • Sets an icon to be used as fallback for windows that haven't had gtk_window_set_icon_list() called on them from a named themed icon, see gtk_window_set_icon_name().

      Parameters

      • name: string

        the name of the themed icon

      Returns void

    • Opens or closes the [interactive debugger][interactive-debugging], which offers access to the widget hierarchy of the application and to useful debugging tools.

      Parameters

      • enable: boolean

        %TRUE to enable interactive debugging

      Returns void

    • Parameters

      • template_bytes: Uint8Array<ArrayBufferLike> | Bytes

      Returns void

    • Parameters

      • resource_name: string

      Returns void

    Properties

    attribute?: Attr
    bin: Bin
    class_name: string
    class_names: string[]
    click_through: boolean
    container: Container
    css: string
    cursor?: Cursor
    hpack: "fill" | "start" | "end" | "center" | "baseline"
    is_destroyed: boolean

    Whether this widget has been destroyed.

    vpack: "fill" | "start" | "end" | "center" | "baseline"
    widget: Widget
    $gtype: GType<Window>