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(wxToolTip). 22-include("wxe.hrl"). 23-export([destroy/1,enable/1,getTip/1,getWindow/1,new/1,setDelay/1,setTip/2]). 24 25%% inherited exports 26-export([parent_class/1]). 27 28-type wxToolTip() :: wx:wx_object(). 29-export_type([wxToolTip/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_wxtooltip.html#wxtooltipenable">external documentation</a>. 34-spec enable(Flag) -> 'ok' when 35 Flag::boolean(). 36enable(Flag) 37 when is_boolean(Flag) -> 38 wxe_util:queue_cmd(Flag,?get_env(),?wxToolTip_Enable). 39 40%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtooltip.html#wxtooltipsetdelay">external documentation</a>. 41-spec setDelay(Msecs) -> 'ok' when 42 Msecs::integer(). 43setDelay(Msecs) 44 when is_integer(Msecs) -> 45 wxe_util:queue_cmd(Msecs,?get_env(),?wxToolTip_SetDelay). 46 47%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtooltip.html#wxtooltipwxtooltip">external documentation</a>. 48-spec new(Tip) -> wxToolTip() when 49 Tip::unicode:chardata(). 50new(Tip) 51 when ?is_chardata(Tip) -> 52 Tip_UC = unicode:characters_to_binary(Tip), 53 wxe_util:queue_cmd(Tip_UC,?get_env(),?wxToolTip_new), 54 wxe_util:rec(?wxToolTip_new). 55 56%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtooltip.html#wxtooltipsettip">external documentation</a>. 57-spec setTip(This, Tip) -> 'ok' when 58 This::wxToolTip(), Tip::unicode:chardata(). 59setTip(#wx_ref{type=ThisT}=This,Tip) 60 when ?is_chardata(Tip) -> 61 ?CLASS(ThisT,wxToolTip), 62 Tip_UC = unicode:characters_to_binary(Tip), 63 wxe_util:queue_cmd(This,Tip_UC,?get_env(),?wxToolTip_SetTip). 64 65%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtooltip.html#wxtooltipgettip">external documentation</a>. 66-spec getTip(This) -> unicode:charlist() when 67 This::wxToolTip(). 68getTip(#wx_ref{type=ThisT}=This) -> 69 ?CLASS(ThisT,wxToolTip), 70 wxe_util:queue_cmd(This,?get_env(),?wxToolTip_GetTip), 71 wxe_util:rec(?wxToolTip_GetTip). 72 73%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtooltip.html#wxtooltipgetwindow">external documentation</a>. 74-spec getWindow(This) -> wxWindow:wxWindow() when 75 This::wxToolTip(). 76getWindow(#wx_ref{type=ThisT}=This) -> 77 ?CLASS(ThisT,wxToolTip), 78 wxe_util:queue_cmd(This,?get_env(),?wxToolTip_GetWindow), 79 wxe_util:rec(?wxToolTip_GetWindow). 80 81%% @doc Destroys this object, do not use object again 82-spec destroy(This::wxToolTip()) -> 'ok'. 83destroy(Obj=#wx_ref{type=Type}) -> 84 ?CLASS(Type,wxToolTip), 85 wxe_util:queue_cmd(Obj, ?get_env(), ?DESTROY_OBJECT), 86 ok. 87