1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2008-2020. 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(wxAcceleratorTable). 22-include("wxe.hrl"). 23-export([destroy/1,isOk/1,new/0,new/2,ok/1]). 24 25%% inherited exports 26-export([parent_class/1]). 27 28-type wxAcceleratorTable() :: wx:wx_object(). 29-export_type([wxAcceleratorTable/0]). 30%% @hidden 31parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 32 33%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxacceleratortable.html#wxacceleratortablewxacceleratortable">external documentation</a>. 34-spec new() -> wxAcceleratorTable(). 35new() -> 36 wxe_util:queue_cmd(?get_env(), ?wxAcceleratorTable_new_0), 37 wxe_util:rec(?wxAcceleratorTable_new_0). 38 39%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxacceleratortable.html#wxacceleratortablewxacceleratortable">external documentation</a>. 40-spec new(N, Entries) -> wxAcceleratorTable() when 41 N::integer(), Entries::[wxAcceleratorEntry:wxAcceleratorEntry()]. 42new(N,Entries) 43 when is_integer(N),is_list(Entries) -> 44 _ = [?CLASS(EntriesT,wxAcceleratorEntry) || #wx_ref{type=EntriesT} <- Entries], 45 wxe_util:queue_cmd(N,Entries,?get_env(),?wxAcceleratorTable_new_2), 46 wxe_util:rec(?wxAcceleratorTable_new_2). 47 48%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxacceleratortable.html#wxacceleratortableisok">external documentation</a>. 49-spec ok(This) -> boolean() when 50 This::wxAcceleratorTable(). 51 52ok(This) 53 when is_record(This, wx_ref) -> 54 isOk(This). 55 56%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxacceleratortable.html#wxacceleratortableisok">external documentation</a>. 57-spec isOk(This) -> boolean() when 58 This::wxAcceleratorTable(). 59isOk(#wx_ref{type=ThisT}=This) -> 60 ?CLASS(ThisT,wxAcceleratorTable), 61 wxe_util:queue_cmd(This,?get_env(),?wxAcceleratorTable_IsOk), 62 wxe_util:rec(?wxAcceleratorTable_IsOk). 63 64%% @doc Destroys this object, do not use object again 65-spec destroy(This::wxAcceleratorTable()) -> 'ok'. 66destroy(Obj=#wx_ref{type=Type}) -> 67 ?CLASS(Type,wxAcceleratorTable), 68 wxe_util:queue_cmd(Obj, ?get_env(), ?DESTROY_OBJECT), 69 ok. 70