NativeMenu

Inherits: Object

There is currently no description for this class. Please help us by contributing one!

Methods

int

add_check_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_icon_check_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_icon_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_icon_radio_check_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_multistate_item ( RID rid, String label, int max_states, int default_state, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_radio_check_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

int

add_separator ( RID rid, int index=-1 )

int

add_submenu_item ( RID rid, String label, RID submenu_rid, Variant tag=null, int index=-1 )

void

clear ( RID rid )

RID

create_menu ( )

int

find_item_index_with_submenu ( RID rid, RID submenu_rid ) const

int

find_item_index_with_tag ( RID rid, Variant tag ) const

int

find_item_index_with_text ( RID rid, String text ) const

void

free_menu ( RID rid )

Key

get_item_accelerator ( RID rid, int idx ) const

Callable

get_item_callback ( RID rid, int idx ) const

int

get_item_count ( RID rid ) const

Texture2D

get_item_icon ( RID rid, int idx ) const

int

get_item_indentation_level ( RID rid, int idx ) const

Callable

get_item_key_callback ( RID rid, int idx ) const

int

get_item_max_states ( RID rid, int idx ) const

int

get_item_state ( RID rid, int idx ) const

RID

get_item_submenu ( RID rid, int idx ) const

Variant

get_item_tag ( RID rid, int idx ) const

String

get_item_text ( RID rid, int idx ) const

String

get_item_tooltip ( RID rid, int idx ) const

float

get_minimum_width ( RID rid ) const

Callable

get_popup_close_callback ( RID rid ) const

Callable

get_popup_open_callback ( RID rid ) const

Vector2

get_size ( RID rid ) const

RID

get_system_menu ( SystemMenus menu_id ) const

String

get_system_menu_name ( SystemMenus menu_id ) const

bool

has_feature ( Feature feature ) const

bool

has_menu ( RID rid ) const

bool

has_system_menu ( SystemMenus menu_id ) const

bool

is_item_checkable ( RID rid, int idx ) const

bool

is_item_checked ( RID rid, int idx ) const

bool

is_item_disabled ( RID rid, int idx ) const

bool

is_item_hidden ( RID rid, int idx ) const

bool

is_item_radio_checkable ( RID rid, int idx ) const

bool

is_opened ( RID rid ) const

bool

is_system_menu ( RID rid ) const

void

popup ( RID rid, Vector2i position )

void

remove_item ( RID rid, int idx )

void

set_interface_direction ( RID rid, bool is_rtl )

void

set_item_accelerator ( RID rid, int idx, Key keycode )

void

set_item_callback ( RID rid, int idx, Callable callback )

void

set_item_checkable ( RID rid, int idx, bool checkable )

void

set_item_checked ( RID rid, int idx, bool checked )

void

set_item_disabled ( RID rid, int idx, bool disabled )

void

set_item_hidden ( RID rid, int idx, bool hidden )

void

set_item_hover_callbacks ( RID rid, int idx, Callable callback )

void

set_item_icon ( RID rid, int idx, Texture2D icon )

void

set_item_indentation_level ( RID rid, int idx, int level )

void

set_item_key_callback ( RID rid, int idx, Callable key_callback )

void

set_item_max_states ( RID rid, int idx, int max_states )

void

set_item_radio_checkable ( RID rid, int idx, bool checkable )

void

set_item_state ( RID rid, int idx, int state )

void

set_item_submenu ( RID rid, int idx, RID submenu_rid )

void

set_item_tag ( RID rid, int idx, Variant tag )

void

set_item_text ( RID rid, int idx, String text )

void

set_item_tooltip ( RID rid, int idx, String tooltip )

void

set_minimum_width ( RID rid, float width )

void

set_popup_close_callback ( RID rid, Callable callback )

void

set_popup_open_callback ( RID rid, Callable callback )


Enumerations

enum Feature:

Feature FEATURE_GLOBAL_MENU = 0

There is currently no description for this enum. Please help us by contributing one!

Feature FEATURE_POPUP_MENU = 1

There is currently no description for this enum. Please help us by contributing one!

Feature FEATURE_OPEN_CLOSE_CALLBACK = 2

There is currently no description for this enum. Please help us by contributing one!

Feature FEATURE_HOVER_CALLBACK = 3

There is currently no description for this enum. Please help us by contributing one!

Feature FEATURE_KEY_CALLBACK = 4

There is currently no description for this enum. Please help us by contributing one!


enum SystemMenus:

SystemMenus INVALID_MENU_ID = 0

There is currently no description for this enum. Please help us by contributing one!

SystemMenus MAIN_MENU_ID = 1

There is currently no description for this enum. Please help us by contributing one!

SystemMenus APPLICATION_MENU_ID = 2

There is currently no description for this enum. Please help us by contributing one!

SystemMenus WINDOW_MENU_ID = 3

There is currently no description for this enum. Please help us by contributing one!

SystemMenus HELP_MENU_ID = 4

There is currently no description for this enum. Please help us by contributing one!

SystemMenus DOCK_MENU_ID = 5

There is currently no description for this enum. Please help us by contributing one!


Method Descriptions

int add_check_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_icon_check_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_icon_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_icon_radio_check_item ( RID rid, Texture2D icon, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_multistate_item ( RID rid, String label, int max_states, int default_state, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_radio_check_item ( RID rid, String label, Callable callback=Callable(), Callable key_callback=Callable(), Variant tag=null, Key accelerator=0, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_separator ( RID rid, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


int add_submenu_item ( RID rid, String label, RID submenu_rid, Variant tag=null, int index=-1 )

There is currently no description for this method. Please help us by contributing one!


void clear ( RID rid )

There is currently no description for this method. Please help us by contributing one!


RID create_menu ( )

There is currently no description for this method. Please help us by contributing one!


int find_item_index_with_submenu ( RID rid, RID submenu_rid ) const

There is currently no description for this method. Please help us by contributing one!


int find_item_index_with_tag ( RID rid, Variant tag ) const

There is currently no description for this method. Please help us by contributing one!


int find_item_index_with_text ( RID rid, String text ) const

There is currently no description for this method. Please help us by contributing one!


void free_menu ( RID rid )

There is currently no description for this method. Please help us by contributing one!


Key get_item_accelerator ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


Callable get_item_callback ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_count ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


Texture2D get_item_icon ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_indentation_level ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


Callable get_item_key_callback ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_max_states ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


int get_item_state ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


RID get_item_submenu ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


Variant get_item_tag ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_text ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


String get_item_tooltip ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


float get_minimum_width ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


Callable get_popup_close_callback ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


Callable get_popup_open_callback ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 get_size ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


RID get_system_menu ( SystemMenus menu_id ) const

There is currently no description for this method. Please help us by contributing one!


String get_system_menu_name ( SystemMenus menu_id ) const

There is currently no description for this method. Please help us by contributing one!


bool has_feature ( Feature feature ) const

There is currently no description for this method. Please help us by contributing one!


bool has_menu ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


bool has_system_menu ( SystemMenus menu_id ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_checkable ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_checked ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_disabled ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_hidden ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


bool is_item_radio_checkable ( RID rid, int idx ) const

There is currently no description for this method. Please help us by contributing one!


bool is_opened ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


bool is_system_menu ( RID rid ) const

There is currently no description for this method. Please help us by contributing one!


void popup ( RID rid, Vector2i position )

There is currently no description for this method. Please help us by contributing one!


void remove_item ( RID rid, int idx )

There is currently no description for this method. Please help us by contributing one!


void set_interface_direction ( RID rid, bool is_rtl )

There is currently no description for this method. Please help us by contributing one!


void set_item_accelerator ( RID rid, int idx, Key keycode )

There is currently no description for this method. Please help us by contributing one!


void set_item_callback ( RID rid, int idx, Callable callback )

There is currently no description for this method. Please help us by contributing one!


void set_item_checkable ( RID rid, int idx, bool checkable )

There is currently no description for this method. Please help us by contributing one!


void set_item_checked ( RID rid, int idx, bool checked )

There is currently no description for this method. Please help us by contributing one!


void set_item_disabled ( RID rid, int idx, bool disabled )

There is currently no description for this method. Please help us by contributing one!


void set_item_hidden ( RID rid, int idx, bool hidden )

There is currently no description for this method. Please help us by contributing one!


void set_item_hover_callbacks ( RID rid, int idx, Callable callback )

There is currently no description for this method. Please help us by contributing one!


void set_item_icon ( RID rid, int idx, Texture2D icon )

There is currently no description for this method. Please help us by contributing one!


void set_item_indentation_level ( RID rid, int idx, int level )

There is currently no description for this method. Please help us by contributing one!


void set_item_key_callback ( RID rid, int idx, Callable key_callback )

There is currently no description for this method. Please help us by contributing one!


void set_item_max_states ( RID rid, int idx, int max_states )

There is currently no description for this method. Please help us by contributing one!


void set_item_radio_checkable ( RID rid, int idx, bool checkable )

There is currently no description for this method. Please help us by contributing one!


void set_item_state ( RID rid, int idx, int state )

There is currently no description for this method. Please help us by contributing one!


void set_item_submenu ( RID rid, int idx, RID submenu_rid )

There is currently no description for this method. Please help us by contributing one!


void set_item_tag ( RID rid, int idx, Variant tag )

There is currently no description for this method. Please help us by contributing one!


void set_item_text ( RID rid, int idx, String text )

There is currently no description for this method. Please help us by contributing one!


void set_item_tooltip ( RID rid, int idx, String tooltip )

There is currently no description for this method. Please help us by contributing one!


void set_minimum_width ( RID rid, float width )

There is currently no description for this method. Please help us by contributing one!


void set_popup_close_callback ( RID rid, Callable callback )

There is currently no description for this method. Please help us by contributing one!


void set_popup_open_callback ( RID rid, Callable callback )

There is currently no description for this method. Please help us by contributing one!