Class Widget
public class Widget
- Inheritance
-
Widget
- Inherited Members
Methods
ActionSetEnabled(IntPtr, NonNullableUtf8StringHandle, bool)
Calls native method gtk_widget_action_set_enabled.
public static extern void ActionSetEnabled(IntPtr widget, NonNullableUtf8StringHandle actionName, bool enabled)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
actionName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
enabled
boolTransfer ownership: None Nullable: False
Activate(IntPtr)
Calls native method gtk_widget_activate.
public static extern bool Activate(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ActivateAction(IntPtr, NonNullableUtf8StringHandle, VariantHandle)
Calls native method gtk_widget_activate_action_variant.
public static extern bool ActivateAction(IntPtr widget, NonNullableUtf8StringHandle name, VariantHandle args)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
args
VariantHandleTransfer ownership: None Nullable: True
Returns
- bool
Transfer ownership: None Nullable: False
ActivateDefault(IntPtr)
Calls native method gtk_widget_activate_default.
public static extern void ActivateDefault(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
AddController(IntPtr, IntPtr)
Calls native method gtk_widget_add_controller.
public static extern void AddController(IntPtr widget, IntPtr controller)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
controller
IntPtrTransfer ownership: Full Nullable: False
AddCssClass(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_widget_add_css_class.
public static extern void AddCssClass(IntPtr widget, NonNullableUtf8StringHandle cssClass)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
cssClass
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
AddMnemonicLabel(IntPtr, IntPtr)
Calls native method gtk_widget_add_mnemonic_label.
public static extern void AddMnemonicLabel(IntPtr widget, IntPtr label)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
label
IntPtrTransfer ownership: None Nullable: False
AddTickCallback(IntPtr, TickCallback, IntPtr, DestroyNotify)
Calls native method gtk_widget_add_tick_callback.
public static extern uint AddTickCallback(IntPtr widget, TickCallback callback, IntPtr userData, DestroyNotify notify)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
callback
TickCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
notify
DestroyNotifyTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
Allocate(IntPtr, int, int, int, TransformUnownedHandle)
Calls native method gtk_widget_allocate.
public static extern void Allocate(IntPtr widget, int width, int height, int baseline, TransformUnownedHandle transform)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
width
intTransfer ownership: None Nullable: False
height
intTransfer ownership: None Nullable: False
baseline
intTransfer ownership: None Nullable: False
transform
TransformUnownedHandleTransfer ownership: Full Nullable: True
ChildFocus(IntPtr, DirectionType)
Calls native method gtk_widget_child_focus.
public static extern bool ChildFocus(IntPtr widget, DirectionType direction)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
direction
DirectionTypeTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ComputeExpand(IntPtr, Orientation)
Calls native method gtk_widget_compute_expand.
public static extern bool ComputeExpand(IntPtr widget, Orientation orientation)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
orientation
OrientationTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Contains(IntPtr, double, double)
Calls native method gtk_widget_contains.
public static extern bool Contains(IntPtr widget, double x, double y)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
CreatePangoContext(IntPtr)
Calls native method gtk_widget_create_pango_context.
public static extern IntPtr CreatePangoContext(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
CreatePangoLayout(IntPtr, NullableUtf8StringHandle)
Calls native method gtk_widget_create_pango_layout.
public static extern IntPtr CreatePangoLayout(IntPtr widget, NullableUtf8StringHandle text)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
text
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- IntPtr
Transfer ownership: Full Nullable: False
DisposeTemplate(IntPtr, Type)
Calls native method gtk_widget_dispose_template. Version: 4.8
[Version("4.8")]
public static extern void DisposeTemplate(IntPtr widget, Type widgetType)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
widgetType
TypeTransfer ownership: None Nullable: False
DragCheckThreshold(IntPtr, int, int, int, int)
Calls native method gtk_drag_check_threshold.
public static extern bool DragCheckThreshold(IntPtr widget, int startX, int startY, int currentX, int currentY)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
startX
intTransfer ownership: None Nullable: False
startY
intTransfer ownership: None Nullable: False
currentX
intTransfer ownership: None Nullable: False
currentY
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ErrorBell(IntPtr)
Calls native method gtk_widget_error_bell.
public static extern void ErrorBell(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
GetAllocatedBaseline(IntPtr)
Calls native method gtk_widget_get_allocated_baseline.
public static extern int GetAllocatedBaseline(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetAllocatedHeight(IntPtr)
Calls native method gtk_widget_get_allocated_height.
public static extern int GetAllocatedHeight(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetAllocatedWidth(IntPtr)
Calls native method gtk_widget_get_allocated_width.
public static extern int GetAllocatedWidth(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetAncestor(IntPtr, Type)
Calls native method gtk_widget_get_ancestor.
public static extern IntPtr GetAncestor(IntPtr widget, Type widgetType)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
widgetType
TypeTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetBaseline(IntPtr)
Calls native method gtk_widget_get_baseline. Version: 4.12
[Version("4.12")]
public static extern int GetBaseline(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetCanFocus(IntPtr)
Calls native method gtk_widget_get_can_focus.
public static extern bool GetCanFocus(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetCanTarget(IntPtr)
Calls native method gtk_widget_get_can_target.
public static extern bool GetCanTarget(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetChildVisible(IntPtr)
Calls native method gtk_widget_get_child_visible.
public static extern bool GetChildVisible(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetClipboard(IntPtr)
Calls native method gtk_widget_get_clipboard.
public static extern IntPtr GetClipboard(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetCssClasses(IntPtr)
Calls native method gtk_widget_get_css_classes.
public static extern Utf8StringArrayNullTerminatedOwnedHandle GetCssClasses(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- Utf8StringArrayNullTerminatedOwnedHandle
Transfer ownership: Full Nullable: False
GetCssName(IntPtr)
Calls native method gtk_widget_get_css_name.
public static extern NonNullableUtf8StringUnownedHandle GetCssName(IntPtr self)
Parameters
self
IntPtrTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetCursor(IntPtr)
Calls native method gtk_widget_get_cursor.
public static extern IntPtr GetCursor(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetDefaultDirection()
Calls native function gtk_widget_get_default_direction.
public static extern TextDirection GetDefaultDirection()
Returns
- TextDirection
Transfer ownership: None Nullable: False
GetDirection(IntPtr)
Calls native method gtk_widget_get_direction.
public static extern TextDirection GetDirection(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- TextDirection
Transfer ownership: None Nullable: False
GetDisplay(IntPtr)
Calls native method gtk_widget_get_display.
public static extern IntPtr GetDisplay(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetFirstChild(IntPtr)
Calls native method gtk_widget_get_first_child.
public static extern IntPtr GetFirstChild(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetFocusChild(IntPtr)
Calls native method gtk_widget_get_focus_child.
public static extern IntPtr GetFocusChild(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetFocusOnClick(IntPtr)
Calls native method gtk_widget_get_focus_on_click.
public static extern bool GetFocusOnClick(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetFocusable(IntPtr)
Calls native method gtk_widget_get_focusable.
public static extern bool GetFocusable(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetFontMap(IntPtr)
Calls native method gtk_widget_get_font_map.
public static extern IntPtr GetFontMap(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetFontOptions(IntPtr)
Calls native method gtk_widget_get_font_options.
public static extern FontOptionsUnownedHandle GetFontOptions(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- FontOptionsUnownedHandle
Transfer ownership: None Nullable: True
GetFrameClock(IntPtr)
Calls native method gtk_widget_get_frame_clock.
public static extern IntPtr GetFrameClock(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetGType()
Calls native function gtk_widget_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHalign(IntPtr)
Calls native method gtk_widget_get_halign.
public static extern Align GetHalign(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- Align
Transfer ownership: None Nullable: False
GetHasTooltip(IntPtr)
Calls native method gtk_widget_get_has_tooltip.
public static extern bool GetHasTooltip(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetHeight(IntPtr)
Calls native method gtk_widget_get_height.
public static extern int GetHeight(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetHexpand(IntPtr)
Calls native method gtk_widget_get_hexpand.
public static extern bool GetHexpand(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetHexpandSet(IntPtr)
Calls native method gtk_widget_get_hexpand_set.
public static extern bool GetHexpandSet(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetLastChild(IntPtr)
Calls native method gtk_widget_get_last_child.
public static extern IntPtr GetLastChild(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetLayoutManager(IntPtr)
Calls native method gtk_widget_get_layout_manager.
public static extern IntPtr GetLayoutManager(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetMapped(IntPtr)
Calls native method gtk_widget_get_mapped.
public static extern bool GetMapped(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetMarginBottom(IntPtr)
Calls native method gtk_widget_get_margin_bottom.
public static extern int GetMarginBottom(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMarginEnd(IntPtr)
Calls native method gtk_widget_get_margin_end.
public static extern int GetMarginEnd(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMarginStart(IntPtr)
Calls native method gtk_widget_get_margin_start.
public static extern int GetMarginStart(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMarginTop(IntPtr)
Calls native method gtk_widget_get_margin_top.
public static extern int GetMarginTop(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetName(IntPtr)
Calls native method gtk_widget_get_name.
public static extern NonNullableUtf8StringUnownedHandle GetName(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: False
GetNative(IntPtr)
Calls native method gtk_widget_get_native.
public static extern IntPtr GetNative(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetNextSibling(IntPtr)
Calls native method gtk_widget_get_next_sibling.
public static extern IntPtr GetNextSibling(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetOpacity(IntPtr)
Calls native method gtk_widget_get_opacity.
public static extern double GetOpacity(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- double
Transfer ownership: None Nullable: False
GetOverflow(IntPtr)
Calls native method gtk_widget_get_overflow.
public static extern Overflow GetOverflow(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- Overflow
Transfer ownership: None Nullable: False
GetPangoContext(IntPtr)
Calls native method gtk_widget_get_pango_context.
public static extern IntPtr GetPangoContext(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetParent(IntPtr)
Calls native method gtk_widget_get_parent.
public static extern IntPtr GetParent(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetPrevSibling(IntPtr)
Calls native method gtk_widget_get_prev_sibling.
public static extern IntPtr GetPrevSibling(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetPrimaryClipboard(IntPtr)
Calls native method gtk_widget_get_primary_clipboard.
public static extern IntPtr GetPrimaryClipboard(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetRealized(IntPtr)
Calls native method gtk_widget_get_realized.
public static extern bool GetRealized(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetReceivesDefault(IntPtr)
Calls native method gtk_widget_get_receives_default.
public static extern bool GetReceivesDefault(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetRequestMode(IntPtr)
Calls native method gtk_widget_get_request_mode.
public static extern SizeRequestMode GetRequestMode(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- SizeRequestMode
Transfer ownership: None Nullable: False
GetRoot(IntPtr)
Calls native method gtk_widget_get_root.
public static extern IntPtr GetRoot(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetScaleFactor(IntPtr)
Calls native method gtk_widget_get_scale_factor.
public static extern int GetScaleFactor(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetSensitive(IntPtr)
Calls native method gtk_widget_get_sensitive.
public static extern bool GetSensitive(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetSettings(IntPtr)
Calls native method gtk_widget_get_settings.
public static extern IntPtr GetSettings(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetSize(IntPtr, Orientation)
Calls native method gtk_widget_get_size.
public static extern int GetSize(IntPtr widget, Orientation orientation)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
orientation
OrientationTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetSizeRequest(IntPtr, out int, out int)
Calls native method gtk_widget_get_size_request.
public static extern void GetSizeRequest(IntPtr widget, out int width, out int height)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
width
intTransfer ownership: Full Nullable: False
height
intTransfer ownership: Full Nullable: False
GetStateFlags(IntPtr)
Calls native method gtk_widget_get_state_flags.
public static extern StateFlags GetStateFlags(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- StateFlags
Transfer ownership: None Nullable: False
GetStyleContext(IntPtr)
Calls native method gtk_widget_get_style_context.
public static extern IntPtr GetStyleContext(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetTemplateChild(IntPtr, Type, NonNullableUtf8StringHandle)
Calls native method gtk_widget_get_template_child.
public static extern IntPtr GetTemplateChild(IntPtr widget, Type widgetType, NonNullableUtf8StringHandle name)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
widgetType
TypeTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetTooltipMarkup(IntPtr)
Calls native method gtk_widget_get_tooltip_markup.
public static extern NullableUtf8StringUnownedHandle GetTooltipMarkup(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetTooltipText(IntPtr)
Calls native method gtk_widget_get_tooltip_text.
public static extern NullableUtf8StringUnownedHandle GetTooltipText(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetValign(IntPtr)
Calls native method gtk_widget_get_valign.
public static extern Align GetValign(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- Align
Transfer ownership: None Nullable: False
GetVexpand(IntPtr)
Calls native method gtk_widget_get_vexpand.
public static extern bool GetVexpand(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetVexpandSet(IntPtr)
Calls native method gtk_widget_get_vexpand_set.
public static extern bool GetVexpandSet(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetVisible(IntPtr)
Calls native method gtk_widget_get_visible.
public static extern bool GetVisible(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetWidth(IntPtr)
Calls native method gtk_widget_get_width.
public static extern int GetWidth(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GrabFocus(IntPtr)
Calls native method gtk_widget_grab_focus.
public static extern bool GrabFocus(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
HasCssClass(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_widget_has_css_class.
public static extern bool HasCssClass(IntPtr widget, NonNullableUtf8StringHandle cssClass)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
cssClass
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
HasDefault(IntPtr)
Calls native method gtk_widget_has_default.
public static extern bool HasDefault(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
HasFocus(IntPtr)
Calls native method gtk_widget_has_focus.
public static extern bool HasFocus(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
HasVisibleFocus(IntPtr)
Calls native method gtk_widget_has_visible_focus.
public static extern bool HasVisibleFocus(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Hide(IntPtr)
Calls native method gtk_widget_hide.
public static extern void Hide(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
InDestruction(IntPtr)
Calls native method gtk_widget_in_destruction.
public static extern bool InDestruction(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
InitTemplate(IntPtr)
Calls native method gtk_widget_init_template.
public static extern void InitTemplate(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
InsertActionGroup(IntPtr, NonNullableUtf8StringHandle, IntPtr)
Calls native method gtk_widget_insert_action_group.
public static extern void InsertActionGroup(IntPtr widget, NonNullableUtf8StringHandle name, IntPtr group)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
group
IntPtrTransfer ownership: None Nullable: True
InsertAfter(IntPtr, IntPtr, IntPtr)
Calls native method gtk_widget_insert_after.
public static extern void InsertAfter(IntPtr widget, IntPtr parent, IntPtr previousSibling)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
parent
IntPtrTransfer ownership: None Nullable: False
previousSibling
IntPtrTransfer ownership: None Nullable: True
InsertBefore(IntPtr, IntPtr, IntPtr)
Calls native method gtk_widget_insert_before.
public static extern void InsertBefore(IntPtr widget, IntPtr parent, IntPtr nextSibling)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
parent
IntPtrTransfer ownership: None Nullable: False
nextSibling
IntPtrTransfer ownership: None Nullable: True
IsAncestor(IntPtr, IntPtr)
Calls native method gtk_widget_is_ancestor.
public static extern bool IsAncestor(IntPtr widget, IntPtr ancestor)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
ancestor
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IsDrawable(IntPtr)
Calls native method gtk_widget_is_drawable.
public static extern bool IsDrawable(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IsFocus(IntPtr)
Calls native method gtk_widget_is_focus.
public static extern bool IsFocus(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IsSensitive(IntPtr)
Calls native method gtk_widget_is_sensitive.
public static extern bool IsSensitive(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IsVisible(IntPtr)
Calls native method gtk_widget_is_visible.
public static extern bool IsVisible(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
KeynavFailed(IntPtr, DirectionType)
Calls native method gtk_widget_keynav_failed.
public static extern bool KeynavFailed(IntPtr widget, DirectionType direction)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
direction
DirectionTypeTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Map(IntPtr)
Calls native method gtk_widget_map.
public static extern void Map(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Measure(IntPtr, Orientation, int, out int, out int, out int, out int)
Calls native method gtk_widget_measure.
public static extern void Measure(IntPtr widget, Orientation orientation, int forSize, out int minimum, out int natural, out int minimumBaseline, out int naturalBaseline)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
orientation
OrientationTransfer ownership: None Nullable: False
forSize
intTransfer ownership: None Nullable: False
minimum
intTransfer ownership: Full Nullable: False
natural
intTransfer ownership: Full Nullable: False
minimumBaseline
intTransfer ownership: Full Nullable: False
naturalBaseline
intTransfer ownership: Full Nullable: False
MnemonicActivate(IntPtr, bool)
Calls native method gtk_widget_mnemonic_activate.
public static extern bool MnemonicActivate(IntPtr widget, bool groupCycling)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
groupCycling
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ObserveChildren(IntPtr)
Calls native method gtk_widget_observe_children.
public static extern IntPtr ObserveChildren(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
ObserveControllers(IntPtr)
Calls native method gtk_widget_observe_controllers.
public static extern IntPtr ObserveControllers(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
Pick(IntPtr, double, double, PickFlags)
Calls native method gtk_widget_pick.
public static extern IntPtr Pick(IntPtr widget, double x, double y, PickFlags flags)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: None Nullable: False
y
doubleTransfer ownership: None Nullable: False
flags
PickFlagsTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
QueueAllocate(IntPtr)
Calls native method gtk_widget_queue_allocate.
public static extern void QueueAllocate(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
QueueDraw(IntPtr)
Calls native method gtk_widget_queue_draw.
public static extern void QueueDraw(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
QueueResize(IntPtr)
Calls native method gtk_widget_queue_resize.
public static extern void QueueResize(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Realize(IntPtr)
Calls native method gtk_widget_realize.
public static extern void Realize(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
RemoveController(IntPtr, IntPtr)
Calls native method gtk_widget_remove_controller.
public static extern void RemoveController(IntPtr widget, IntPtr controller)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
controller
IntPtrTransfer ownership: None Nullable: False
RemoveCssClass(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_widget_remove_css_class.
public static extern void RemoveCssClass(IntPtr widget, NonNullableUtf8StringHandle cssClass)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
cssClass
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
RemoveMnemonicLabel(IntPtr, IntPtr)
Calls native method gtk_widget_remove_mnemonic_label.
public static extern void RemoveMnemonicLabel(IntPtr widget, IntPtr label)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
label
IntPtrTransfer ownership: None Nullable: False
RemoveTickCallback(IntPtr, uint)
Calls native method gtk_widget_remove_tick_callback.
public static extern void RemoveTickCallback(IntPtr widget, uint id)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
id
uintTransfer ownership: None Nullable: False
SetCanFocus(IntPtr, bool)
Calls native method gtk_widget_set_can_focus.
public static extern void SetCanFocus(IntPtr widget, bool canFocus)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
canFocus
boolTransfer ownership: None Nullable: False
SetCanTarget(IntPtr, bool)
Calls native method gtk_widget_set_can_target.
public static extern void SetCanTarget(IntPtr widget, bool canTarget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
canTarget
boolTransfer ownership: None Nullable: False
SetChildVisible(IntPtr, bool)
Calls native method gtk_widget_set_child_visible.
public static extern void SetChildVisible(IntPtr widget, bool childVisible)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
childVisible
boolTransfer ownership: None Nullable: False
SetCssClasses(IntPtr, Utf8StringArrayNullTerminatedHandle)
Calls native method gtk_widget_set_css_classes.
public static extern void SetCssClasses(IntPtr widget, Utf8StringArrayNullTerminatedHandle classes)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
classes
Utf8StringArrayNullTerminatedHandleTransfer ownership: None Nullable: False
SetCursor(IntPtr, IntPtr)
Calls native method gtk_widget_set_cursor.
public static extern void SetCursor(IntPtr widget, IntPtr cursor)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
cursor
IntPtrTransfer ownership: None Nullable: True
SetCursorFromName(IntPtr, NullableUtf8StringHandle)
Calls native method gtk_widget_set_cursor_from_name.
public static extern void SetCursorFromName(IntPtr widget, NullableUtf8StringHandle name)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
name
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetDefaultDirection(TextDirection)
Calls native function gtk_widget_set_default_direction.
public static extern void SetDefaultDirection(TextDirection dir)
Parameters
dir
TextDirectionTransfer ownership: None Nullable: False
SetDirection(IntPtr, TextDirection)
Calls native method gtk_widget_set_direction.
public static extern void SetDirection(IntPtr widget, TextDirection dir)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
dir
TextDirectionTransfer ownership: None Nullable: False
SetFocusChild(IntPtr, IntPtr)
Calls native method gtk_widget_set_focus_child.
public static extern void SetFocusChild(IntPtr widget, IntPtr child)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
child
IntPtrTransfer ownership: None Nullable: True
SetFocusOnClick(IntPtr, bool)
Calls native method gtk_widget_set_focus_on_click.
public static extern void SetFocusOnClick(IntPtr widget, bool focusOnClick)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
focusOnClick
boolTransfer ownership: None Nullable: False
SetFocusable(IntPtr, bool)
Calls native method gtk_widget_set_focusable.
public static extern void SetFocusable(IntPtr widget, bool focusable)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
focusable
boolTransfer ownership: None Nullable: False
SetFontMap(IntPtr, IntPtr)
Calls native method gtk_widget_set_font_map.
public static extern void SetFontMap(IntPtr widget, IntPtr fontMap)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
fontMap
IntPtrTransfer ownership: None Nullable: True
SetFontOptions(IntPtr, FontOptionsHandle)
Calls native method gtk_widget_set_font_options.
public static extern void SetFontOptions(IntPtr widget, FontOptionsHandle options)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
options
FontOptionsHandleTransfer ownership: None Nullable: True
SetHalign(IntPtr, Align)
Calls native method gtk_widget_set_halign.
public static extern void SetHalign(IntPtr widget, Align align)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
align
AlignTransfer ownership: None Nullable: False
SetHasTooltip(IntPtr, bool)
Calls native method gtk_widget_set_has_tooltip.
public static extern void SetHasTooltip(IntPtr widget, bool hasTooltip)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
hasTooltip
boolTransfer ownership: None Nullable: False
SetHexpand(IntPtr, bool)
Calls native method gtk_widget_set_hexpand.
public static extern void SetHexpand(IntPtr widget, bool expand)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
expand
boolTransfer ownership: None Nullable: False
SetHexpandSet(IntPtr, bool)
Calls native method gtk_widget_set_hexpand_set.
public static extern void SetHexpandSet(IntPtr widget, bool set)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
set
boolTransfer ownership: None Nullable: False
SetLayoutManager(IntPtr, IntPtr)
Calls native method gtk_widget_set_layout_manager.
public static extern void SetLayoutManager(IntPtr widget, IntPtr layoutManager)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
layoutManager
IntPtrTransfer ownership: Full Nullable: True
SetMarginBottom(IntPtr, int)
Calls native method gtk_widget_set_margin_bottom.
public static extern void SetMarginBottom(IntPtr widget, int margin)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
margin
intTransfer ownership: None Nullable: False
SetMarginEnd(IntPtr, int)
Calls native method gtk_widget_set_margin_end.
public static extern void SetMarginEnd(IntPtr widget, int margin)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
margin
intTransfer ownership: None Nullable: False
SetMarginStart(IntPtr, int)
Calls native method gtk_widget_set_margin_start.
public static extern void SetMarginStart(IntPtr widget, int margin)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
margin
intTransfer ownership: None Nullable: False
SetMarginTop(IntPtr, int)
Calls native method gtk_widget_set_margin_top.
public static extern void SetMarginTop(IntPtr widget, int margin)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
margin
intTransfer ownership: None Nullable: False
SetName(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_widget_set_name.
public static extern void SetName(IntPtr widget, NonNullableUtf8StringHandle name)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetOpacity(IntPtr, double)
Calls native method gtk_widget_set_opacity.
public static extern void SetOpacity(IntPtr widget, double opacity)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
opacity
doubleTransfer ownership: None Nullable: False
SetOverflow(IntPtr, Overflow)
Calls native method gtk_widget_set_overflow.
public static extern void SetOverflow(IntPtr widget, Overflow overflow)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
overflow
OverflowTransfer ownership: None Nullable: False
SetParent(IntPtr, IntPtr)
Calls native method gtk_widget_set_parent.
public static extern void SetParent(IntPtr widget, IntPtr parent)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
parent
IntPtrTransfer ownership: None Nullable: False
SetReceivesDefault(IntPtr, bool)
Calls native method gtk_widget_set_receives_default.
public static extern void SetReceivesDefault(IntPtr widget, bool receivesDefault)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
receivesDefault
boolTransfer ownership: None Nullable: False
SetSensitive(IntPtr, bool)
Calls native method gtk_widget_set_sensitive.
public static extern void SetSensitive(IntPtr widget, bool sensitive)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
sensitive
boolTransfer ownership: None Nullable: False
SetSizeRequest(IntPtr, int, int)
Calls native method gtk_widget_set_size_request.
public static extern void SetSizeRequest(IntPtr widget, int width, int height)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
width
intTransfer ownership: None Nullable: False
height
intTransfer ownership: None Nullable: False
SetStateFlags(IntPtr, StateFlags, bool)
Calls native method gtk_widget_set_state_flags.
public static extern void SetStateFlags(IntPtr widget, StateFlags flags, bool clear)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
flags
StateFlagsTransfer ownership: None Nullable: False
clear
boolTransfer ownership: None Nullable: False
SetTooltipMarkup(IntPtr, NullableUtf8StringHandle)
Calls native method gtk_widget_set_tooltip_markup.
public static extern void SetTooltipMarkup(IntPtr widget, NullableUtf8StringHandle markup)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
markup
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetTooltipText(IntPtr, NullableUtf8StringHandle)
Calls native method gtk_widget_set_tooltip_text.
public static extern void SetTooltipText(IntPtr widget, NullableUtf8StringHandle text)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
text
NullableUtf8StringHandleTransfer ownership: None Nullable: True
SetValign(IntPtr, Align)
Calls native method gtk_widget_set_valign.
public static extern void SetValign(IntPtr widget, Align align)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
align
AlignTransfer ownership: None Nullable: False
SetVexpand(IntPtr, bool)
Calls native method gtk_widget_set_vexpand.
public static extern void SetVexpand(IntPtr widget, bool expand)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
expand
boolTransfer ownership: None Nullable: False
SetVexpandSet(IntPtr, bool)
Calls native method gtk_widget_set_vexpand_set.
public static extern void SetVexpandSet(IntPtr widget, bool set)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
set
boolTransfer ownership: None Nullable: False
SetVisible(IntPtr, bool)
Calls native method gtk_widget_set_visible.
public static extern void SetVisible(IntPtr widget, bool visible)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
visible
boolTransfer ownership: None Nullable: False
ShouldLayout(IntPtr)
Calls native method gtk_widget_should_layout.
public static extern bool ShouldLayout(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Show(IntPtr)
Calls native method gtk_widget_show.
public static extern void Show(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
SnapshotChild(IntPtr, IntPtr, IntPtr)
Calls native method gtk_widget_snapshot_child.
public static extern void SnapshotChild(IntPtr widget, IntPtr child, IntPtr snapshot)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
child
IntPtrTransfer ownership: None Nullable: False
snapshot
IntPtrTransfer ownership: None Nullable: False
TranslateCoordinates(IntPtr, IntPtr, double, double, out double, out double)
Calls native method gtk_widget_translate_coordinates.
public static extern bool TranslateCoordinates(IntPtr srcWidget, IntPtr destWidget, double srcX, double srcY, out double destX, out double destY)
Parameters
srcWidget
IntPtrTransfer ownership: None Nullable: False
destWidget
IntPtrTransfer ownership: None Nullable: False
srcX
doubleTransfer ownership: None Nullable: False
srcY
doubleTransfer ownership: None Nullable: False
destX
doubleTransfer ownership: Full Nullable: False
destY
doubleTransfer ownership: Full Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
TriggerTooltipQuery(IntPtr)
Calls native method gtk_widget_trigger_tooltip_query.
public static extern void TriggerTooltipQuery(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Unmap(IntPtr)
Calls native method gtk_widget_unmap.
public static extern void Unmap(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Unparent(IntPtr)
Calls native method gtk_widget_unparent.
public static extern void Unparent(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
Unrealize(IntPtr)
Calls native method gtk_widget_unrealize.
public static extern void Unrealize(IntPtr widget)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
UnsetStateFlags(IntPtr, StateFlags)
Calls native method gtk_widget_unset_state_flags.
public static extern void UnsetStateFlags(IntPtr widget, StateFlags flags)
Parameters
widget
IntPtrTransfer ownership: None Nullable: False
flags
StateFlagsTransfer ownership: None Nullable: False