wxMenu.3erl

Langue: en

Autres versions - même langue

Version: 295273 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

wxMenu - See external documentation: wxMenu.

DESCRIPTION

See external documentation: wxMenu <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html>.

This class is derived (and can use functions) from:
wxEvtHandler

DATA TYPES

wxMenu():

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new() -> wxMenu()


Equivalent to new([]).

new(Options::[Option]) -> wxMenu()

Types
Option = {style, integer()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuwxmenu>.

new(Title::string(), Options::[Option]) -> wxMenu()

Types
Option = {style, integer()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuwxmenu>.

append(This::wxMenu(), Item::wxMenuItem() (see module wxMenuItem)) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend>.

append(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to append(This, Itemid, Text, []).

append(This::wxMenu(), Itemid::integer(), Text::string(), X::wxMenu() | term()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend>.

 Alternatives: 
append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> append(This, Itemid, Text, Submenu, [])
append(This::wxMenu(), Itemid::integer(), Text::string(), [Option]) -> wxMenuItem:wxMenuItem()

 Option = {help, string()} | {kind, WxItemKind} 

 WxItemKind = integer() 

 WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX 

append(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappend>.

 Alternatives: 
append(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok
append(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()

 Option = {help, string()} 

appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to appendCheckItem(This, Itemid, Text, []).

appendCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendcheckitem>.

appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to appendRadioItem(This, Itemid, Text, []).

appendRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendradioitem>.

appendSeparator(This::wxMenu()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuappendseparator>.

break(This::wxMenu()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenubreak>.

check(This::wxMenu(), Itemid::integer(), Check::bool()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenucheck>.

delete(This::wxMenu(), X::integer() | term()) -> bool()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenudelete>.

 Alternatives: 
delete(This::wxMenu(), Itemid::integer()) -> bool()
delete(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool()

Destroy(This::wxMenu(), X::integer() | term()) -> bool()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenudestroy>.

 Alternatives: 
'Destroy'(This::wxMenu(), Itemid::integer()) -> bool()
'Destroy'(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> bool()

enable(This::wxMenu(), Itemid::integer(), Enable::bool()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuenable>.

findItem(This::wxMenu(), X::integer() | string()) -> wxMenuItem() (see module wxMenuItem) | integer()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenufinditem>.

 Alternatives: 
findItem(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem()
findItem(This::wxMenu(), Item::string()) -> integer()

findItemByPosition(This::wxMenu(), Position::integer()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenufinditembyposition>.

getHelpString(This::wxMenu(), Itemid::integer()) -> string()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugethelpstring>.

getLabel(This::wxMenu(), Itemid::integer()) -> string()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetlabel>.

getMenuItemCount(This::wxMenu()) -> integer()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetmenuitemcount>.

getMenuItems(This::wxMenu()) -> [wxMenuItem() (see module wxMenuItem)]


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugetmenuitems>.

getTitle(This::wxMenu()) -> string()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenugettitle>.

insert(This::wxMenu(), Pos::integer(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert>.

 Alternatives: 
insert(This::wxMenu(), Pos::integer(), Itemid::integer()) -> insert(This, Pos, Itemid, [])
insert(This::wxMenu(), Pos::integer(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {text, string()} | {help, string()} | {kind, WxItemKind}
WxItemKind = integer()

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert>.

 WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to insert(This, Pos, Itemid, Text, Submenu, []).

insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsert>.

 Alternatives: 
insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok
insert(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()

 Option = {help, string()} 

insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to insertCheckItem(This, Pos, Itemid, Text, []).

insertCheckItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertcheckitem>.

insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to insertRadioItem(This, Pos, Itemid, Text, []).

insertRadioItem(This::wxMenu(), Pos::integer(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertradioitem>.

insertSeparator(This::wxMenu(), Pos::integer()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuinsertseparator>.

isChecked(This::wxMenu(), Itemid::integer()) -> bool()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuischecked>.

isEnabled(This::wxMenu(), Itemid::integer()) -> bool()


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuisenabled>.

prepend(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend>.

 Alternatives: 
prepend(This::wxMenu(), Itemid::integer()) -> prepend(This, Itemid, [])
prepend(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

prepend(This::wxMenu(), Itemid::integer(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {text, string()} | {help, string()} | {kind, WxItemKind}
WxItemKind = integer()

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend>.

 WxItemKind is one of ?wxITEM_SEPARATOR | ?wxITEM_NORMAL | ?wxITEM_CHECK | ?wxITEM_RADIO | ?wxITEM_MAX

prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to prepend(This, Itemid, Text, Submenu, []).

prepend(This::wxMenu(), Itemid::integer(), Text::string(), X::string() | wxMenu(), X::bool() | term()) -> ok | wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprepend>.

 Alternatives: 
prepend(This::wxMenu(), Itemid::integer(), Text::string(), Help::string(), IsCheckable::bool()) -> ok
prepend(This::wxMenu(), Itemid::integer(), Text::string(), Submenu::wxMenu(), [Option]) -> wxMenuItem:wxMenuItem()

 Option = {help, string()} 

prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to prependCheckItem(This, Itemid, Text, []).

prependCheckItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependcheckitem>.

prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string()) -> wxMenuItem() (see module wxMenuItem)


Equivalent to prependRadioItem(This, Itemid, Text, []).

prependRadioItem(This::wxMenu(), Itemid::integer(), Text::string(), Options::[Option]) -> wxMenuItem() (see module wxMenuItem)

Types
Option = {help, string()}

See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependradioitem>.

prependSeparator(This::wxMenu()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuprependseparator>.

remove(This::wxMenu(), X::integer() | term()) -> wxMenuItem() (see module wxMenuItem)


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenuremove>.

 Alternatives: 
remove(This::wxMenu(), Itemid::integer()) -> wxMenuItem:wxMenuItem()
remove(This::wxMenu(), Item::wxMenuItem:wxMenuItem()) -> wxMenuItem:wxMenuItem()

setHelpString(This::wxMenu(), Itemid::integer(), HelpString::string()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusethelpstring>.

setLabel(This::wxMenu(), Itemid::integer(), Label::string()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusetlabel>.

setTitle(This::wxMenu(), Title::string()) -> ok


See external documentation <http://www.wxwidgets.org/manuals/stable/wx_wxmenu.html#wxmenusettitle>.

destroy(This::wxMenu()) -> ok


Destroys this object, do not use object again