檢視原始碼 wxAcceleratorEntry (wx v2.4.3)

應用程式用來建立加速鍵表(請參閱 wxAcceleratorTable)的物件。

請參閱

wxWidgets 文件:wxAcceleratorEntry

摘要

函式

銷毀物件

傳回加速鍵表項目的命令識別碼。

傳回加速鍵表項目的旗標。

傳回加速鍵表項目的鍵碼。

等同於 new([])

複製建構子。

設定加速鍵項目的參數。

型別

-type wxAcceleratorEntry() :: wx:wx_object().

函式

-spec destroy(This :: wxAcceleratorEntry()) -> ok.

銷毀物件

-spec getCommand(This) -> integer() when This :: wxAcceleratorEntry().

傳回加速鍵表項目的命令識別碼。

-spec getFlags(This) -> integer() when This :: wxAcceleratorEntry().

傳回加速鍵表項目的旗標。

-spec getKeyCode(This) -> integer() when This :: wxAcceleratorEntry().

傳回加速鍵表項目的鍵碼。

-spec new() -> wxAcceleratorEntry().

等同於 new([])

-spec new([Option]) -> wxAcceleratorEntry()
             when
                 Option ::
                     {flags, integer()} |
                     {keyCode, integer()} |
                     {cmd, integer()} |
                     {item, wxMenuItem:wxMenuItem()};
         (Entry) -> wxAcceleratorEntry() when Entry :: wxAcceleratorEntry().

複製建構子。

連結到此函式

set(This, Flags, KeyCode, Cmd)

檢視原始碼
-spec set(This, Flags, KeyCode, Cmd) -> ok
             when
                 This :: wxAcceleratorEntry(),
                 Flags :: integer(),
                 KeyCode :: integer(),
                 Cmd :: integer().

等同於 set(This, Flags, KeyCode, Cmd, [])

-spec set(This, Flags, KeyCode, Cmd, [Option]) -> ok
             when
                 This :: wxAcceleratorEntry(),
                 Flags :: integer(),
                 KeyCode :: integer(),
                 Cmd :: integer(),
                 Option :: {item, wxMenuItem:wxMenuItem()}.

設定加速鍵項目的參數。