Table of Contents

Class Widget

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
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 IntPtr

Transfer ownership: None Nullable: False

actionName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

Activate(IntPtr)

Calls native method gtk_widget_activate.

public static extern bool Activate(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

args VariantHandle

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

controller IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

cssClass NonNullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

label IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

callback TickCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

notify DestroyNotify

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer ownership: None Nullable: False

baseline int

Transfer ownership: None Nullable: False

transform TransformUnownedHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

direction DirectionType

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

orientation Orientation

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

text NullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

widgetType Type

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

startX int

Transfer ownership: None Nullable: False

startY int

Transfer ownership: None Nullable: False

currentX int

Transfer ownership: None Nullable: False

currentY int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

GetAllocatedBaseline(IntPtr)

Calls native method gtk_widget_get_allocated_baseline.

public static extern int GetAllocatedBaseline(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

widgetType Type

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

orientation Orientation

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: Full Nullable: False

height int

Transfer ownership: Full Nullable: False

GetStateFlags(IntPtr)

Calls native method gtk_widget_get_state_flags.

public static extern StateFlags GetStateFlags(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

widgetType Type

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

cssClass NonNullableUtf8StringHandle

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

InDestruction(IntPtr)

Calls native method gtk_widget_in_destruction.

public static extern bool InDestruction(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

group IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: False

previousSibling IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: False

nextSibling IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

ancestor IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

direction DirectionType

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

orientation Orientation

Transfer ownership: None Nullable: False

forSize int

Transfer ownership: None Nullable: False

minimum int

Transfer ownership: Full Nullable: False

natural int

Transfer ownership: Full Nullable: False

minimumBaseline int

Transfer ownership: Full Nullable: False

naturalBaseline int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

groupCycling bool

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

flags PickFlags

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

QueueDraw(IntPtr)

Calls native method gtk_widget_queue_draw.

public static extern void QueueDraw(IntPtr widget)

Parameters

widget IntPtr

Transfer ownership: None Nullable: False

QueueResize(IntPtr)

Calls native method gtk_widget_queue_resize.

public static extern void QueueResize(IntPtr widget)

Parameters

widget IntPtr

Transfer ownership: None Nullable: False

Realize(IntPtr)

Calls native method gtk_widget_realize.

public static extern void Realize(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

controller IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

cssClass NonNullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

label IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

id uint

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

canFocus bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

canTarget bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

childVisible bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

classes Utf8StringArrayNullTerminatedHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

cursor IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetDefaultDirection(TextDirection)

Calls native function gtk_widget_set_default_direction.

public static extern void SetDefaultDirection(TextDirection dir)

Parameters

dir TextDirection

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

dir TextDirection

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

focusOnClick bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

focusable bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

fontMap IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

options FontOptionsHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

align Align

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

hasTooltip bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

expand bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

set bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

layoutManager IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

margin int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

margin int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

margin int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

margin int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

opacity double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

overflow Overflow

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

receivesDefault bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

sensitive bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

height int

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

flags StateFlags

Transfer ownership: None Nullable: False

clear bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

markup NullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

text NullableUtf8StringHandle

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

align Align

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

expand bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

set bool

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

visible bool

Transfer ownership: None Nullable: False

ShouldLayout(IntPtr)

Calls native method gtk_widget_should_layout.

public static extern bool ShouldLayout(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

child IntPtr

Transfer ownership: None Nullable: False

snapshot IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

destWidget IntPtr

Transfer ownership: None Nullable: False

srcX double

Transfer ownership: None Nullable: False

srcY double

Transfer ownership: None Nullable: False

destX double

Transfer ownership: Full Nullable: False

destY double

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

Unmap(IntPtr)

Calls native method gtk_widget_unmap.

public static extern void Unmap(IntPtr widget)

Parameters

widget IntPtr

Transfer ownership: None Nullable: False

Unparent(IntPtr)

Calls native method gtk_widget_unparent.

public static extern void Unparent(IntPtr widget)

Parameters

widget IntPtr

Transfer ownership: None Nullable: False

Unrealize(IntPtr)

Calls native method gtk_widget_unrealize.

public static extern void Unrealize(IntPtr widget)

Parameters

widget IntPtr

Transfer 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 IntPtr

Transfer ownership: None Nullable: False

flags StateFlags

Transfer ownership: None Nullable: False