Menu
Model
Class
constructor
parent_
class
name
get_
item_
attribute_
value
get_
item_
attributes
get_
item_
link
get_
item_
links
get_
n_
items
is_
mutable
iterate_
item_
attributes
iterate_
item_
links
GJS API Reference
Gio-2.0
Gio
MenuModelClass
Class MenuModelClass
Hierarchy
MenuModelClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
get_
item_
attribute_
value
get_
item_
attributes
get_
item_
link
get_
item_
links
get_
n_
items
is_
mutable
iterate_
item_
attributes
iterate_
item_
links
Constructors
constructor
new
Menu
Model
Class
(
)
:
MenuModelClass
Returns
MenuModelClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
get_
item_
attribute_
value
get_
item_
attribute_
value
(
model
:
MenuModel
, item_index
:
number
, attribute
:
string
, expected_type
:
VariantType
)
:
GLib
.
Variant
Parameters
model:
MenuModel
item_index:
number
attribute:
string
expected_type:
VariantType
Returns
GLib
.
Variant
get_
item_
attributes
get_
item_
attributes
(
model
:
MenuModel
, item_index
:
number
)
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Parameters
model:
MenuModel
item_index:
number
Returns
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
get_
item_
link
get_
item_
link
(
model
:
MenuModel
, item_index
:
number
, link
:
string
)
:
MenuModel
Parameters
model:
MenuModel
item_index:
number
link:
string
Returns
MenuModel
get_
item_
links
get_
item_
links
(
model
:
MenuModel
, item_index
:
number
)
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Parameters
model:
MenuModel
item_index:
number
Returns
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
get_
n_
items
get_
n_
items
(
model
:
MenuModel
)
:
number
Parameters
model:
MenuModel
Returns
number
is_
mutable
is_
mutable
(
model
:
MenuModel
)
:
boolean
Parameters
model:
MenuModel
Returns
boolean
iterate_
item_
attributes
iterate_
item_
attributes
(
model
:
MenuModel
, item_index
:
number
)
:
MenuAttributeIter
Parameters
model:
MenuModel
item_index:
number
Returns
MenuAttributeIter
iterate_
item_
links
iterate_
item_
links
(
model
:
MenuModel
, item_index
:
number
)
:
MenuLinkIter
Parameters
model:
MenuModel
item_index:
number
Returns
MenuLinkIter
Menu
Model
Class
constructor
parent_
class
name
get_
item_
attribute_
value
get_
item_
attributes
get_
item_
link
get_
item_
links
get_
n_
items
is_
mutable
iterate_
item_
attributes
iterate_
item_
links
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8wLkdpby5NZW51TW9kZWxDbGFzcy5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiR2lvXzJfMC5HaW8uTWVudU1vZGVsQ2xhc3MuaHRtbCNwYXJlbnRfY2xhc3MiLCJuYW1lIjoicGFyZW50X2NsYXNzIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJHaW9fMl8wLkdpby5NZW51TW9kZWxDbGFzcy5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtbWV0aG9kIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8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