~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-07 15:07:37 UTC
  • mfrom: (1.2.1 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090507150737-i4yb5elwinm7r0hc
Tags: 1:13.b-dfsg1-1
* Removed another bunch of non-free RFCs from original tarball
  (closes: #527053).
* Fixed build-dependencies list by adding missing comma. This requires
  libsctp-dev again. Also, added libsctp1 dependency to erlang-base and
  erlang-base-hipe packages because the shared library is loaded via
  dlopen now and cannot be added using dh_slibdeps (closes: #526682).
* Weakened dependency of erlang-webtool on erlang-observer to recommends
  to avoid circular dependencies (closes: #526627).
* Added solaris-i386 to HiPE enabled architectures.
* Made script sources in /usr/lib/erlang/erts-*/bin directory executable,
  which is more convenient if a user wants to create a target Erlang system.
* Shortened extended description line for erlang-dev package to make it
  fit 80x25 terminals.

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_wxgridcelleditor.html">wxGridCellEditor</a>.
 
21
%% @type wxGridCellEditor().  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(wxGridCellEditor).
 
26
-include("wxe.hrl").
 
27
-export([beginEdit/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3,
 
28
  reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]).
 
29
 
 
30
%% inherited exports
 
31
-export([parent_class/1]).
 
32
 
 
33
%% @hidden
 
34
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
 
35
 
 
36
%% @spec (This::wxGridCellEditor()) -> bool()
 
37
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditoriscreated">external documentation</a>.
 
38
isCreated(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
39
  ?CLASS(ThisT,wxGridCellEditor),
 
40
  wxe_util:call(?wxGridCellEditor_IsCreated,
 
41
  <<ThisRef:32/?UI>>).
 
42
 
 
43
%% @spec (This::wxGridCellEditor(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
 
44
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorsetsize">external documentation</a>.
 
45
setSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
 
46
 when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
 
47
  ?CLASS(ThisT,wxGridCellEditor),
 
48
  wxe_util:cast(?wxGridCellEditor_SetSize,
 
49
  <<ThisRef:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI>>).
 
50
 
 
51
%% @spec (This::wxGridCellEditor(), Show::bool()) -> ok
 
52
%% @equiv show(This,Show, [])
 
53
show(This,Show)
 
54
 when is_record(This, wx_ref),is_boolean(Show) ->
 
55
  show(This,Show, []).
 
56
 
 
57
%% @spec (This::wxGridCellEditor(), Show::bool(), [Option]) -> ok
 
58
%% Option = {attr, wxGridCellAttr:wxGridCellAttr()}
 
59
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorshow">external documentation</a>.
 
60
show(#wx_ref{type=ThisT,ref=ThisRef},Show, Options)
 
61
 when is_boolean(Show),is_list(Options) ->
 
62
  ?CLASS(ThisT,wxGridCellEditor),
 
63
  MOpts = fun({attr, #wx_ref{type=AttrT,ref=AttrRef}}, Acc) ->   ?CLASS(AttrT,wxGridCellAttr),[<<1:32/?UI,AttrRef:32/?UI>>|Acc];
 
64
          (BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
 
65
  BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
 
66
  wxe_util:cast(?wxGridCellEditor_Show,
 
67
  <<ThisRef:32/?UI,(wxe_util:from_bool(Show)):32/?UI, BinOpt/binary>>).
 
68
 
 
69
%% @spec (This::wxGridCellEditor(), RectCell::{X::integer(),Y::integer(),W::integer(),H::integer()}, Attr::wxGridCellAttr:wxGridCellAttr()) -> ok
 
70
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorpaintbackground">external documentation</a>.
 
71
paintBackground(#wx_ref{type=ThisT,ref=ThisRef},{RectCellX,RectCellY,RectCellW,RectCellH},#wx_ref{type=AttrT,ref=AttrRef})
 
72
 when is_integer(RectCellX),is_integer(RectCellY),is_integer(RectCellW),is_integer(RectCellH) ->
 
73
  ?CLASS(ThisT,wxGridCellEditor),
 
74
  ?CLASS(AttrT,wxGridCellAttr),
 
75
  wxe_util:cast(?wxGridCellEditor_PaintBackground,
 
76
  <<ThisRef:32/?UI,RectCellX:32/?UI,RectCellY:32/?UI,RectCellW:32/?UI,RectCellH:32/?UI,AttrRef:32/?UI>>).
 
77
 
 
78
%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> ok
 
79
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorbeginedit">external documentation</a>.
 
80
beginEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef})
 
81
 when is_integer(Row),is_integer(Col) ->
 
82
  ?CLASS(ThisT,wxGridCellEditor),
 
83
  ?CLASS(GridT,wxGrid),
 
84
  wxe_util:cast(?wxGridCellEditor_BeginEdit,
 
85
  <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
 
86
 
 
87
%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> bool()
 
88
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorendedit">external documentation</a>.
 
89
endEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef})
 
90
 when is_integer(Row),is_integer(Col) ->
 
91
  ?CLASS(ThisT,wxGridCellEditor),
 
92
  ?CLASS(GridT,wxGrid),
 
93
  wxe_util:call(?wxGridCellEditor_EndEdit,
 
94
  <<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
 
95
 
 
96
%% @spec (This::wxGridCellEditor()) -> ok
 
97
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorreset">external documentation</a>.
 
98
reset(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
99
  ?CLASS(ThisT,wxGridCellEditor),
 
100
  wxe_util:cast(?wxGridCellEditor_Reset,
 
101
  <<ThisRef:32/?UI>>).
 
102
 
 
103
%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok
 
104
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorstartingkey">external documentation</a>.
 
105
startingKey(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
 
106
  ?CLASS(ThisT,wxGridCellEditor),
 
107
  ?CLASS(EventT,wxKeyEvent),
 
108
  wxe_util:cast(?wxGridCellEditor_StartingKey,
 
109
  <<ThisRef:32/?UI,EventRef:32/?UI>>).
 
110
 
 
111
%% @spec (This::wxGridCellEditor()) -> ok
 
112
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorstartingclick">external documentation</a>.
 
113
startingClick(#wx_ref{type=ThisT,ref=ThisRef}) ->
 
114
  ?CLASS(ThisT,wxGridCellEditor),
 
115
  wxe_util:cast(?wxGridCellEditor_StartingClick,
 
116
  <<ThisRef:32/?UI>>).
 
117
 
 
118
%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok
 
119
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxgridcelleditor.html#wxgridcelleditorhandlereturn">external documentation</a>.
 
120
handleReturn(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) ->
 
121
  ?CLASS(ThisT,wxGridCellEditor),
 
122
  ?CLASS(EventT,wxKeyEvent),
 
123
  wxe_util:cast(?wxGridCellEditor_HandleReturn,
 
124
  <<ThisRef:32/?UI,EventRef:32/?UI>>).
 
125