~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/wx/src/gen/wxToolTip.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-01 10:14:38 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090501101438-6qlr6rsdxgyzrg2z
Tags: 1:13.b-dfsg-2
* Cleaned up patches: removed unneeded patch which helped to support
  different SCTP library versions, made sure that changes for m68k
  architecture applied only when building on this architecture.
* Removed duplicated information from binary packages descriptions.
* Don't require libsctp-dev build-dependency on solaris-i386 architecture
  which allows to build Erlang on Nexenta (thanks to Tim Spriggs for
  the suggestion).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%
 
2
%% %CopyrightBegin%
 
3
%% 
 
4
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
 
5
%% 
 
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/.
 
11
%% 
 
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
 
15
%% under the License.
 
16
%% 
 
17
%% %CopyrightEnd%
 
18
%% This file is generated DO NOT EDIT
 
19
 
 
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.
 
24
 
 
25
-module(wxToolTip).
 
26
-include("wxe.hrl").
 
27
-export([destroy/1,enable/1,getTip/1,getWindow/1,new/1,setDelay/1,setTip/2]).
 
28
 
 
29
%% inherited exports
 
30
-export([parent_class/1]).
 
31
 
 
32
%% @hidden
 
33
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
 
34
 
 
35
%% @spec (Flag::bool()) -> ok
 
36
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipenable">external documentation</a>.
 
37
enable(Flag)
 
38
 when is_boolean(Flag) ->
 
39
  wxe_util:cast(?wxToolTip_Enable,
 
40
  <<(wxe_util:from_bool(Flag)):32/?UI>>).
 
41
 
 
42
%% @spec (Msecs::integer()) -> ok
 
43
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipsetdelay">external documentation</a>.
 
44
setDelay(Msecs)
 
45
 when is_integer(Msecs) ->
 
46
  wxe_util:cast(?wxToolTip_SetDelay,
 
47
  <<Msecs:32/?UI>>).
 
48
 
 
49
%% @spec (Tip::string()) -> wxToolTip()
 
50
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxtooltip.html#wxtooltipwxtooltip">external documentation</a>.
 
51
new(Tip)
 
52
 when is_list(Tip) ->
 
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>>).
 
56
 
 
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)
 
60
 when is_list(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>>).
 
65
 
 
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,
 
71
  <<ThisRef:32/?UI>>).
 
72
 
 
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,
 
78
  <<ThisRef:32/?UI>>).
 
79
 
 
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),
 
85
  ok.