From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/wx/src/gen/wxGridCellEditor.erl | 135 ++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 lib/wx/src/gen/wxGridCellEditor.erl (limited to 'lib/wx/src/gen/wxGridCellEditor.erl') diff --git a/lib/wx/src/gen/wxGridCellEditor.erl b/lib/wx/src/gen/wxGridCellEditor.erl new file mode 100644 index 0000000000..c08027e040 --- /dev/null +++ b/lib/wx/src/gen/wxGridCellEditor.erl @@ -0,0 +1,135 @@ +%% +%% %CopyrightBegin% +%% +%% Copyright Ericsson AB 2008-2009. All Rights Reserved. +%% +%% The contents of this file are subject to the Erlang Public License, +%% Version 1.1, (the "License"); you may not use this file except in +%% compliance with the License. You should have received a copy of the +%% Erlang Public License along with this software. If not, it can be +%% retrieved online at http://www.erlang.org/. +%% +%% Software distributed under the License is distributed on an "AS IS" +%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +%% the License for the specific language governing rights and limitations +%% under the License. +%% +%% %CopyrightEnd% +%% This file is generated DO NOT EDIT + +%% @doc See external documentation: wxGridCellEditor. +%% @type wxGridCellEditor(). An object reference, The representation is internal +%% and can be changed without notice. It can't be used for comparsion +%% stored on disc or distributed for use on other nodes. + +-module(wxGridCellEditor). +-include("wxe.hrl"). +-export([beginEdit/4,create/4,endEdit/4,handleReturn/2,isCreated/1,paintBackground/3, + reset/1,setSize/2,show/2,show/3,startingClick/1,startingKey/2]). + +%% inherited exports +-export([parent_class/1]). + +%% @hidden +parent_class(_Class) -> erlang:error({badtype, ?MODULE}). + +%% @spec (This::wxGridCellEditor(), Parent::wxWindow:wxWindow(), Id::integer(), EvtHandler::wxEvtHandler:wxEvtHandler()) -> ok +%% @doc See external documentation. +create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=EvtHandlerT,ref=EvtHandlerRef}) + when is_integer(Id) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(ParentT,wxWindow), + ?CLASS(EvtHandlerT,wxEvtHandler), + wxe_util:cast(?wxGridCellEditor_Create, + <>). + +%% @spec (This::wxGridCellEditor()) -> bool() +%% @doc See external documentation. +isCreated(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:call(?wxGridCellEditor_IsCreated, + <>). + +%% @spec (This::wxGridCellEditor(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok +%% @doc See external documentation. +setSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}) + when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:cast(?wxGridCellEditor_SetSize, + <>). + +%% @spec (This::wxGridCellEditor(), Show::bool()) -> ok +%% @equiv show(This,Show, []) +show(This,Show) + when is_record(This, wx_ref),is_boolean(Show) -> + show(This,Show, []). + +%% @spec (This::wxGridCellEditor(), Show::bool(), [Option]) -> ok +%% Option = {attr, wxGridCellAttr:wxGridCellAttr()} +%% @doc See external documentation. +show(#wx_ref{type=ThisT,ref=ThisRef},Show, Options) + when is_boolean(Show),is_list(Options) -> + ?CLASS(ThisT,wxGridCellEditor), + MOpts = fun({attr, #wx_ref{type=AttrT,ref=AttrRef}}, Acc) -> ?CLASS(AttrT,wxGridCellAttr),[<<1:32/?UI,AttrRef:32/?UI>>|Acc]; + (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, + BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), + wxe_util:cast(?wxGridCellEditor_Show, + <>). + +%% @spec (This::wxGridCellEditor(), RectCell::{X::integer(),Y::integer(),W::integer(),H::integer()}, Attr::wxGridCellAttr:wxGridCellAttr()) -> ok +%% @doc See external documentation. +paintBackground(#wx_ref{type=ThisT,ref=ThisRef},{RectCellX,RectCellY,RectCellW,RectCellH},#wx_ref{type=AttrT,ref=AttrRef}) + when is_integer(RectCellX),is_integer(RectCellY),is_integer(RectCellW),is_integer(RectCellH) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(AttrT,wxGridCellAttr), + wxe_util:cast(?wxGridCellEditor_PaintBackground, + <>). + +%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> ok +%% @doc See external documentation. +beginEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef}) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(GridT,wxGrid), + wxe_util:cast(?wxGridCellEditor_BeginEdit, + <>). + +%% @spec (This::wxGridCellEditor(), Row::integer(), Col::integer(), Grid::wxGrid:wxGrid()) -> bool() +%% @doc See external documentation. +endEdit(#wx_ref{type=ThisT,ref=ThisRef},Row,Col,#wx_ref{type=GridT,ref=GridRef}) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(GridT,wxGrid), + wxe_util:call(?wxGridCellEditor_EndEdit, + <>). + +%% @spec (This::wxGridCellEditor()) -> ok +%% @doc See external documentation. +reset(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:cast(?wxGridCellEditor_Reset, + <>). + +%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok +%% @doc See external documentation. +startingKey(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(EventT,wxKeyEvent), + wxe_util:cast(?wxGridCellEditor_StartingKey, + <>). + +%% @spec (This::wxGridCellEditor()) -> ok +%% @doc See external documentation. +startingClick(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + wxe_util:cast(?wxGridCellEditor_StartingClick, + <>). + +%% @spec (This::wxGridCellEditor(), Event::wxKeyEvent:wxKeyEvent()) -> ok +%% @doc See external documentation. +handleReturn(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EventT,ref=EventRef}) -> + ?CLASS(ThisT,wxGridCellEditor), + ?CLASS(EventT,wxKeyEvent), + wxe_util:cast(?wxGridCellEditor_HandleReturn, + <>). + -- cgit v1.2.3