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_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.
25
-module(wxGridCellEditor).
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]).
31
-export([parent_class/1]).
34
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
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,
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>>).
51
%% @spec (This::wxGridCellEditor(), Show::bool()) -> ok
52
%% @equiv show(This,Show, [])
54
when is_record(This, wx_ref),is_boolean(Show) ->
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>>).
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>>).
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),
84
wxe_util:cast(?wxGridCellEditor_BeginEdit,
85
<<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
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),
93
wxe_util:call(?wxGridCellEditor_EndEdit,
94
<<ThisRef:32/?UI,Row:32/?UI,Col:32/?UI,GridRef:32/?UI>>).
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,
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>>).
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,
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>>).