Package ch.bailu.gtk.gtk
Klasse WidgetClass
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.WidgetClass
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
WidgetClassExtended
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringComputes whether a container should give this
widget extra space when possible.static final StringVfunc for gtk_widget_contains().static final StringVfunc called when the CSS used by widget was changed.static final StringSignal emitted when the text direction of a
widget changes.static final StringVfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)static final StringCalled to get the request mode, if the widget
does not have a layout manager.static final StringCauses @widget to have the keyboard focus for the
`GtkWindow` it’s inside.static final StringSignal emitted when widget is hidden.static final StringSignal emitted if keyboard navigation fails.static final StringSignal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.static final StringCalled to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.static final StringActivates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.static final StringSignal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)static final StringThe object class structure needs to be the first
element in the widget class structure in order for the class mechanism
to work correctly.static final Stringstatic final StringSignal 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.static final StringSignal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).static final StringCalled when the widget gets added to a `GtkRoot` widget.static final StringSets the focused child of a widget.static final StringSignal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)static final StringCalled to set the allocation, if the widget does
not have a layout manager.static final StringVfunc called when a new snapshot of the widget has to be taken.static final StringSignal emitted when the widget state changes,
see gtk_widget_get_state_flags().static final StringEmitted when a system setting was changed.static final StringSignal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.static final StringSignal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).static final StringCalled when the widget is about to be removed from its
`GtkRoot` widget. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddBinding(int keyval, int mods, WidgetClass.OnShortcutFunc callback, Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that calls the given @callback
with arguments according to @format_string.voidaddBinding(int keyval, int mods, WidgetClass.OnShortcutFunc callback, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that calls the given @callback
with arguments according to @format_string.voidaddBindingAction(int keyval, int mods, Str action_name, Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that activates the given
@action_name with arguments read according to @format_string.voidaddBindingAction(int keyval, int mods, String action_name, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that activates the given
@action_name with arguments read according to @format_string.voidaddBindingSignal(int keyval, int mods, Str signal, Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that emits the given action
@signal with arguments read according to @format_string.voidaddBindingSignal(int keyval, int mods, String signal, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that emits the given action
@signal with arguments read according to @format_string.voidaddShortcut(Shortcut shortcut) Installs a shortcut in @widget_class.voidbindTemplateCallbackFull(Str callback_name, WidgetClass.OnCallback callback_symbol) Associates a name to be used in GtkBuilder XML with a symbol.voidbindTemplateCallbackFull(String callback_name, WidgetClass.OnCallback callback_symbol) Associates a name to be used in GtkBuilder XML with a symbol.voidbindTemplateChildFull(Str name, boolean internal_child, long struct_offset) Assigns an object declared in the class template XML to be set to
a location on a freshly built instance’s private data, or
alternatively accessible via [method@Gtk.Widget.get_template_child].voidbindTemplateChildFull(String name, boolean internal_child, long struct_offset) Assigns an object declared in the class template XML to be set to
a location on a freshly built instance’s private data, or
alternatively accessible via [method@Gtk.Widget.get_template_child].intRetrieves the accessible role used by the given widget class.intRetrieves the signal id for the activation signal.static ClassHandlerGets the name used by this class for matching in CSS code.ch.bailu.gtk.gtk.JnaWidgetClass.OnComputeExpandComputes whether a container should give this
widget extra space when possible.ch.bailu.gtk.gtk.JnaWidgetClass.OnContainsVfunc for gtk_widget_contains().ch.bailu.gtk.gtk.JnaWidgetClass.OnCssChangedVfunc called when the CSS used by widget was changed.ch.bailu.gtk.gtk.JnaWidgetClass.OnDirectionChangedSignal emitted when the text direction of a
widget changes.ch.bailu.gtk.gtk.JnaWidgetClass.OnFocusVfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)ch.bailu.gtk.gtk.JnaWidgetClass.OnGetRequestModeCalled to get the request mode, if the widget
does not have a layout manager.ch.bailu.gtk.gtk.JnaWidgetClass.OnGrabFocusCauses @widget to have the keyboard focus for the
`GtkWindow` it’s inside.ch.bailu.gtk.gtk.JnaWidgetClass.OnHideSignal emitted when widget is hidden.ch.bailu.gtk.gtk.JnaWidgetClass.OnKeynavFailedSignal emitted if keyboard navigation fails.ch.bailu.gtk.gtk.JnaWidgetClass.OnMapSignal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.ch.bailu.gtk.gtk.JnaWidgetClass.OnMeasureCalled to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.ch.bailu.gtk.gtk.JnaWidgetClass.OnMnemonicActivateActivates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.ch.bailu.gtk.gtk.JnaWidgetClass.OnMoveFocusSignal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)ch.bailu.gtk.gtk.WidgetClassPrivatech.bailu.gtk.gtk.JnaWidgetClass.OnQueryTooltipSignal 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.ch.bailu.gtk.gtk.JnaWidgetClass.OnRealizeSignal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).ch.bailu.gtk.gtk.JnaWidgetClass.OnRootCalled when the widget gets added to a `GtkRoot` widget.ch.bailu.gtk.gtk.JnaWidgetClass.OnSetFocusChildSets the focused child of a widget.ch.bailu.gtk.gtk.JnaWidgetClass.OnShowSignal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)ch.bailu.gtk.gtk.JnaWidgetClass.OnSizeAllocateCalled to set the allocation, if the widget does
not have a layout manager.ch.bailu.gtk.gtk.JnaWidgetClass.OnSnapshotVfunc called when a new snapshot of the widget has to be taken.ch.bailu.gtk.gtk.JnaWidgetClass.OnStateFlagsChangedSignal emitted when the widget state changes,
see gtk_widget_get_state_flags().ch.bailu.gtk.gtk.JnaWidgetClass.OnSystemSettingChangedEmitted when a system setting was changed.ch.bailu.gtk.gtk.JnaWidgetClass.OnUnmapSignal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.ch.bailu.gtk.gtk.JnaWidgetClass.OnUnrealizeSignal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).ch.bailu.gtk.gtk.JnaWidgetClass.OnUnrootCalled when the widget is about to be removed from its
`GtkRoot` widget.static intlongRetrieves the type of the [class@Gtk.LayoutManager]
used by widgets of class @widget_class.static TypeSystem.TypeSizestatic TypeSystem.TypeSizevoidinstallAction(Str action_name, Str parameter_type, WidgetClass.OnWidgetActionActivateFunc activate) Adds an action for all instances of a widget class.voidinstallAction(String action_name, String parameter_type, WidgetClass.OnWidgetActionActivateFunc activate) Adds an action for all instances of a widget class.voidinstallPropertyAction(Str action_name, Str property_name) Installs an action called @action_name on @widget_class and
binds its state to the value of the @property_name property.voidinstallPropertyAction(String action_name, String property_name) Installs an action called @action_name on @widget_class and
binds its state to the value of the @property_name property.voidsetAccessibleRole(int accessible_role) Sets the accessible role used by the given widget class.voidsetActivateSignal(int signal_id) Sets the activation signal for a widget class.voidsetActivateSignalFromName(Str signal_name) Sets the activation signal for a widget class.voidsetActivateSignalFromName(String signal_name) Sets the activation signal for a widget class.voidsetCssName(Str name) Sets the name to be used for CSS matching of widgets.voidsetCssName(String name) Sets the name to be used for CSS matching of widgets.voidsetFieldComputeExpand(WidgetClass.OnComputeExpand compute_expand) Computes whether a container should give this
widget extra space when possible.voidsetFieldContains(WidgetClass.OnContains contains) Vfunc for gtk_widget_contains().voidsetFieldCssChanged(WidgetClass.OnCssChanged css_changed) Vfunc called when the CSS used by widget was changed.voidsetFieldDirectionChanged(WidgetClass.OnDirectionChanged direction_changed) Signal emitted when the text direction of a
widget changes.voidsetFieldFocus(WidgetClass.OnFocus focus) Vfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)voidsetFieldGetRequestMode(WidgetClass.OnGetRequestMode get_request_mode) Called to get the request mode, if the widget
does not have a layout manager.voidsetFieldGrabFocus(WidgetClass.OnGrabFocus grab_focus) Causes @widget to have the keyboard focus for the
`GtkWindow` it’s inside.voidSignal emitted when widget is hidden.voidsetFieldKeynavFailed(WidgetClass.OnKeynavFailed keynav_failed) Signal emitted if keyboard navigation fails.voidSignal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.voidsetFieldMeasure(WidgetClass.OnMeasure measure) Called to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.voidsetFieldMnemonicActivate(WidgetClass.OnMnemonicActivate mnemonic_activate) Activates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.voidsetFieldMoveFocus(WidgetClass.OnMoveFocus move_focus) Signal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)voidsetFieldQueryTooltip(WidgetClass.OnQueryTooltip query_tooltip) 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.voidsetFieldRealize(WidgetClass.OnRealize realize) Signal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).voidCalled when the widget gets added to a `GtkRoot` widget.voidsetFieldSetFocusChild(WidgetClass.OnSetFocusChild set_focus_child) Sets the focused child of a widget.voidSignal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)voidsetFieldSizeAllocate(WidgetClass.OnSizeAllocate size_allocate) Called to set the allocation, if the widget does
not have a layout manager.voidsetFieldSnapshot(WidgetClass.OnSnapshot snapshot) Vfunc called when a new snapshot of the widget has to be taken.voidsetFieldStateFlagsChanged(WidgetClass.OnStateFlagsChanged state_flags_changed) Signal emitted when the widget state changes,
see gtk_widget_get_state_flags().voidsetFieldSystemSettingChanged(WidgetClass.OnSystemSettingChanged system_setting_changed) Emitted when a system setting was changed.voidsetFieldUnmap(WidgetClass.OnUnmap unmap) Signal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.voidsetFieldUnrealize(WidgetClass.OnUnrealize unrealize) Signal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).voidsetFieldUnroot(WidgetClass.OnUnroot unroot) Called when the widget is about to be removed from its
`GtkRoot` widget.voidsetLayoutManagerType(long type) Sets the type to be used for creating layout managers for
widgets of @widget_class.voidsetTemplate(Bytes template_bytes) This should be called at class initialization time to specify
the `GtkBuilder` XML to be used to extend a widget.voidsetTemplateFromResource(Str resource_name) A convenience function that calls [method@Gtk.WidgetClass.set_template]
with the contents of a resource.voidsetTemplateFromResource(String resource_name) A convenience function that calls [method@Gtk.WidgetClass.set_template]
with the contents of a resource.voidsetTemplateScope(BuilderScope scope) Overrides the default scope to be used when parsing the class template.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
PARENT_CLASS
The object class structure needs to be the first
element in the widget class structure in order for the class mechanism
to work correctly. This allows a GtkWidgetClass pointer to be cast to
a GObjectClass pointer.
Private field: direct-type- Siehe auch:
-
SHOW
Signal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
HIDE
Signal emitted when widget is hidden.
SeeWidgetClass.OnHide.onHide(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
MAP
Signal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.
SeeWidgetClass.OnMap.onMap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
UNMAP
Signal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.
SeeWidgetClass.OnUnmap.onUnmap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
REALIZE
Signal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).
SeeWidgetClass.OnRealize.onRealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
UNREALIZE
Signal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).
SeeWidgetClass.OnUnrealize.onUnrealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
ROOT
Called when the widget gets added to a `GtkRoot` widget. Must
chain up
SeeWidgetClass.OnRoot.onRoot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
UNROOT
Called when the widget is about to be removed from its
`GtkRoot` widget. Must chain up
SeeWidgetClass.OnUnroot.onUnroot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
SIZE_ALLOCATE
Called to set the allocation, if the widget does
not have a layout manager.
SeeWidgetClass.OnSizeAllocate.onSizeAllocate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, int)- Siehe auch:
-
STATE_FLAGS_CHANGED
Signal emitted when the widget state changes,
see gtk_widget_get_state_flags().
SeeWidgetClass.OnStateFlagsChanged.onStateFlagsChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
DIRECTION_CHANGED
Signal emitted when the text direction of a
widget changes.
SeeWidgetClass.OnDirectionChanged.onDirectionChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
GET_REQUEST_MODE
Called to get the request mode, if the widget
does not have a layout manager.
This allows a widget to tell its parent container whether
it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
%GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
%GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have
`GtkWidgetClass.measure()` called first to get the default width (passing
a for_size of -1), then again to get the height for said default width.
%GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or
width-for-height geometry management for said widget and is the
default return.
It’s important to note that any widget
which trades height-for-width or width-for-height must respond properly
to a for_size value >= -1 passed to `GtkWidgetClass.measure`, for both
possible orientations.
SeeWidgetClass.OnGetRequestMode.onGetRequestMode(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
MEASURE
Called to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.
Depending on the orientation parameter, the passed for_size can be
interpreted as width or height. A widget will never be allocated less
than its minimum size.
SeeWidgetClass.OnMeasure.onMeasure(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int)- Siehe auch:
-
MNEMONIC_ACTIVATE
Activates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.
SeeWidgetClass.OnMnemonicActivate.onMnemonicActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, boolean)- Siehe auch:
-
GRAB_FOCUS
Causes @widget to have the keyboard focus for the
`GtkWindow` it’s inside.
SeeWidgetClass.OnGrabFocus.onGrabFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
FOCUS
Vfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
SET_FOCUS_CHILD
Sets the focused child of a widget. Must chain up
SeeWidgetClass.OnSetFocusChild.onSetFocusChild(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Widget)- Siehe auch:
-
MOVE_FOCUS
Signal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
KEYNAV_FAILED
Signal emitted if keyboard navigation fails.
SeeWidgetClass.OnKeynavFailed.onKeynavFailed(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
QUERY_TOOLTIP
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.
SeeWidgetClass.OnQueryTooltip.onQueryTooltip(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, boolean, ch.bailu.gtk.gtk.Tooltip)- Siehe auch:
-
COMPUTE_EXPAND
Computes whether a container should give this
widget extra space when possible.
SeeWidgetClass.OnComputeExpand.onComputeExpand(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int)- Siehe auch:
-
CSS_CHANGED
Vfunc called when the CSS used by widget was changed. Widgets
should then discard their caches that depend on CSS and queue resizes or
redraws accordingly. The default implementation will take care of this for
all the default CSS properties, so implementations must chain up.
SeeWidgetClass.OnCssChanged.onCssChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.CssStyleChange)- Siehe auch:
-
SYSTEM_SETTING_CHANGED
Emitted when a system setting was changed. Must chain up.
SeeWidgetClass.OnSystemSettingChanged.onSystemSettingChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int)- Siehe auch:
-
SNAPSHOT
Vfunc called when a new snapshot of the widget has to be taken.
SeeWidgetClass.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Snapshot)- Siehe auch:
-
CONTAINS
Vfunc for gtk_widget_contains().
SeeWidgetClass.OnContains.onContains(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, double, double)- Siehe auch:
-
PRIV
- Siehe auch:
-
-
Konstruktordetails
-
WidgetClass
-
-
Methodendetails
-
getClassHandler
-
setFieldShow
Signal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldShow
public ch.bailu.gtk.gtk.JnaWidgetClass.OnShow getFieldShow()Signal emitted when widget is shown
SeeWidgetClass.OnShow.onShow(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldHide
Signal emitted when widget is hidden.
SeeWidgetClass.OnHide.onHide(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldHide
public ch.bailu.gtk.gtk.JnaWidgetClass.OnHide getFieldHide()Signal emitted when widget is hidden.
SeeWidgetClass.OnHide.onHide(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldMap
Signal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.
SeeWidgetClass.OnMap.onMap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldMap
public ch.bailu.gtk.gtk.JnaWidgetClass.OnMap getFieldMap()Signal emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
gtk_widget_set_visible()) and all its parents up to the toplevel
widget are also visible.
SeeWidgetClass.OnMap.onMap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldUnmap
Signal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.
SeeWidgetClass.OnUnmap.onUnmap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldUnmap
public ch.bailu.gtk.gtk.JnaWidgetClass.OnUnmap getFieldUnmap()Signal emitted when widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel
widget have been set as hidden.
SeeWidgetClass.OnUnmap.onUnmap(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldRealize
Signal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).
SeeWidgetClass.OnRealize.onRealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldRealize
public ch.bailu.gtk.gtk.JnaWidgetClass.OnRealize getFieldRealize()Signal emitted when widget is associated with a
`GdkSurface`, which means that gtk_widget_realize() has been called or
the widget has been mapped (that is, it is going to be drawn).
SeeWidgetClass.OnRealize.onRealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldUnrealize
Signal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).
SeeWidgetClass.OnUnrealize.onUnrealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldUnrealize
public ch.bailu.gtk.gtk.JnaWidgetClass.OnUnrealize getFieldUnrealize()Signal emitted when the GdkSurface associated with
widget is destroyed, which means that gtk_widget_unrealize() has
been called or the widget has been unmapped (that is, it is going
to be hidden).
SeeWidgetClass.OnUnrealize.onUnrealize(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldRoot
Called when the widget gets added to a `GtkRoot` widget. Must
chain up
SeeWidgetClass.OnRoot.onRoot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldRoot
public ch.bailu.gtk.gtk.JnaWidgetClass.OnRoot getFieldRoot()Called when the widget gets added to a `GtkRoot` widget. Must
chain up
SeeWidgetClass.OnRoot.onRoot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldUnroot
Called when the widget is about to be removed from its
`GtkRoot` widget. Must chain up
SeeWidgetClass.OnUnroot.onUnroot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldUnroot
public ch.bailu.gtk.gtk.JnaWidgetClass.OnUnroot getFieldUnroot()Called when the widget is about to be removed from its
`GtkRoot` widget. Must chain up
SeeWidgetClass.OnUnroot.onUnroot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldSizeAllocate
Called to set the allocation, if the widget does
not have a layout manager.
SeeWidgetClass.OnSizeAllocate.onSizeAllocate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, int) -
getFieldSizeAllocate
public ch.bailu.gtk.gtk.JnaWidgetClass.OnSizeAllocate getFieldSizeAllocate()Called to set the allocation, if the widget does
not have a layout manager.
SeeWidgetClass.OnSizeAllocate.onSizeAllocate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, int) -
setFieldStateFlagsChanged
Signal emitted when the widget state changes,
see gtk_widget_get_state_flags().
SeeWidgetClass.OnStateFlagsChanged.onStateFlagsChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
getFieldStateFlagsChanged
public ch.bailu.gtk.gtk.JnaWidgetClass.OnStateFlagsChanged getFieldStateFlagsChanged()Signal emitted when the widget state changes,
see gtk_widget_get_state_flags().
SeeWidgetClass.OnStateFlagsChanged.onStateFlagsChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
setFieldDirectionChanged
Signal emitted when the text direction of a
widget changes.
SeeWidgetClass.OnDirectionChanged.onDirectionChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
getFieldDirectionChanged
public ch.bailu.gtk.gtk.JnaWidgetClass.OnDirectionChanged getFieldDirectionChanged()Signal emitted when the text direction of a
widget changes.
SeeWidgetClass.OnDirectionChanged.onDirectionChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
setFieldGetRequestMode
Called to get the request mode, if the widget
does not have a layout manager.
This allows a widget to tell its parent container whether
it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
%GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
%GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have
`GtkWidgetClass.measure()` called first to get the default width (passing
a for_size of -1), then again to get the height for said default width.
%GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or
width-for-height geometry management for said widget and is the
default return.
It’s important to note that any widget
which trades height-for-width or width-for-height must respond properly
to a for_size value >= -1 passed to `GtkWidgetClass.measure`, for both
possible orientations.
SeeWidgetClass.OnGetRequestMode.onGetRequestMode(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldGetRequestMode
public ch.bailu.gtk.gtk.JnaWidgetClass.OnGetRequestMode getFieldGetRequestMode()Called to get the request mode, if the widget
does not have a layout manager.
This allows a widget to tell its parent container whether
it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
%GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
%GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have
`GtkWidgetClass.measure()` called first to get the default width (passing
a for_size of -1), then again to get the height for said default width.
%GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or
width-for-height geometry management for said widget and is the
default return.
It’s important to note that any widget
which trades height-for-width or width-for-height must respond properly
to a for_size value >= -1 passed to `GtkWidgetClass.measure`, for both
possible orientations.
SeeWidgetClass.OnGetRequestMode.onGetRequestMode(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldMeasure
Called to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.
Depending on the orientation parameter, the passed for_size can be
interpreted as width or height. A widget will never be allocated less
than its minimum size.
SeeWidgetClass.OnMeasure.onMeasure(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int) -
getFieldMeasure
public ch.bailu.gtk.gtk.JnaWidgetClass.OnMeasure getFieldMeasure()Called to obtain the minimum and natural size of the widget,
if the widget does not have a layout manager.
Depending on the orientation parameter, the passed for_size can be
interpreted as width or height. A widget will never be allocated less
than its minimum size.
SeeWidgetClass.OnMeasure.onMeasure(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int) -
setFieldMnemonicActivate
Activates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.
SeeWidgetClass.OnMnemonicActivate.onMnemonicActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, boolean) -
getFieldMnemonicActivate
public ch.bailu.gtk.gtk.JnaWidgetClass.OnMnemonicActivate getFieldMnemonicActivate()Activates the @widget if @group_cycling is
%FALSE, and just grabs the focus if @group_cycling is %TRUE.
SeeWidgetClass.OnMnemonicActivate.onMnemonicActivate(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, boolean) -
setFieldGrabFocus
Causes @widget to have the keyboard focus for the
`GtkWindow` it’s inside.
SeeWidgetClass.OnGrabFocus.onGrabFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
getFieldGrabFocus
public ch.bailu.gtk.gtk.JnaWidgetClass.OnGrabFocus getFieldGrabFocus()Causes @widget to have the keyboard focus for the
`GtkWindow` it’s inside.
SeeWidgetClass.OnGrabFocus.onGrabFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget) -
setFieldFocus
Vfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
getFieldFocus
public ch.bailu.gtk.gtk.JnaWidgetClass.OnFocus getFieldFocus()Vfunc for gtk_widget_child_focus()
SeeWidgetClass.OnFocus.onFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
setFieldSetFocusChild
Sets the focused child of a widget. Must chain up
SeeWidgetClass.OnSetFocusChild.onSetFocusChild(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Widget) -
getFieldSetFocusChild
public ch.bailu.gtk.gtk.JnaWidgetClass.OnSetFocusChild getFieldSetFocusChild()Sets the focused child of a widget. Must chain up
SeeWidgetClass.OnSetFocusChild.onSetFocusChild(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Widget) -
setFieldMoveFocus
Signal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
getFieldMoveFocus
public ch.bailu.gtk.gtk.JnaWidgetClass.OnMoveFocus getFieldMoveFocus()Signal emitted when a change of focus is requested
SeeWidgetClass.OnMoveFocus.onMoveFocus(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
setFieldQueryTooltip
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.
SeeWidgetClass.OnQueryTooltip.onQueryTooltip(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, boolean, ch.bailu.gtk.gtk.Tooltip) -
getFieldQueryTooltip
public ch.bailu.gtk.gtk.JnaWidgetClass.OnQueryTooltip getFieldQueryTooltip()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.
SeeWidgetClass.OnQueryTooltip.onQueryTooltip(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int, int, boolean, ch.bailu.gtk.gtk.Tooltip) -
setFieldComputeExpand
Computes whether a container should give this
widget extra space when possible.
SeeWidgetClass.OnComputeExpand.onComputeExpand(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int) -
getFieldComputeExpand
public ch.bailu.gtk.gtk.JnaWidgetClass.OnComputeExpand getFieldComputeExpand()Computes whether a container should give this
widget extra space when possible.
SeeWidgetClass.OnComputeExpand.onComputeExpand(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.type.Int, ch.bailu.gtk.type.Int) -
setFieldCssChanged
Vfunc called when the CSS used by widget was changed. Widgets
should then discard their caches that depend on CSS and queue resizes or
redraws accordingly. The default implementation will take care of this for
all the default CSS properties, so implementations must chain up.
SeeWidgetClass.OnCssChanged.onCssChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.CssStyleChange) -
getFieldCssChanged
public ch.bailu.gtk.gtk.JnaWidgetClass.OnCssChanged getFieldCssChanged()Vfunc called when the CSS used by widget was changed. Widgets
should then discard their caches that depend on CSS and queue resizes or
redraws accordingly. The default implementation will take care of this for
all the default CSS properties, so implementations must chain up.
SeeWidgetClass.OnCssChanged.onCssChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.CssStyleChange) -
setFieldSystemSettingChanged
Emitted when a system setting was changed. Must chain up.
SeeWidgetClass.OnSystemSettingChanged.onSystemSettingChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
getFieldSystemSettingChanged
public ch.bailu.gtk.gtk.JnaWidgetClass.OnSystemSettingChanged getFieldSystemSettingChanged()Emitted when a system setting was changed. Must chain up.
SeeWidgetClass.OnSystemSettingChanged.onSystemSettingChanged(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, int) -
setFieldSnapshot
Vfunc called when a new snapshot of the widget has to be taken.
SeeWidgetClass.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Snapshot) -
getFieldSnapshot
public ch.bailu.gtk.gtk.JnaWidgetClass.OnSnapshot getFieldSnapshot()Vfunc called when a new snapshot of the widget has to be taken.
SeeWidgetClass.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, ch.bailu.gtk.gtk.Snapshot) -
setFieldContains
Vfunc for gtk_widget_contains().
SeeWidgetClass.OnContains.onContains(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, double, double) -
getFieldContains
public ch.bailu.gtk.gtk.JnaWidgetClass.OnContains getFieldContains()Vfunc for gtk_widget_contains().
SeeWidgetClass.OnContains.onContains(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gtk.Widget, double, double) -
getFieldPriv
public ch.bailu.gtk.gtk.WidgetClassPrivate getFieldPriv() -
addBinding
public void addBinding(int keyval, int mods, WidgetClass.OnShortcutFunc callback, @Nullable Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that calls the given @callback
with arguments according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization. It does not provide for user data, if you need that,
you will have to use [method@Gtk.WidgetClass.add_shortcut] with a custom
shortcut.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installcallback- the callback to call upon activationformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addBinding
public void addBinding(int keyval, int mods, WidgetClass.OnShortcutFunc callback, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that calls the given @callback
with arguments according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization. It does not provide for user data, if you need that,
you will have to use [method@Gtk.WidgetClass.add_shortcut] with a custom
shortcut.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installcallback- the callback to call upon activationformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addBindingAction
public void addBindingAction(int keyval, int mods, @Nonnull Str action_name, @Nullable Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that activates the given
@action_name with arguments read according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installaction_name- the action to activateformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addBindingAction
public void addBindingAction(int keyval, int mods, String action_name, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that activates the given
@action_name with arguments read according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installaction_name- the action to activateformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addBindingSignal
public void addBindingSignal(int keyval, int mods, @Nonnull Str signal, @Nullable Str format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that emits the given action
@signal with arguments read according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installsignal- the signal to executeformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addBindingSignal
public void addBindingSignal(int keyval, int mods, String signal, String format_string, Object... _ellipsis) Creates a new shortcut for @widget_class that emits the given action
@signal with arguments read according to @format_string.
The arguments and format string must be provided in the same way as
with [ctor@GLib.Variant.new].
This function is a convenience wrapper around
[method@Gtk.WidgetClass.add_shortcut] and must be called during class
initialization.- Parameter:
keyval- key value of binding to installmods- key modifier of binding to installsignal- the signal to executeformat_string- `GVariant` format string for arguments_ellipsis- arguments, as given by format string
-
addShortcut
Installs a shortcut in @widget_class.
Every instance created for @widget_class or its subclasses will
inherit this shortcut and trigger it.
Shortcuts added this way will be triggered in the [enum@Gtk.PropagationPhase.bubble]
phase, which means they may also trigger if child widgets have focus.
This function must only be used in class initialization functions
otherwise it is not guaranteed that the shortcut will be installed.- Parameter:
shortcut- the shortcut to add
-
bindTemplateCallbackFull
public void bindTemplateCallbackFull(@Nonnull Str callback_name, WidgetClass.OnCallback callback_symbol) Associates a name to be used in GtkBuilder XML with a symbol.
This function is not supported after [method@Gtk.WidgetClass.set_template_scope]
has been used on @widget_class.
See [method@Gtk.BuilderCScope.add_callback_symbol].
Note that this must be called from a composite widget classes
class initializer after calling [method@Gtk.WidgetClass.set_template].- Parameter:
callback_name- name of the callback as expected in the template XMLcallback_symbol- the callback symbol
-
bindTemplateCallbackFull
Associates a name to be used in GtkBuilder XML with a symbol.
This function is not supported after [method@Gtk.WidgetClass.set_template_scope]
has been used on @widget_class.
See [method@Gtk.BuilderCScope.add_callback_symbol].
Note that this must be called from a composite widget classes
class initializer after calling [method@Gtk.WidgetClass.set_template].- Parameter:
callback_name- name of the callback as expected in the template XMLcallback_symbol- the callback symbol
-
bindTemplateChildFull
Assigns an object declared in the class template XML to be set to
a location on a freshly built instance’s private data, or
alternatively accessible via [method@Gtk.Widget.get_template_child].
The struct can point either into the public instance, then you should
use `G_STRUCT_OFFSET(WidgetType, member)` for @struct_offset, or in the
private struct, then you should use `G_PRIVATE_OFFSET(WidgetType, member)`.
An explicit strong reference will be held automatically for the duration
of your instance’s life cycle, it will be released automatically when
`GObjectClass.dispose()` runs on your instance and if a nonzero @struct_offset
is specified, then the automatic location in your instance public or private
data will be set to `NULL`. You can however access an automated child pointer
the first time your classes `GObjectClass.dispose()` runs, or alternatively
in [signal@Gtk.Widget::destroy].
If @internal_child is specified, [vfunc@Gtk.Buildable.get_internal_child]
will be automatically implemented by the widget class so there is no
need to implement it manually.
The wrapper macros [func@Gtk.widget_class_bind_template_child],
[func@Gtk.widget_class_bind_template_child_internal],
[func@Gtk.widget_class_bind_template_child_private] and
[func@Gtk.widget_class_bind_template_child_internal_private]
might be more convenient to use.
Note that this must be called from a composite widget classes class
initializer after calling [method@Gtk.WidgetClass.set_template].- Parameter:
name- ID of the child defined in the template XMLinternal_child- whether the child should be accessible as an “internal-child” when this class is used in GtkBuilder XMLstruct_offset- The offset into the composite widget’s instance public or private structure where the automated child pointer should be set, or 0 to not assign the pointer
-
bindTemplateChildFull
Assigns an object declared in the class template XML to be set to
a location on a freshly built instance’s private data, or
alternatively accessible via [method@Gtk.Widget.get_template_child].
The struct can point either into the public instance, then you should
use `G_STRUCT_OFFSET(WidgetType, member)` for @struct_offset, or in the
private struct, then you should use `G_PRIVATE_OFFSET(WidgetType, member)`.
An explicit strong reference will be held automatically for the duration
of your instance’s life cycle, it will be released automatically when
`GObjectClass.dispose()` runs on your instance and if a nonzero @struct_offset
is specified, then the automatic location in your instance public or private
data will be set to `NULL`. You can however access an automated child pointer
the first time your classes `GObjectClass.dispose()` runs, or alternatively
in [signal@Gtk.Widget::destroy].
If @internal_child is specified, [vfunc@Gtk.Buildable.get_internal_child]
will be automatically implemented by the widget class so there is no
need to implement it manually.
The wrapper macros [func@Gtk.widget_class_bind_template_child],
[func@Gtk.widget_class_bind_template_child_internal],
[func@Gtk.widget_class_bind_template_child_private] and
[func@Gtk.widget_class_bind_template_child_internal_private]
might be more convenient to use.
Note that this must be called from a composite widget classes class
initializer after calling [method@Gtk.WidgetClass.set_template].- Parameter:
name- ID of the child defined in the template XMLinternal_child- whether the child should be accessible as an “internal-child” when this class is used in GtkBuilder XMLstruct_offset- The offset into the composite widget’s instance public or private structure where the automated child pointer should be set, or 0 to not assign the pointer
-
getAccessibleRole
public int getAccessibleRole()Retrieves the accessible role used by the given widget class.
Different accessible roles have different states, and are rendered
differently by assistive technologies.
See also: [method@Gtk.Accessible.get_accessible_role].- Gibt zurück:
- the accessible role for the widget class
-
getActivateSignal
public int getActivateSignal()Retrieves the signal id for the activation signal.
The activation signal is set using
[method@Gtk.WidgetClass.set_activate_signal].- Gibt zurück:
- a signal id, or 0 if the widget class does not specify an activation signal
-
getCssName
Gets the name used by this class for matching in CSS code.
See [method@Gtk.WidgetClass.set_css_name] for details.- Gibt zurück:
- the CSS name of the given class
-
getLayoutManagerType
public long getLayoutManagerType()Retrieves the type of the [class@Gtk.LayoutManager]
used by widgets of class @widget_class.
See also: [method@Gtk.WidgetClass.set_layout_manager_type].- Gibt zurück:
- type of a `GtkLayoutManager` subclass, or `G_TYPE_INVALID`
-
installAction
public void installAction(@Nonnull Str action_name, @Nullable Str parameter_type, WidgetClass.OnWidgetActionActivateFunc activate) Adds an action for all instances of a widget class.
This function should be called at class initialization time.
Actions installed by this function are stateless. The only state
they have is whether they are enabled or not (which can be changed
with [method@Gtk.Widget.action_set_enabled]).- Parameter:
action_name- a prefixed action name, such as "clipboard.paste"parameter_type- the parameter typeactivate- callback to use when the action is activated
-
installAction
public void installAction(String action_name, String parameter_type, WidgetClass.OnWidgetActionActivateFunc activate) Adds an action for all instances of a widget class.
This function should be called at class initialization time.
Actions installed by this function are stateless. The only state
they have is whether they are enabled or not (which can be changed
with [method@Gtk.Widget.action_set_enabled]).- Parameter:
action_name- a prefixed action name, such as "clipboard.paste"parameter_type- the parameter typeactivate- callback to use when the action is activated
-
installPropertyAction
Installs an action called @action_name on @widget_class and
binds its state to the value of the @property_name property.
This function will perform a few sanity checks on the property selected
via @property_name. Namely, the property must exist, must be readable,
writable and must not be construct-only. There are also restrictions
on the type of the given property, it must be boolean, int, unsigned int,
double or string. If any of these conditions are not met, a critical
warning will be printed and no action will be added.
The state type of the action matches the property type.
If the property is boolean, the action will have no parameter and
toggle the property value. Otherwise, the action will have a parameter
of the same type as the property.- Parameter:
action_name- name of the actionproperty_name- name of a property in instances of @widget_class or any parent class
-
installPropertyAction
Installs an action called @action_name on @widget_class and
binds its state to the value of the @property_name property.
This function will perform a few sanity checks on the property selected
via @property_name. Namely, the property must exist, must be readable,
writable and must not be construct-only. There are also restrictions
on the type of the given property, it must be boolean, int, unsigned int,
double or string. If any of these conditions are not met, a critical
warning will be printed and no action will be added.
The state type of the action matches the property type.
If the property is boolean, the action will have no parameter and
toggle the property value. Otherwise, the action will have a parameter
of the same type as the property.- Parameter:
action_name- name of the actionproperty_name- name of a property in instances of @widget_class or any parent class
-
setAccessibleRole
public void setAccessibleRole(int accessible_role) Sets the accessible role used by the given widget class.
Different accessible roles have different states, and are
rendered differently by assistive technologies.- Parameter:
accessible_role- the accessible role to use
-
setActivateSignal
public void setActivateSignal(int signal_id) Sets the activation signal for a widget class.
The signal will be emitted when calling [method@Gtk.Widget.activate].
The @signal_id must have been registered with [function.GObject.signal_new]
or [func@GObject.signal_newv] before calling this function.- Parameter:
signal_id- the id for the activate signal
-
setActivateSignalFromName
Sets the activation signal for a widget class.
The signal id will by looked up by @signal_name.
The signal will be emitted when calling [method@Gtk.Widget.activate].
The @signal_name must have been registered with [function.GObject.signal_new]
or [func@GObject.signal_newv] before calling this function.- Parameter:
signal_name- the name of the activate signal of @widget_type
-
setActivateSignalFromName
Sets the activation signal for a widget class.
The signal id will by looked up by @signal_name.
The signal will be emitted when calling [method@Gtk.Widget.activate].
The @signal_name must have been registered with [function.GObject.signal_new]
or [func@GObject.signal_newv] before calling this function.- Parameter:
signal_name- the name of the activate signal of @widget_type
-
setCssName
Sets the name to be used for CSS matching of widgets.
If this function is not called for a given class, the name
set on the parent class is used. By default, `GtkWidget`
uses the name "widget".- Parameter:
name- name to use
-
setCssName
Sets the name to be used for CSS matching of widgets.
If this function is not called for a given class, the name
set on the parent class is used. By default, `GtkWidget`
uses the name "widget".- Parameter:
name- name to use
-
setLayoutManagerType
public void setLayoutManagerType(long type) Sets the type to be used for creating layout managers for
widgets of @widget_class.
The given @type must be a subtype of [class@Gtk.LayoutManager].
This function should only be called from class init functions
of widgets.- Parameter:
type- the object type that implements the `GtkLayoutManager` for @widget_class
-
setTemplate
This should be called at class initialization time to specify
the `GtkBuilder` XML to be used to extend a widget.
For convenience, [method@Gtk.WidgetClass.set_template_from_resource]
is also provided.
Note that any class that installs templates must call
[method@Gtk.Widget.init_template] in the widget’s instance initializer.- Parameter:
template_bytes- `GBytes` holding the `GtkBuilder` XML
-
setTemplateFromResource
A convenience function that calls [method@Gtk.WidgetClass.set_template]
with the contents of a resource.
Note that any class that installs templates must call
[method@Gtk.Widget.init_template] in the widget’s instance
initializer.- Parameter:
resource_name- resource path to load the template from
-
setTemplateFromResource
A convenience function that calls [method@Gtk.WidgetClass.set_template]
with the contents of a resource.
Note that any class that installs templates must call
[method@Gtk.Widget.init_template] in the widget’s instance
initializer.- Parameter:
resource_name- resource path to load the template from
-
setTemplateScope
Overrides the default scope to be used when parsing the class template.
This function is intended for language bindings.
Note that this must be called from a composite widget classes class
initializer after calling [method@Gtk.WidgetClass.set_template].- Parameter:
scope- `GtkBuilderScope` to use when loading the class template
-
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-