GLib.MenuItem – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
MenuItem
MenuItem
MenuItem.from_model
MenuItem.section
MenuItem.submenu
get_attribute_value
get_link
set_action_and_target
set_action_and_target_value
set_attribute
set_attribute_value
set_detailed_action
set_label
set_link
set_section
set_submenu
MenuItem
Object Hierarchy:
Description:
public
class
MenuItem
:
Object
Namespace:
GLib
Package:
gio-2.0
Content:
Creation methods:
public
MenuItem
(
string
? label,
string
? detailed_action)
public
MenuItem.from_model
(
MenuModel
model,
int
item_index)
public
MenuItem.section
(
string
? label,
MenuModel
section)
public
MenuItem.submenu
(
string
? label,
MenuModel
submenu)
Methods:
public
Variant
get_attribute_value
(
string
attribute,
VariantType
expected_value)
public
MenuModel
get_link
(
string
link)
public
void
set_action_and_target
(
string
? action,
string
? format_string, ...)
public
void
set_action_and_target_value
(
string
? action,
Variant
? target_value)
public
void
set_attribute
(
string
attribute,
string
? format_string, ...)
public
void
set_attribute_value
(
string
attribute,
Variant
? value)
public
void
set_detailed_action
(
string
detailed_action)
public
void
set_label
(
string
? label)
public
void
set_link
(
string
link,
MenuModel
? model)
public
void
set_section
(
MenuModel
? section)
public
void
set_submenu
(
MenuModel
? submenu)
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count