Class MenuButton
public class MenuButton
- Inheritance
-
MenuButton
- Inherited Members
Methods
GetActive(IntPtr)
Calls native method gtk_menu_button_get_active. Version: 4.10
[Version("4.10")]
public static extern bool GetActive(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetAlwaysShowArrow(IntPtr)
Calls native method gtk_menu_button_get_always_show_arrow. Version: 4.4
[Version("4.4")]
public static extern bool GetAlwaysShowArrow(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetCanShrink(IntPtr)
Calls native method gtk_menu_button_get_can_shrink. Version: 4.12
[Version("4.12")]
public static extern bool GetCanShrink(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetChild(IntPtr)
Calls native method gtk_menu_button_get_child. Version: 4.6
[Version("4.6")]
public static extern IntPtr GetChild(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetDirection(IntPtr)
Calls native method gtk_menu_button_get_direction.
public static extern ArrowType GetDirection(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- ArrowType
Transfer ownership: None Nullable: False
GetGType()
Calls native function gtk_menu_button_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHasFrame(IntPtr)
Calls native method gtk_menu_button_get_has_frame.
public static extern bool GetHasFrame(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetIconName(IntPtr)
Calls native method gtk_menu_button_get_icon_name.
public static extern NullableUtf8StringUnownedHandle GetIconName(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetLabel(IntPtr)
Calls native method gtk_menu_button_get_label.
public static extern NullableUtf8StringUnownedHandle GetLabel(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetMenuModel(IntPtr)
Calls native method gtk_menu_button_get_menu_model.
public static extern IntPtr GetMenuModel(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetPopover(IntPtr)
Calls native method gtk_menu_button_get_popover.
public static extern IntPtr GetPopover(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetPrimary(IntPtr)
Calls native method gtk_menu_button_get_primary. Version: 4.4
[Version("4.4")]
public static extern bool GetPrimary(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetUseUnderline(IntPtr)
Calls native method gtk_menu_button_get_use_underline.
public static extern bool GetUseUnderline(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
New()
Calls native constructor gtk_menu_button_new.
public static extern IntPtr New()
Returns
- IntPtr
Transfer ownership: None Nullable: False
Popdown(IntPtr)
Calls native method gtk_menu_button_popdown.
public static extern void Popdown(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
Popup(IntPtr)
Calls native method gtk_menu_button_popup.
public static extern void Popup(IntPtr menuButton)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
SetActive(IntPtr, bool)
Calls native method gtk_menu_button_set_active. Version: 4.10
[Version("4.10")]
public static extern void SetActive(IntPtr menuButton, bool active)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
active
boolTransfer ownership: None Nullable: False
SetAlwaysShowArrow(IntPtr, bool)
Calls native method gtk_menu_button_set_always_show_arrow. Version: 4.4
[Version("4.4")]
public static extern void SetAlwaysShowArrow(IntPtr menuButton, bool alwaysShowArrow)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
alwaysShowArrow
boolTransfer ownership: None Nullable: False
SetCanShrink(IntPtr, bool)
Calls native method gtk_menu_button_set_can_shrink. Version: 4.12
[Version("4.12")]
public static extern void SetCanShrink(IntPtr menuButton, bool canShrink)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
canShrink
boolTransfer ownership: None Nullable: False
SetChild(IntPtr, IntPtr)
Calls native method gtk_menu_button_set_child. Version: 4.6
[Version("4.6")]
public static extern void SetChild(IntPtr menuButton, IntPtr child)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
child
IntPtrTransfer ownership: None Nullable: True
SetCreatePopupFunc(IntPtr, MenuButtonCreatePopupFunc, IntPtr, DestroyNotify)
Calls native method gtk_menu_button_set_create_popup_func.
public static extern void SetCreatePopupFunc(IntPtr menuButton, MenuButtonCreatePopupFunc func, IntPtr userData, DestroyNotify destroyNotify)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
func
MenuButtonCreatePopupFuncTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
destroyNotify
DestroyNotifyTransfer ownership: None Nullable: True
SetDirection(IntPtr, ArrowType)
Calls native method gtk_menu_button_set_direction.
public static extern void SetDirection(IntPtr menuButton, ArrowType direction)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
direction
ArrowTypeTransfer ownership: None Nullable: False
SetHasFrame(IntPtr, bool)
Calls native method gtk_menu_button_set_has_frame.
public static extern void SetHasFrame(IntPtr menuButton, bool hasFrame)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
hasFrame
boolTransfer ownership: None Nullable: False
SetIconName(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_menu_button_set_icon_name.
public static extern void SetIconName(IntPtr menuButton, NonNullableUtf8StringHandle iconName)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
iconName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetLabel(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_menu_button_set_label.
public static extern void SetLabel(IntPtr menuButton, NonNullableUtf8StringHandle label)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
label
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetMenuModel(IntPtr, IntPtr)
Calls native method gtk_menu_button_set_menu_model.
public static extern void SetMenuModel(IntPtr menuButton, IntPtr menuModel)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
menuModel
IntPtrTransfer ownership: None Nullable: True
SetPopover(IntPtr, IntPtr)
Calls native method gtk_menu_button_set_popover.
public static extern void SetPopover(IntPtr menuButton, IntPtr popover)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
popover
IntPtrTransfer ownership: None Nullable: True
SetPrimary(IntPtr, bool)
Calls native method gtk_menu_button_set_primary. Version: 4.4
[Version("4.4")]
public static extern void SetPrimary(IntPtr menuButton, bool primary)
Parameters
menuButton
IntPtrTransfer ownership: None Nullable: False
primary
boolTransfer ownership: None Nullable: False
SetUseUnderline(IntPtr, bool)
Calls native method gtk_menu_button_set_use_underline.
public static extern void SetUseUnderline(IntPtr menuButton, bool useUnderline)