Class MenuButton
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class MenuButton : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
MenuButton
- Implements
- Inherited Members
Constructors
MenuButton()
public MenuButton()
MenuButton(params ConstructArgument[])
protected MenuButton(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
MenuButton(IntPtr, bool)
protected MenuButton(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActivateSignal
Signal Descriptor for OnActivate.
public static readonly Signal<MenuButton> ActivateSignal
Field Value
ActivePropertyDefinition
public static readonly Property<bool, MenuButton> ActivePropertyDefinition
Field Value
AlwaysShowArrowPropertyDefinition
public static readonly Property<bool, MenuButton> AlwaysShowArrowPropertyDefinition
Field Value
CanShrinkPropertyDefinition
public static readonly Property<bool, MenuButton> CanShrinkPropertyDefinition
Field Value
ChildPropertyDefinition
public static readonly Property<Widget?, MenuButton> ChildPropertyDefinition
Field Value
DirectionPropertyDefinition
public static readonly Property<ArrowType, MenuButton> DirectionPropertyDefinition
Field Value
HasFramePropertyDefinition
public static readonly Property<bool, MenuButton> HasFramePropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, MenuButton> IconNamePropertyDefinition
Field Value
LabelPropertyDefinition
public static readonly Property<string?, MenuButton> LabelPropertyDefinition
Field Value
MenuModelPropertyDefinition
public static readonly Property<MenuModel?, MenuButton> MenuModelPropertyDefinition
Field Value
PopoverPropertyDefinition
public static readonly Property<Popover?, MenuButton> PopoverPropertyDefinition
Field Value
PrimaryPropertyDefinition
public static readonly Property<bool, MenuButton> PrimaryPropertyDefinition
Field Value
UseUnderlinePropertyDefinition
public static readonly Property<bool, MenuButton> UseUnderlinePropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Active
public bool Active { get; set; }
Property Value
AlwaysShowArrow
public bool AlwaysShowArrow { get; set; }
Property Value
CanShrink
public bool CanShrink { get; set; }
Property Value
Child
public Widget? Child { get; set; }
Property Value
Direction
public ArrowType Direction { get; set; }
Property Value
HasFrame
public bool HasFrame { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
Label
public string? Label { get; set; }
Property Value
MenuModel
public MenuModel? MenuModel { get; set; }
Property Value
Popover
public Popover? Popover { get; set; }
Property Value
Primary
public bool Primary { get; set; }
Property Value
UseUnderline
public bool UseUnderline { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetActive()
[Version("4.10")]
public bool GetActive()
Returns
GetAlwaysShowArrow()
[Version("4.4")]
public bool GetAlwaysShowArrow()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetCanShrink()
[Version("4.12")]
public bool GetCanShrink()
Returns
GetChild()
[Version("4.6")]
public Widget? GetChild()
Returns
GetDirection()
public ArrowType GetDirection()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasFrame()
public bool GetHasFrame()
Returns
GetIconName()
public string? GetIconName()
Returns
GetLabel()
public string? GetLabel()
Returns
GetMenuModel()
public MenuModel? GetMenuModel()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetPopover()
public Popover? GetPopover()
Returns
GetPrimary()
[Version("4.4")]
public bool GetPrimary()
Returns
GetUseUnderline()
public bool GetUseUnderline()
Returns
New()
public static MenuButton New()
Returns
Popdown()
public void Popdown()
Popup()
public void Popup()
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
AccessiblenextSibling
Accessible
SetActive(bool)
[Version("4.10")]
public void SetActive(bool active)
Parameters
active
bool
SetAlwaysShowArrow(bool)
[Version("4.4")]
public void SetAlwaysShowArrow(bool alwaysShowArrow)
Parameters
alwaysShowArrow
bool
SetCanShrink(bool)
[Version("4.12")]
public void SetCanShrink(bool canShrink)
Parameters
canShrink
bool
SetChild(Widget?)
[Version("4.6")]
public void SetChild(Widget? child)
Parameters
child
Widget
SetCreatePopupFunc(MenuButtonCreatePopupFunc?)
public void SetCreatePopupFunc(MenuButtonCreatePopupFunc? func)
Parameters
SetDirection(ArrowType)
public void SetDirection(ArrowType direction)
Parameters
direction
ArrowType
SetHasFrame(bool)
public void SetHasFrame(bool hasFrame)
Parameters
hasFrame
bool
SetIconName(string)
public void SetIconName(string iconName)
Parameters
iconName
string
SetLabel(string)
public void SetLabel(string label)
Parameters
label
string
SetMenuModel(MenuModel?)
public void SetMenuModel(MenuModel? menuModel)
Parameters
menuModel
MenuModel
SetPopover(Widget?)
public void SetPopover(Widget? popover)
Parameters
popover
Widget
SetPrimary(bool)
[Version("4.4")]
public void SetPrimary(bool primary)
Parameters
primary
bool
SetUseUnderline(bool)
public void SetUseUnderline(bool useUnderline)
Parameters
useUnderline
bool
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnActivate
public event SignalHandler<MenuButton> OnActivate