Table of Contents

Class Widget

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Widget : InitiallyUnowned, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
Inheritance
Widget
Implements
Derived
Inherited Members

Constructors

Widget()

public Widget()

Widget(params ConstructArgument[])

protected Widget(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Widget(IntPtr, bool)

protected Widget(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CanFocusPropertyDefinition

public static readonly Property<bool, Widget> CanFocusPropertyDefinition

Field Value

Property<bool, Widget>

CanTargetPropertyDefinition

public static readonly Property<bool, Widget> CanTargetPropertyDefinition

Field Value

Property<bool, Widget>

CssClassesPropertyDefinition

public static readonly Property<string[], Widget> CssClassesPropertyDefinition

Field Value

Property<string[], Widget>

CssNamePropertyDefinition

public static readonly Property<string?, Widget> CssNamePropertyDefinition

Field Value

Property<string, Widget>

CursorPropertyDefinition

public static readonly Property<Cursor?, Widget> CursorPropertyDefinition

Field Value

Property<Cursor, Widget>

DestroySignal

Signal Descriptor for OnDestroy.

public static readonly Signal<Widget> DestroySignal

Field Value

Signal<Widget>

DirectionChangedSignal

Signal Descriptor for OnDirectionChanged.

public static readonly Signal<Widget, Widget.DirectionChangedSignalArgs> DirectionChangedSignal

Field Value

Signal<Widget, Widget.DirectionChangedSignalArgs>

FocusOnClickPropertyDefinition

public static readonly Property<bool, Widget> FocusOnClickPropertyDefinition

Field Value

Property<bool, Widget>

FocusablePropertyDefinition

public static readonly Property<bool, Widget> FocusablePropertyDefinition

Field Value

Property<bool, Widget>

HalignPropertyDefinition

public static readonly Property<Align, Widget> HalignPropertyDefinition

Field Value

Property<Align, Widget>

HasDefaultPropertyDefinition

public static readonly Property<bool, Widget> HasDefaultPropertyDefinition

Field Value

Property<bool, Widget>

HasFocusPropertyDefinition

public static readonly Property<bool, Widget> HasFocusPropertyDefinition

Field Value

Property<bool, Widget>

HasTooltipPropertyDefinition

public static readonly Property<bool, Widget> HasTooltipPropertyDefinition

Field Value

Property<bool, Widget>

HeightRequestPropertyDefinition

public static readonly Property<int, Widget> HeightRequestPropertyDefinition

Field Value

Property<int, Widget>

HexpandPropertyDefinition

public static readonly Property<bool, Widget> HexpandPropertyDefinition

Field Value

Property<bool, Widget>

HexpandSetPropertyDefinition

public static readonly Property<bool, Widget> HexpandSetPropertyDefinition

Field Value

Property<bool, Widget>

HideSignal

Signal Descriptor for OnHide.

public static readonly Signal<Widget> HideSignal

Field Value

Signal<Widget>

KeynavFailedSignal

Signal Descriptor for OnKeynavFailed.

public static readonly ReturningSignal<Widget, Widget.KeynavFailedSignalArgs, bool> KeynavFailedSignal

Field Value

ReturningSignal<Widget, Widget.KeynavFailedSignalArgs, bool>

LayoutManagerPropertyDefinition

public static readonly Property<LayoutManager?, Widget> LayoutManagerPropertyDefinition

Field Value

Property<LayoutManager, Widget>

MapSignal

Signal Descriptor for OnMap.

public static readonly Signal<Widget> MapSignal

Field Value

Signal<Widget>

MarginBottomPropertyDefinition

public static readonly Property<int, Widget> MarginBottomPropertyDefinition

Field Value

Property<int, Widget>

MarginEndPropertyDefinition

public static readonly Property<int, Widget> MarginEndPropertyDefinition

Field Value

Property<int, Widget>

MarginStartPropertyDefinition

public static readonly Property<int, Widget> MarginStartPropertyDefinition

Field Value

Property<int, Widget>

MarginTopPropertyDefinition

public static readonly Property<int, Widget> MarginTopPropertyDefinition

Field Value

Property<int, Widget>

MnemonicActivateSignal

Signal Descriptor for OnMnemonicActivate.

public static readonly ReturningSignal<Widget, Widget.MnemonicActivateSignalArgs, bool> MnemonicActivateSignal

Field Value

ReturningSignal<Widget, Widget.MnemonicActivateSignalArgs, bool>

MoveFocusSignal

Signal Descriptor for OnMoveFocus.

public static readonly Signal<Widget, Widget.MoveFocusSignalArgs> MoveFocusSignal

Field Value

Signal<Widget, Widget.MoveFocusSignalArgs>

NamePropertyDefinition

public static readonly Property<string?, Widget> NamePropertyDefinition

Field Value

Property<string, Widget>

OpacityPropertyDefinition

public static readonly Property<double, Widget> OpacityPropertyDefinition

Field Value

Property<double, Widget>

OverflowPropertyDefinition

public static readonly Property<Overflow, Widget> OverflowPropertyDefinition

Field Value

Property<Overflow, Widget>

ParentPropertyDefinition

public static readonly Property<Widget?, Widget> ParentPropertyDefinition

Field Value

Property<Widget, Widget>

QueryTooltipSignal

Signal Descriptor for OnQueryTooltip.

public static readonly ReturningSignal<Widget, Widget.QueryTooltipSignalArgs, bool> QueryTooltipSignal

Field Value

ReturningSignal<Widget, Widget.QueryTooltipSignalArgs, bool>

RealizeSignal

Signal Descriptor for OnRealize.

public static readonly Signal<Widget> RealizeSignal

Field Value

Signal<Widget>

ReceivesDefaultPropertyDefinition

public static readonly Property<bool, Widget> ReceivesDefaultPropertyDefinition

Field Value

Property<bool, Widget>

RootPropertyDefinition

public static readonly Property<Root, Widget> RootPropertyDefinition

Field Value

Property<Root, Widget>

ScaleFactorPropertyDefinition

public static readonly Property<int, Widget> ScaleFactorPropertyDefinition

Field Value

Property<int, Widget>

SensitivePropertyDefinition

public static readonly Property<bool, Widget> SensitivePropertyDefinition

Field Value

Property<bool, Widget>

ShowSignal

Signal Descriptor for OnShow.

public static readonly Signal<Widget> ShowSignal

Field Value

Signal<Widget>

StateFlagsChangedSignal

Signal Descriptor for OnStateFlagsChanged.

public static readonly Signal<Widget, Widget.StateFlagsChangedSignalArgs> StateFlagsChangedSignal

Field Value

Signal<Widget, Widget.StateFlagsChangedSignalArgs>

TooltipMarkupPropertyDefinition

public static readonly Property<string?, Widget> TooltipMarkupPropertyDefinition

Field Value

Property<string, Widget>

TooltipTextPropertyDefinition

public static readonly Property<string?, Widget> TooltipTextPropertyDefinition

Field Value

Property<string, Widget>

UnmapSignal

Signal Descriptor for OnUnmap.

public static readonly Signal<Widget> UnmapSignal

Field Value

Signal<Widget>

UnrealizeSignal

Signal Descriptor for OnUnrealize.

public static readonly Signal<Widget> UnrealizeSignal

Field Value

Signal<Widget>

ValignPropertyDefinition

public static readonly Property<Align, Widget> ValignPropertyDefinition

Field Value

Property<Align, Widget>

VexpandPropertyDefinition

public static readonly Property<bool, Widget> VexpandPropertyDefinition

Field Value

Property<bool, Widget>

VexpandSetPropertyDefinition

public static readonly Property<bool, Widget> VexpandSetPropertyDefinition

Field Value

Property<bool, Widget>

VisiblePropertyDefinition

public static readonly Property<bool, Widget> VisiblePropertyDefinition

Field Value

Property<bool, Widget>

WidthRequestPropertyDefinition

public static readonly Property<int, Widget> WidthRequestPropertyDefinition

Field Value

Property<int, Widget>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

CanFocus

public bool CanFocus { get; set; }

Property Value

bool

CanTarget

public bool CanTarget { get; set; }

Property Value

bool

CssClasses

public string[] CssClasses { get; set; }

Property Value

string[]

CssName

public string? CssName { get; }

Property Value

string

Cursor

public Cursor? Cursor { get; set; }

Property Value

Cursor

FocusOnClick

public bool FocusOnClick { get; set; }

Property Value

bool

Focusable

public bool Focusable { get; set; }

Property Value

bool

Halign

public Align Halign { get; set; }

Property Value

Align

HasDefault

public bool HasDefault { get; }

Property Value

bool

HasFocus

public bool HasFocus { get; }

Property Value

bool

HasTooltip

public bool HasTooltip { get; set; }

Property Value

bool

HeightRequest

public int HeightRequest { get; set; }

Property Value

int

Hexpand

public bool Hexpand { get; set; }

Property Value

bool

HexpandSet

public bool HexpandSet { get; set; }

Property Value

bool

LayoutManager

public LayoutManager? LayoutManager { get; set; }

Property Value

LayoutManager

MarginBottom

public int MarginBottom { get; set; }

Property Value

int

MarginEnd

public int MarginEnd { get; set; }

Property Value

int

MarginStart

public int MarginStart { get; set; }

Property Value

int

MarginTop

public int MarginTop { get; set; }

Property Value

int

Name

public string? Name { get; set; }

Property Value

string

Opacity

public double Opacity { get; set; }

Property Value

double

Overflow

public Overflow Overflow { get; set; }

Property Value

Overflow

Parent

public Widget? Parent { get; }

Property Value

Widget

ReceivesDefault

public bool ReceivesDefault { get; set; }

Property Value

bool

Root

public Root Root { get; }

Property Value

Root

ScaleFactor

public int ScaleFactor { get; }

Property Value

int

Sensitive

public bool Sensitive { get; set; }

Property Value

bool

TooltipMarkup

public string? TooltipMarkup { get; set; }

Property Value

string

TooltipText

public string? TooltipText { get; set; }

Property Value

string

Valign

public Align Valign { get; set; }

Property Value

Align

Vexpand

public bool Vexpand { get; set; }

Property Value

bool

VexpandSet

public bool VexpandSet { get; set; }

Property Value

bool

Visible

public bool Visible { get; set; }

Property Value

bool

WidthRequest

public int WidthRequest { get; set; }

Property Value

int

Methods

ActionSetEnabled(string, bool)

public void ActionSetEnabled(string actionName, bool enabled)

Parameters

actionName string
enabled bool

Activate()

public bool Activate()

Returns

bool

ActivateAction(string, Variant?)

public bool ActivateAction(string name, Variant? args)

Parameters

name string
args Variant

Returns

bool

ActivateDefault()

public void ActivateDefault()

AddController(EventController)

public void AddController(EventController controller)

Parameters

controller EventController

AddCssClass(string)

public void AddCssClass(string cssClass)

Parameters

cssClass string

AddMnemonicLabel(Widget)

public void AddMnemonicLabel(Widget label)

Parameters

label Widget

AddTickCallback(TickCallback)

public uint AddTickCallback(TickCallback callback)

Parameters

callback TickCallback

Returns

uint

Allocate(int, int, int, Transform?)

public void Allocate(int width, int height, int baseline, Transform? transform)

Parameters

width int
height int
baseline int
transform Transform

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

ChildFocus(DirectionType)

public bool ChildFocus(DirectionType direction)

Parameters

direction DirectionType

Returns

bool

ComputeExpand(Orientation)

public bool ComputeExpand(Orientation orientation)

Parameters

orientation Orientation

Returns

bool

Contains(double, double)

public bool Contains(double x, double y)

Parameters

x double
y double

Returns

bool

CreatePangoContext()

public Context CreatePangoContext()

Returns

Context

CreatePangoLayout(string?)

public Layout CreatePangoLayout(string? text)

Parameters

text string

Returns

Layout

DisposeTemplate(Type)

[Version("4.8")]
public void DisposeTemplate(Type widgetType)

Parameters

widgetType Type

DragCheckThreshold(int, int, int, int)

public bool DragCheckThreshold(int startX, int startY, int currentX, int currentY)

Parameters

startX int
startY int
currentX int
currentY int

Returns

bool

ErrorBell()

public void ErrorBell()

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAllocatedBaseline()

public int GetAllocatedBaseline()

Returns

int

GetAllocatedHeight()

public int GetAllocatedHeight()

Returns

int

GetAllocatedWidth()

public int GetAllocatedWidth()

Returns

int

GetAncestor(Type)

public Widget? GetAncestor(Type widgetType)

Parameters

widgetType Type

Returns

Widget

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBaseline()

[Version("4.12")]
public int GetBaseline()

Returns

int

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetCanFocus()

public bool GetCanFocus()

Returns

bool

GetCanTarget()

public bool GetCanTarget()

Returns

bool

GetChildVisible()

public bool GetChildVisible()

Returns

bool

GetClipboard()

public Clipboard GetClipboard()

Returns

Clipboard

GetCssClasses()

public string[] GetCssClasses()

Returns

string[]

GetCssName()

public string GetCssName()

Returns

string

GetCursor()

public Cursor? GetCursor()

Returns

Cursor

GetDefaultDirection()

public static TextDirection GetDefaultDirection()

Returns

TextDirection

GetDirection()

public TextDirection GetDirection()

Returns

TextDirection

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetFirstChild()

public Widget? GetFirstChild()

Returns

Widget

GetFocusChild()

public Widget? GetFocusChild()

Returns

Widget

GetFocusOnClick()

public bool GetFocusOnClick()

Returns

bool

GetFocusable()

public bool GetFocusable()

Returns

bool

GetFontMap()

public FontMap? GetFontMap()

Returns

FontMap

GetFontOptions()

public FontOptions? GetFontOptions()

Returns

FontOptions

GetFrameClock()

public FrameClock? GetFrameClock()

Returns

FrameClock

GetGType()

public static Type GetGType()

Returns

Type

GetHalign()

public Align GetHalign()

Returns

Align

GetHasDefault()

public bool GetHasDefault()

Returns

bool

GetHasFocus()

public bool GetHasFocus()

Returns

bool

GetHasTooltip()

public bool GetHasTooltip()

Returns

bool

GetHeight()

public int GetHeight()

Returns

int

GetHexpand()

public bool GetHexpand()

Returns

bool

GetHexpandSet()

public bool GetHexpandSet()

Returns

bool

GetLastChild()

public Widget? GetLastChild()

Returns

Widget

GetLayoutManager()

public LayoutManager? GetLayoutManager()

Returns

LayoutManager

GetMapped()

public bool GetMapped()

Returns

bool

GetMarginBottom()

public int GetMarginBottom()

Returns

int

GetMarginEnd()

public int GetMarginEnd()

Returns

int

GetMarginStart()

public int GetMarginStart()

Returns

int

GetMarginTop()

public int GetMarginTop()

Returns

int

GetName()

public string GetName()

Returns

string

GetNative()

public Native? GetNative()

Returns

Native

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetNextSibling()

public Widget? GetNextSibling()

Returns

Widget

GetOpacity()

public double GetOpacity()

Returns

double

GetOverflow()

public Overflow GetOverflow()

Returns

Overflow

GetPangoContext()

public Context GetPangoContext()

Returns

Context

GetParent()

public Widget? GetParent()

Returns

Widget

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetPrevSibling()

public Widget? GetPrevSibling()

Returns

Widget

GetPrimaryClipboard()

public Clipboard GetPrimaryClipboard()

Returns

Clipboard

GetRealized()

public bool GetRealized()

Returns

bool

GetReceivesDefault()

public bool GetReceivesDefault()

Returns

bool

GetRequestMode()

public SizeRequestMode GetRequestMode()

Returns

SizeRequestMode

GetRoot()

public Root? GetRoot()

Returns

Root

GetScaleFactor()

public int GetScaleFactor()

Returns

int

GetSensitive()

public bool GetSensitive()

Returns

bool

GetSettings()

public Settings GetSettings()

Returns

Settings

GetSize(Orientation)

public int GetSize(Orientation orientation)

Parameters

orientation Orientation

Returns

int

GetSizeRequest(out int, out int)

public void GetSizeRequest(out int width, out int height)

Parameters

width int
height int

GetStateFlags()

public StateFlags GetStateFlags()

Returns

StateFlags

GetStyleContext()

public StyleContext GetStyleContext()

Returns

StyleContext

GetTemplateChild(Type, string)

public Object GetTemplateChild(Type widgetType, string name)

Parameters

widgetType Type
name string

Returns

Object

GetTooltipMarkup()

public string? GetTooltipMarkup()

Returns

string

GetTooltipText()

public string? GetTooltipText()

Returns

string

GetValign()

public Align GetValign()

Returns

Align

GetVexpand()

public bool GetVexpand()

Returns

bool

GetVexpandSet()

public bool GetVexpandSet()

Returns

bool

GetVisible()

public bool GetVisible()

Returns

bool

GetWidth()

public int GetWidth()

Returns

int

GrabFocus()

public bool GrabFocus()

Returns

bool

HasCssClass(string)

public bool HasCssClass(string cssClass)

Parameters

cssClass string

Returns

bool

HasVisibleFocus()

public bool HasVisibleFocus()

Returns

bool

Hide()

public void Hide()

InDestruction()

public bool InDestruction()

Returns

bool

InitTemplate()

public void InitTemplate()

InsertActionGroup(string, ActionGroup?)

public void InsertActionGroup(string name, ActionGroup? group)

Parameters

name string
group ActionGroup

InsertAfter(Widget, Widget?)

public void InsertAfter(Widget parent, Widget? previousSibling)

Parameters

parent Widget
previousSibling Widget

InsertBefore(Widget, Widget?)

public void InsertBefore(Widget parent, Widget? nextSibling)

Parameters

parent Widget
nextSibling Widget

IsAncestor(Widget)

public bool IsAncestor(Widget ancestor)

Parameters

ancestor Widget

Returns

bool

IsDrawable()

public bool IsDrawable()

Returns

bool

IsFocus()

public bool IsFocus()

Returns

bool

IsSensitive()

public bool IsSensitive()

Returns

bool

IsVisible()

public bool IsVisible()

Returns

bool

KeynavFailed(DirectionType)

public bool KeynavFailed(DirectionType direction)

Parameters

direction DirectionType

Returns

bool

Map()

public void Map()

Measure(Orientation, int, out int, out int, out int, out int)

public void Measure(Orientation orientation, int forSize, out int minimum, out int natural, out int minimumBaseline, out int naturalBaseline)

Parameters

orientation Orientation
forSize int
minimum int
natural int
minimumBaseline int
naturalBaseline int

MnemonicActivate(bool)

public bool MnemonicActivate(bool groupCycling)

Parameters

groupCycling bool

Returns

bool

ObserveChildren()

public ListModel ObserveChildren()

Returns

ListModel

ObserveControllers()

public ListModel ObserveControllers()

Returns

ListModel

Pick(double, double, PickFlags)

public Widget? Pick(double x, double y, PickFlags flags)

Parameters

x double
y double
flags PickFlags

Returns

Widget

QueueAllocate()

public void QueueAllocate()

QueueDraw()

public void QueueDraw()

QueueResize()

public void QueueResize()

Realize()

public void Realize()

RemoveController(EventController)

public void RemoveController(EventController controller)

Parameters

controller EventController

RemoveCssClass(string)

public void RemoveCssClass(string cssClass)

Parameters

cssClass string

RemoveMnemonicLabel(Widget)

public void RemoveMnemonicLabel(Widget label)

Parameters

label Widget

RemoveTickCallback(uint)

public void RemoveTickCallback(uint id)

Parameters

id uint

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetCanFocus(bool)

public void SetCanFocus(bool canFocus)

Parameters

canFocus bool

SetCanTarget(bool)

public void SetCanTarget(bool canTarget)

Parameters

canTarget bool

SetChildVisible(bool)

public void SetChildVisible(bool childVisible)

Parameters

childVisible bool

SetCssClasses(string[])

public void SetCssClasses(string[] classes)

Parameters

classes string[]

SetCursor(Cursor?)

public void SetCursor(Cursor? cursor)

Parameters

cursor Cursor

SetCursorFromName(string?)

public void SetCursorFromName(string? name)

Parameters

name string

SetDefaultDirection(TextDirection)

public static void SetDefaultDirection(TextDirection dir)

Parameters

dir TextDirection

SetDirection(TextDirection)

public void SetDirection(TextDirection dir)

Parameters

dir TextDirection

SetFocusChild(Widget?)

public void SetFocusChild(Widget? child)

Parameters

child Widget

SetFocusOnClick(bool)

public void SetFocusOnClick(bool focusOnClick)

Parameters

focusOnClick bool

SetFocusable(bool)

public void SetFocusable(bool focusable)

Parameters

focusable bool

SetFontMap(FontMap?)

public void SetFontMap(FontMap? fontMap)

Parameters

fontMap FontMap

SetFontOptions(FontOptions?)

public void SetFontOptions(FontOptions? options)

Parameters

options FontOptions

SetHalign(Align)

public void SetHalign(Align align)

Parameters

align Align

SetHasTooltip(bool)

public void SetHasTooltip(bool hasTooltip)

Parameters

hasTooltip bool

SetHexpand(bool)

public void SetHexpand(bool expand)

Parameters

expand bool

SetHexpandSet(bool)

public void SetHexpandSet(bool set)

Parameters

set bool

SetLayoutManager(LayoutManager?)

public void SetLayoutManager(LayoutManager? layoutManager)

Parameters

layoutManager LayoutManager

SetMarginBottom(int)

public void SetMarginBottom(int margin)

Parameters

margin int

SetMarginEnd(int)

public void SetMarginEnd(int margin)

Parameters

margin int

SetMarginStart(int)

public void SetMarginStart(int margin)

Parameters

margin int

SetMarginTop(int)

public void SetMarginTop(int margin)

Parameters

margin int

SetName(string)

public void SetName(string name)

Parameters

name string

SetOpacity(double)

public void SetOpacity(double opacity)

Parameters

opacity double

SetOverflow(Overflow)

public void SetOverflow(Overflow overflow)

Parameters

overflow Overflow

SetParent(Widget)

public void SetParent(Widget parent)

Parameters

parent Widget

SetReceivesDefault(bool)

public void SetReceivesDefault(bool receivesDefault)

Parameters

receivesDefault bool

SetSensitive(bool)

public void SetSensitive(bool sensitive)

Parameters

sensitive bool

SetSizeRequest(int, int)

public void SetSizeRequest(int width, int height)

Parameters

width int
height int

SetStateFlags(StateFlags, bool)

public void SetStateFlags(StateFlags flags, bool clear)

Parameters

flags StateFlags
clear bool

SetTooltipMarkup(string?)

public void SetTooltipMarkup(string? markup)

Parameters

markup string

SetTooltipText(string?)

public void SetTooltipText(string? text)

Parameters

text string

SetValign(Align)

public void SetValign(Align align)

Parameters

align Align

SetVexpand(bool)

public void SetVexpand(bool expand)

Parameters

expand bool

SetVexpandSet(bool)

public void SetVexpandSet(bool set)

Parameters

set bool

SetVisible(bool)

public void SetVisible(bool visible)

Parameters

visible bool

ShouldLayout()

public bool ShouldLayout()

Returns

bool

Show()

public void Show()

SnapshotChild(Widget, Snapshot)

public void SnapshotChild(Widget child, Snapshot snapshot)

Parameters

child Widget
snapshot Snapshot

TranslateCoordinates(Widget, double, double, out double, out double)

public bool TranslateCoordinates(Widget destWidget, double srcX, double srcY, out double destX, out double destY)

Parameters

destWidget Widget
srcX double
srcY double
destX double
destY double

Returns

bool

TriggerTooltipQuery()

public void TriggerTooltipQuery()

Unmap()

public void Unmap()

Unparent()

public void Unparent()

Unrealize()

public void Unrealize()

UnsetStateFlags(StateFlags)

public void UnsetStateFlags(StateFlags flags)

Parameters

flags StateFlags

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

Events

OnDestroy

public event SignalHandler<Widget> OnDestroy

Event Type

SignalHandler<Widget>

OnDirectionChanged

public event SignalHandler<Widget, Widget.DirectionChangedSignalArgs> OnDirectionChanged

Event Type

SignalHandler<Widget, Widget.DirectionChangedSignalArgs>

OnHide

public event SignalHandler<Widget> OnHide

Event Type

SignalHandler<Widget>

OnKeynavFailed

public event ReturningSignalHandler<Widget, Widget.KeynavFailedSignalArgs, bool> OnKeynavFailed

Event Type

ReturningSignalHandler<Widget, Widget.KeynavFailedSignalArgs, bool>

OnMap

public event SignalHandler<Widget> OnMap

Event Type

SignalHandler<Widget>

OnMnemonicActivate

public event ReturningSignalHandler<Widget, Widget.MnemonicActivateSignalArgs, bool> OnMnemonicActivate

Event Type

ReturningSignalHandler<Widget, Widget.MnemonicActivateSignalArgs, bool>

OnMoveFocus

public event SignalHandler<Widget, Widget.MoveFocusSignalArgs> OnMoveFocus

Event Type

SignalHandler<Widget, Widget.MoveFocusSignalArgs>

OnQueryTooltip

public event ReturningSignalHandler<Widget, Widget.QueryTooltipSignalArgs, bool> OnQueryTooltip

Event Type

ReturningSignalHandler<Widget, Widget.QueryTooltipSignalArgs, bool>

OnRealize

public event SignalHandler<Widget> OnRealize

Event Type

SignalHandler<Widget>

OnShow

public event SignalHandler<Widget> OnShow

Event Type

SignalHandler<Widget>

OnStateFlagsChanged

public event SignalHandler<Widget, Widget.StateFlagsChangedSignalArgs> OnStateFlagsChanged

Event Type

SignalHandler<Widget, Widget.StateFlagsChangedSignalArgs>

OnUnmap

public event SignalHandler<Widget> OnUnmap

Event Type

SignalHandler<Widget>

OnUnrealize

public event SignalHandler<Widget> OnUnrealize

Event Type

SignalHandler<Widget>