GLib.Menu – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
Menu
ATTRIBUTE_ACTION
ATTRIBUTE_LABEL
ATTRIBUTE_TARGET
LINK_SECTION
LINK_SUBMENU
Menu
append
append_item
append_section
append_submenu
freeze
insert
insert_item
insert_section
insert_submenu
prepend
prepend_item
prepend_section
prepend_submenu
remove
Menu
Object Hierarchy:
Description:
public
class
Menu
:
MenuModel
Namespace:
GLib
Package:
gio-2.0
Content:
Constants:
public
const
unowned
string
ATTRIBUTE_ACTION
public
const
unowned
string
ATTRIBUTE_LABEL
public
const
unowned
string
ATTRIBUTE_TARGET
public
const
unowned
string
LINK_SECTION
public
const
unowned
string
LINK_SUBMENU
Creation methods:
public
Menu
()
Methods:
public
void
append
(
string
? label,
string
? detailed_action)
public
void
append_item
(
MenuItem
item)
public
void
append_section
(
string
? label,
MenuModel
section)
public
void
append_submenu
(
string
? label,
MenuModel
submenu)
public
void
freeze
()
public
void
insert
(
int
position,
string
? label,
string
? detailed_action)
public
void
insert_item
(
int
position,
MenuItem
item)
public
void
insert_section
(
int
position,
string
? label,
MenuModel
section)
public
void
insert_submenu
(
int
position,
string
? label,
MenuModel
submenu)
public
void
prepend
(
string
? label,
string
? detailed_action)
public
void
prepend_item
(
MenuItem
item)
public
void
prepend_section
(
string
? label,
MenuModel
section)
public
void
prepend_submenu
(
string
? label,
MenuModel
submenu)
public
void
remove
(
int
position)
Inherited Members:
All known members inherited from class GLib.MenuModel
get_item_attribute
get_item_attribute_value
get_item_attributes
get_item_link
get_item_links
get_n_items
is_mutable
iterate_item_attributes
iterate_item_links
items_changed
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