1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2008-2021. All Rights Reserved. 5%% 6%% Licensed under the Apache License, Version 2.0 (the "License"); 7%% you may not use this file except in compliance with the License. 8%% You may obtain a copy of the License at 9%% 10%% http://www.apache.org/licenses/LICENSE-2.0 11%% 12%% Unless required by applicable law or agreed to in writing, software 13%% distributed under the License is distributed on an "AS IS" BASIS, 14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15%% See the License for the specific language governing permissions and 16%% limitations under the License. 17%% 18%% %CopyrightEnd% 19%% This file is generated DO NOT EDIT 20 21-module(wxCommandEvent). 22-include("wxe.hrl"). 23-export([getClientData/1,getExtraLong/1,getInt/1,getSelection/1,getString/1, 24 isChecked/1,isSelection/1,setInt/2,setString/2]). 25 26%% inherited exports 27-export([getId/1,getSkipped/1,getTimestamp/1,isCommandEvent/1,parent_class/1, 28 resumePropagation/2,shouldPropagate/1,skip/1,skip/2,stopPropagation/1]). 29 30-type wxCommandEvent() :: wx:wx_object(). 31-include("wx.hrl"). 32-type wxCommandEventType() :: 'command_button_clicked' | 'command_checkbox_clicked' | 'command_choice_selected' | 'command_listbox_selected' | 'command_listbox_doubleclicked' | 'command_text_updated' | 'command_text_enter' | 'text_maxlen' | 'command_menu_selected' | 'command_slider_updated' | 'command_radiobox_selected' | 'command_radiobutton_selected' | 'command_scrollbar_updated' | 'command_vlbox_selected' | 'command_combobox_selected' | 'combobox_dropdown' | 'combobox_closeup' | 'command_tool_rclicked' | 'command_tool_enter' | 'tool_dropdown' | 'command_checklistbox_toggled' | 'command_togglebutton_clicked' | 'command_left_click' | 'command_left_dclick' | 'command_right_click' | 'command_set_focus' | 'command_kill_focus' | 'command_enter' | 'notification_message_click' | 'notification_message_dismissed' | 'notification_message_action'. 33-export_type([wxCommandEvent/0, wxCommand/0, wxCommandEventType/0]). 34%% @hidden 35parent_class(wxEvent) -> true; 36parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 37 38%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventgetclientobject">external documentation</a>. 39-spec getClientData(This) -> term() when 40 This::wxCommandEvent(). 41getClientData(#wx_ref{type=ThisT}=This) -> 42 ?CLASS(ThisT,wxCommandEvent), 43 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_getClientData), 44 wxe_util:rec(?wxCommandEvent_getClientData). 45 46%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventgetextralong">external documentation</a>. 47-spec getExtraLong(This) -> integer() when 48 This::wxCommandEvent(). 49getExtraLong(#wx_ref{type=ThisT}=This) -> 50 ?CLASS(ThisT,wxCommandEvent), 51 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_GetExtraLong), 52 wxe_util:rec(?wxCommandEvent_GetExtraLong). 53 54%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventgetint">external documentation</a>. 55-spec getInt(This) -> integer() when 56 This::wxCommandEvent(). 57getInt(#wx_ref{type=ThisT}=This) -> 58 ?CLASS(ThisT,wxCommandEvent), 59 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_GetInt), 60 wxe_util:rec(?wxCommandEvent_GetInt). 61 62%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventgetselection">external documentation</a>. 63-spec getSelection(This) -> integer() when 64 This::wxCommandEvent(). 65getSelection(#wx_ref{type=ThisT}=This) -> 66 ?CLASS(ThisT,wxCommandEvent), 67 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_GetSelection), 68 wxe_util:rec(?wxCommandEvent_GetSelection). 69 70%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventgetstring">external documentation</a>. 71-spec getString(This) -> unicode:charlist() when 72 This::wxCommandEvent(). 73getString(#wx_ref{type=ThisT}=This) -> 74 ?CLASS(ThisT,wxCommandEvent), 75 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_GetString), 76 wxe_util:rec(?wxCommandEvent_GetString). 77 78%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventischecked">external documentation</a>. 79-spec isChecked(This) -> boolean() when 80 This::wxCommandEvent(). 81isChecked(#wx_ref{type=ThisT}=This) -> 82 ?CLASS(ThisT,wxCommandEvent), 83 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_IsChecked), 84 wxe_util:rec(?wxCommandEvent_IsChecked). 85 86%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventisselection">external documentation</a>. 87-spec isSelection(This) -> boolean() when 88 This::wxCommandEvent(). 89isSelection(#wx_ref{type=ThisT}=This) -> 90 ?CLASS(ThisT,wxCommandEvent), 91 wxe_util:queue_cmd(This,?get_env(),?wxCommandEvent_IsSelection), 92 wxe_util:rec(?wxCommandEvent_IsSelection). 93 94%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventsetint">external documentation</a>. 95-spec setInt(This, IntCommand) -> 'ok' when 96 This::wxCommandEvent(), IntCommand::integer(). 97setInt(#wx_ref{type=ThisT}=This,IntCommand) 98 when is_integer(IntCommand) -> 99 ?CLASS(ThisT,wxCommandEvent), 100 wxe_util:queue_cmd(This,IntCommand,?get_env(),?wxCommandEvent_SetInt). 101 102%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxcommandevent.html#wxcommandeventsetstring">external documentation</a>. 103-spec setString(This, String) -> 'ok' when 104 This::wxCommandEvent(), String::unicode:chardata(). 105setString(#wx_ref{type=ThisT}=This,String) 106 when ?is_chardata(String) -> 107 ?CLASS(ThisT,wxCommandEvent), 108 String_UC = unicode:characters_to_binary(String), 109 wxe_util:queue_cmd(This,String_UC,?get_env(),?wxCommandEvent_SetString). 110 111 %% From wxEvent 112%% @hidden 113stopPropagation(This) -> wxEvent:stopPropagation(This). 114%% @hidden 115skip(This, Options) -> wxEvent:skip(This, Options). 116%% @hidden 117skip(This) -> wxEvent:skip(This). 118%% @hidden 119shouldPropagate(This) -> wxEvent:shouldPropagate(This). 120%% @hidden 121resumePropagation(This,PropagationLevel) -> wxEvent:resumePropagation(This,PropagationLevel). 122%% @hidden 123isCommandEvent(This) -> wxEvent:isCommandEvent(This). 124%% @hidden 125getTimestamp(This) -> wxEvent:getTimestamp(This). 126%% @hidden 127getSkipped(This) -> wxEvent:getSkipped(This). 128%% @hidden 129getId(This) -> wxEvent:getId(This). 130