MenuItem
Object Hierarchy:
Description:
[ CCode ( type_id = "g_menu_item_get_type ()" ) ]
[ Version ( since = "2.32" ) ]
public class MenuItem : Object
MenuItem is an opaque structure type.
You must access it using the functions below.
Content:
Creation methods:
Methods:
- public bool get_attribute (string attribute, string format_string, ...)
Queries the named attribute
on
this.
- public Variant? get_attribute_value (string attribute, VariantType? expected_type)
Queries the named attribute
on
this.
- public MenuModel? get_link (string link)
Queries the named link
on this
.
- public void set_action_and_target (string? action, string? format_string, ...)
Sets or unsets the "action" and "target" attributes of
this.
- public void set_action_and_target_value (string? action, Variant? target_value)
Sets or unsets the "action" and "target" attributes of
this.
- public void set_attribute (string attribute, string? format_string, ...)
Sets or unsets an attribute on this.
- public void set_attribute_value (string attribute, Variant? value)
Sets or unsets an attribute on this.
- public void set_detailed_action (string detailed_action)
Sets the "action" and possibly the "target" attribute of
this.
- public void set_icon (Icon icon)
Sets (or unsets) the icon on this.
- public void set_label (string? label)
Sets or unsets the "label" attribute of
this.
- public void set_link (string link, MenuModel? model)
Creates a link from this to
model
if non-null, or unsets it.
- public void set_section (MenuModel? section)
Sets or unsets the "section" link of this
to section
.
- public void set_submenu (MenuModel? submenu)
Sets or unsets the "submenu" link of this
to submenu
.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref