4
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
18
%% This file is generated DO NOT EDIT
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html">wxToolTip</a>.
21
%% @type wxToolTip(). An object reference, The representation is internal
22
%% and can be changed without notice. It can't be used for comparsion
23
%% stored on disc or distributed for use on other nodes.
27
-export([destroy/1,enable/1,getTip/1,getWindow/1,new/1,setDelay/1,setTip/2]).
30
-export([parent_class/1]).
33
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
35
%% @spec (Flag::bool()) -> ok
36
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipenable">external documentation</a>.
38
when is_boolean(Flag) ->
39
wxe_util:cast(?wxToolTip_Enable,
40
<<(wxe_util:from_bool(Flag)):32/?UI>>).
42
%% @spec (Msecs::integer()) -> ok
43
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipsetdelay">external documentation</a>.
45
when is_integer(Msecs) ->
46
wxe_util:cast(?wxToolTip_SetDelay,
49
%% @spec (Tip::string()) -> wxToolTip()
50
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipwxtooltip">external documentation</a>.
53
Tip_UC = unicode:characters_to_binary([Tip,0]),
54
wxe_util:construct(?wxToolTip_new,
55
<<(byte_size(Tip_UC)):32/?UI,(Tip_UC)/binary, 0:(((8- ((4+byte_size(Tip_UC)) band 16#7)) band 16#7))/unit:8>>).
57
%% @spec (This::wxToolTip(), Tip::string()) -> ok
58
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipsettip">external documentation</a>.
59
setTip(#wx_ref{type=ThisT,ref=ThisRef},Tip)
61
?CLASS(ThisT,wxToolTip),
62
Tip_UC = unicode:characters_to_binary([Tip,0]),
63
wxe_util:cast(?wxToolTip_SetTip,
64
<<ThisRef:32/?UI,(byte_size(Tip_UC)):32/?UI,(Tip_UC)/binary, 0:(((8- ((0+byte_size(Tip_UC)) band 16#7)) band 16#7))/unit:8>>).
66
%% @spec (This::wxToolTip()) -> string()
67
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipgettip">external documentation</a>.
68
getTip(#wx_ref{type=ThisT,ref=ThisRef}) ->
69
?CLASS(ThisT,wxToolTip),
70
wxe_util:call(?wxToolTip_GetTip,
73
%% @spec (This::wxToolTip()) -> wxWindow:wxWindow()
74
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipgetwindow">external documentation</a>.
75
getWindow(#wx_ref{type=ThisT,ref=ThisRef}) ->
76
?CLASS(ThisT,wxToolTip),
77
wxe_util:call(?wxToolTip_GetWindow,
80
%% @spec (This::wxToolTip()) -> ok
81
%% @doc Destroys this object, do not use object again
82
destroy(Obj=#wx_ref{type=Type}) ->
83
?CLASS(Type,wxToolTip),
84
wxe_util:destroy(?DESTROY_OBJECT,Obj),