PopupMenu
Inherits: Popup < Window < Viewport < Node < Object
There is currently no description for this class. Please help us by contributing one!
Properties
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
activate_item_by_event ( InputEvent event, bool for_global_only=false ) |
|
void |
add_check_item ( String label, int id=-1, Key accel=0 ) |
void |
add_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false ) |
void |
add_icon_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 ) |
void |
add_icon_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false ) |
void |
add_icon_item ( Texture2D texture, String label, int id=-1, Key accel=0 ) |
void |
add_icon_radio_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 ) |
void |
add_icon_radio_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false ) |
void |
add_icon_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false ) |
void |
|
void |
add_multistate_item ( String label, int max_states, int default_state=0, int id=-1, Key accel=0 ) |
void |
add_radio_check_item ( String label, int id=-1, Key accel=0 ) |
void |
add_radio_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false ) |
void |
add_separator ( String label=””, int id=-1 ) |
void |
add_shortcut ( Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false ) |
void |
add_submenu_item ( String label, String submenu, int id=-1 ) |
void |
add_submenu_node_item ( String label, PopupMenu submenu, int id=-1 ) |
void |
|
get_focused_item ( ) const |
|
get_item_accelerator ( int index ) const |
|
get_item_icon ( int index ) const |
|
get_item_icon_max_width ( int index ) const |
|
get_item_icon_modulate ( int index ) const |
|
get_item_id ( int index ) const |
|
get_item_indent ( int index ) const |
|
get_item_index ( int id ) const |
|
get_item_language ( int index ) const |
|
get_item_metadata ( int index ) const |
|
get_item_multistate ( int index ) const |
|
get_item_multistate_max ( int index ) const |
|
get_item_shortcut ( int index ) const |
|
get_item_submenu ( int index ) const |
|
get_item_submenu_node ( int index ) const |
|
get_item_text ( int index ) const |
|
get_item_text_direction ( int index ) const |
|
get_item_tooltip ( int index ) const |
|
is_item_checkable ( int index ) const |
|
is_item_checked ( int index ) const |
|
is_item_disabled ( int index ) const |
|
is_item_radio_checkable ( int index ) const |
|
is_item_separator ( int index ) const |
|
is_item_shortcut_disabled ( int index ) const |
|
is_native_menu ( ) const |
|
is_system_menu ( ) const |
|
void |
remove_item ( int index ) |
void |
scroll_to_item ( int index ) |
void |
set_focused_item ( int index ) |
void |
set_item_accelerator ( int index, Key accel ) |
void |
set_item_as_checkable ( int index, bool enable ) |
void |
set_item_as_radio_checkable ( int index, bool enable ) |
void |
set_item_as_separator ( int index, bool enable ) |
void |
set_item_checked ( int index, bool checked ) |
void |
set_item_disabled ( int index, bool disabled ) |
void |
set_item_icon ( int index, Texture2D icon ) |
void |
set_item_icon_max_width ( int index, int width ) |
void |
set_item_icon_modulate ( int index, Color modulate ) |
void |
set_item_id ( int index, int id ) |
void |
set_item_indent ( int index, int indent ) |
void |
set_item_language ( int index, String language ) |
void |
set_item_metadata ( int index, Variant metadata ) |
void |
set_item_multistate ( int index, int state ) |
void |
set_item_multistate_max ( int index, int max_states ) |
void |
set_item_shortcut ( int index, Shortcut shortcut, bool global=false ) |
void |
set_item_shortcut_disabled ( int index, bool disabled ) |
void |
set_item_submenu ( int index, String submenu ) |
void |
set_item_submenu_node ( int index, PopupMenu submenu ) |
void |
set_item_text ( int index, String text ) |
void |
set_item_text_direction ( int index, TextDirection direction ) |
void |
set_item_tooltip ( int index, String tooltip ) |
void |
toggle_item_checked ( int index ) |
void |
toggle_item_multistate ( int index ) |
Theme Properties
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Signals
id_focused ( int id )
There is currently no description for this signal. Please help us by contributing one!
id_pressed ( int id )
There is currently no description for this signal. Please help us by contributing one!
index_pressed ( int index )
There is currently no description for this signal. Please help us by contributing one!
menu_changed ( )
There is currently no description for this signal. Please help us by contributing one!
Property Descriptions
bool allow_search = true
There is currently no description for this property. Please help us by contributing one!
bool hide_on_checkable_item_selection = true
void set_hide_on_checkable_item_selection ( bool value )
bool is_hide_on_checkable_item_selection ( )
There is currently no description for this property. Please help us by contributing one!
bool hide_on_item_selection = true
There is currently no description for this property. Please help us by contributing one!
bool hide_on_state_item_selection = false
There is currently no description for this property. Please help us by contributing one!
int item_count = 0
There is currently no description for this property. Please help us by contributing one!
bool prefer_native_menu = false
There is currently no description for this property. Please help us by contributing one!
float submenu_popup_delay = 0.3
There is currently no description for this property. Please help us by contributing one!
SystemMenus system_menu_id = 0
void set_system_menu ( SystemMenus value )
SystemMenus get_system_menu ( )
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
bool activate_item_by_event ( InputEvent event, bool for_global_only=false )
There is currently no description for this method. Please help us by contributing one!
void add_check_item ( String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )
There is currently no description for this method. Please help us by contributing one!
void add_icon_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_icon_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )
There is currently no description for this method. Please help us by contributing one!
void add_icon_item ( Texture2D texture, String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_icon_radio_check_item ( Texture2D texture, String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_icon_radio_check_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false )
There is currently no description for this method. Please help us by contributing one!
void add_icon_shortcut ( Texture2D texture, Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )
There is currently no description for this method. Please help us by contributing one!
void add_item ( String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_multistate_item ( String label, int max_states, int default_state=0, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_radio_check_item ( String label, int id=-1, Key accel=0 )
There is currently no description for this method. Please help us by contributing one!
void add_radio_check_shortcut ( Shortcut shortcut, int id=-1, bool global=false )
There is currently no description for this method. Please help us by contributing one!
void add_separator ( String label=””, int id=-1 )
There is currently no description for this method. Please help us by contributing one!
void add_shortcut ( Shortcut shortcut, int id=-1, bool global=false, bool allow_echo=false )
There is currently no description for this method. Please help us by contributing one!
void add_submenu_item ( String label, String submenu, int id=-1 )
There is currently no description for this method. Please help us by contributing one!
void add_submenu_node_item ( String label, PopupMenu submenu, int id=-1 )
There is currently no description for this method. Please help us by contributing one!
void clear ( bool free_submenus=false )
There is currently no description for this method. Please help us by contributing one!
int get_focused_item ( ) const
There is currently no description for this method. Please help us by contributing one!
Key get_item_accelerator ( int index ) const
There is currently no description for this method. Please help us by contributing one!
Texture2D get_item_icon ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_icon_max_width ( int index ) const
There is currently no description for this method. Please help us by contributing one!
Color get_item_icon_modulate ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_id ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_indent ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_index ( int id ) const
There is currently no description for this method. Please help us by contributing one!
String get_item_language ( int index ) const
There is currently no description for this method. Please help us by contributing one!
Variant get_item_metadata ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_multistate ( int index ) const
There is currently no description for this method. Please help us by contributing one!
int get_item_multistate_max ( int index ) const
There is currently no description for this method. Please help us by contributing one!
Shortcut get_item_shortcut ( int index ) const
There is currently no description for this method. Please help us by contributing one!
String get_item_submenu ( int index ) const
There is currently no description for this method. Please help us by contributing one!
PopupMenu get_item_submenu_node ( int index ) const
There is currently no description for this method. Please help us by contributing one!
String get_item_text ( int index ) const
There is currently no description for this method. Please help us by contributing one!
TextDirection get_item_text_direction ( int index ) const
There is currently no description for this method. Please help us by contributing one!
String get_item_tooltip ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_checkable ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_checked ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_disabled ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_radio_checkable ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_separator ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_item_shortcut_disabled ( int index ) const
There is currently no description for this method. Please help us by contributing one!
bool is_native_menu ( ) const
There is currently no description for this method. Please help us by contributing one!
bool is_system_menu ( ) const
There is currently no description for this method. Please help us by contributing one!
void remove_item ( int index )
There is currently no description for this method. Please help us by contributing one!
void scroll_to_item ( int index )
There is currently no description for this method. Please help us by contributing one!
void set_focused_item ( int index )
There is currently no description for this method. Please help us by contributing one!
void set_item_accelerator ( int index, Key accel )
There is currently no description for this method. Please help us by contributing one!
void set_item_as_checkable ( int index, bool enable )
There is currently no description for this method. Please help us by contributing one!
void set_item_as_radio_checkable ( int index, bool enable )
There is currently no description for this method. Please help us by contributing one!
void set_item_as_separator ( int index, bool enable )
There is currently no description for this method. Please help us by contributing one!
void set_item_checked ( int index, bool checked )
There is currently no description for this method. Please help us by contributing one!
void set_item_disabled ( int index, bool disabled )
There is currently no description for this method. Please help us by contributing one!
void set_item_icon ( int index, Texture2D icon )
There is currently no description for this method. Please help us by contributing one!
void set_item_icon_max_width ( int index, int width )
There is currently no description for this method. Please help us by contributing one!
void set_item_icon_modulate ( int index, Color modulate )
There is currently no description for this method. Please help us by contributing one!
void set_item_id ( int index, int id )
There is currently no description for this method. Please help us by contributing one!
void set_item_indent ( int index, int indent )
There is currently no description for this method. Please help us by contributing one!
void set_item_language ( int index, String language )
There is currently no description for this method. Please help us by contributing one!
void set_item_metadata ( int index, Variant metadata )
There is currently no description for this method. Please help us by contributing one!
void set_item_multistate ( int index, int state )
There is currently no description for this method. Please help us by contributing one!
void set_item_multistate_max ( int index, int max_states )
There is currently no description for this method. Please help us by contributing one!
void set_item_shortcut ( int index, Shortcut shortcut, bool global=false )
There is currently no description for this method. Please help us by contributing one!
void set_item_shortcut_disabled ( int index, bool disabled )
There is currently no description for this method. Please help us by contributing one!
void set_item_submenu ( int index, String submenu )
There is currently no description for this method. Please help us by contributing one!
void set_item_submenu_node ( int index, PopupMenu submenu )
There is currently no description for this method. Please help us by contributing one!
void set_item_text ( int index, String text )
There is currently no description for this method. Please help us by contributing one!
void set_item_text_direction ( int index, TextDirection direction )
There is currently no description for this method. Please help us by contributing one!
void set_item_tooltip ( int index, String tooltip )
There is currently no description for this method. Please help us by contributing one!
void toggle_item_checked ( int index )
There is currently no description for this method. Please help us by contributing one!
void toggle_item_multistate ( int index )
There is currently no description for this method. Please help us by contributing one!
Theme Property Descriptions
Color font_accelerator_color = Color(0.7, 0.7, 0.7, 0.8)
There is currently no description for this theme property. Please help us by contributing one!
Color font_color = Color(0.875, 0.875, 0.875, 1)
There is currently no description for this theme property. Please help us by contributing one!
Color font_disabled_color = Color(0.4, 0.4, 0.4, 0.8)
There is currently no description for this theme property. Please help us by contributing one!
Color font_hover_color = Color(0.875, 0.875, 0.875, 1)
There is currently no description for this theme property. Please help us by contributing one!
Color font_outline_color = Color(0, 0, 0, 1)
There is currently no description for this theme property. Please help us by contributing one!
Color font_separator_color = Color(0.875, 0.875, 0.875, 1)
There is currently no description for this theme property. Please help us by contributing one!
Color font_separator_outline_color = Color(0, 0, 0, 1)
There is currently no description for this theme property. Please help us by contributing one!
int h_separation = 4
There is currently no description for this theme property. Please help us by contributing one!
int icon_max_width = 0
There is currently no description for this theme property. Please help us by contributing one!
int indent = 10
There is currently no description for this theme property. Please help us by contributing one!
int item_end_padding = 2
There is currently no description for this theme property. Please help us by contributing one!
int item_start_padding = 2
There is currently no description for this theme property. Please help us by contributing one!
int outline_size = 0
There is currently no description for this theme property. Please help us by contributing one!
int separator_outline_size = 0
There is currently no description for this theme property. Please help us by contributing one!
int v_separation = 4
There is currently no description for this theme property. Please help us by contributing one!
Font font
There is currently no description for this theme property. Please help us by contributing one!
Font font_separator
There is currently no description for this theme property. Please help us by contributing one!
int font_separator_size
There is currently no description for this theme property. Please help us by contributing one!
int font_size
There is currently no description for this theme property. Please help us by contributing one!
Texture2D checked
There is currently no description for this theme property. Please help us by contributing one!
Texture2D checked_disabled
There is currently no description for this theme property. Please help us by contributing one!
Texture2D radio_checked
There is currently no description for this theme property. Please help us by contributing one!
Texture2D radio_checked_disabled
There is currently no description for this theme property. Please help us by contributing one!
Texture2D radio_unchecked
There is currently no description for this theme property. Please help us by contributing one!
Texture2D radio_unchecked_disabled
There is currently no description for this theme property. Please help us by contributing one!
Texture2D submenu
There is currently no description for this theme property. Please help us by contributing one!
Texture2D submenu_mirrored
There is currently no description for this theme property. Please help us by contributing one!
Texture2D unchecked
There is currently no description for this theme property. Please help us by contributing one!
Texture2D unchecked_disabled
There is currently no description for this theme property. Please help us by contributing one!
StyleBox hover
There is currently no description for this theme property. Please help us by contributing one!
StyleBox labeled_separator_left
There is currently no description for this theme property. Please help us by contributing one!
StyleBox labeled_separator_right
There is currently no description for this theme property. Please help us by contributing one!
StyleBox panel
There is currently no description for this theme property. Please help us by contributing one!
StyleBox separator
There is currently no description for this theme property. Please help us by contributing one!