Menu
Item
Class
constructor
hide_
on_
activate
parent_
class
name
activate
activate_
item
get_
label
set_
label
toggle_
size_
allocate
toggle_
size_
request
GJS API Reference
Gtk-2.0
Gtk
MenuItemClass
Class MenuItemClass
Hierarchy
MenuItemClass
Index
Constructors
constructor
Properties
hide_
on_
activate
parent_
class
name
Methods
activate
activate_
item
get_
label
set_
label
toggle_
size_
allocate
toggle_
size_
request
Constructors
constructor
new
Menu
Item
Class
(
)
:
Gtk
.
MenuItemClass
Returns
Gtk
.
MenuItemClass
Properties
hide_
on_
activate
hide_
on_
activate
:
number
parent_
class
parent_
class
:
Gtk
.
ItemClass
Static
name
name
:
string
Methods
activate
activate
(
menu_item
:
Gtk
.
MenuItem
)
:
void
Parameters
menu_item:
Gtk
.
MenuItem
Returns
void
activate_
item
activate_
item
(
menu_item
:
Gtk
.
MenuItem
)
:
void
Parameters
menu_item:
Gtk
.
MenuItem
Returns
void
get_
label
get_
label
(
menu_item
:
Gtk
.
MenuItem
)
:
string
Parameters
menu_item:
Gtk
.
MenuItem
Returns
string
set_
label
set_
label
(
menu_item
:
Gtk
.
MenuItem
, label
:
string
)
:
void
Parameters
menu_item:
Gtk
.
MenuItem
label:
string
Returns
void
toggle_
size_
allocate
toggle_
size_
allocate
(
menu_item
:
Gtk
.
MenuItem
, allocation
:
number
)
:
void
Parameters
menu_item:
Gtk
.
MenuItem
allocation:
number
Returns
void
toggle_
size_
request
toggle_
size_
request
(
menu_item
:
Gtk
.
MenuItem
, requisition
:
number
)
:
void
Parameters
menu_item:
Gtk
.
MenuItem
requisition:
number
Returns
void
Menu
Item
Class
constructor
hide_
on_
activate
parent_
class
name
activate
activate_
item
get_
label
set_
label
toggle_
size_
allocate
toggle_
size_
request
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfMl8wLkd0ay5NZW51SXRlbUN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