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/wxGridCellAttr.erl | 207 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 lib/wx/src/gen/wxGridCellAttr.erl (limited to 'lib/wx/src/gen/wxGridCellAttr.erl') diff --git a/lib/wx/src/gen/wxGridCellAttr.erl b/lib/wx/src/gen/wxGridCellAttr.erl new file mode 100644 index 0000000000..b9fd65304c --- /dev/null +++ b/lib/wx/src/gen/wxGridCellAttr.erl @@ -0,0 +1,207 @@ +%% +%% %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: wxGridCellAttr. +%% @type wxGridCellAttr(). 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(wxGridCellAttr). +-include("wxe.hrl"). +-export([getAlignment/1,getBackgroundColour/1,getEditor/4,getFont/1,getRenderer/4, + getTextColour/1,hasAlignment/1,hasBackgroundColour/1,hasEditor/1, + hasFont/1,hasRenderer/1,hasTextColour/1,isReadOnly/1,setAlignment/3, + setBackgroundColour/2,setDefAttr/2,setEditor/2,setFont/2,setReadOnly/1, + setReadOnly/2,setRenderer/2,setTextColour/2]). + +%% inherited exports +-export([parent_class/1]). + +%% @hidden +parent_class(_Class) -> erlang:error({badtype, ?MODULE}). + +%% @spec (This::wxGridCellAttr(), ColText::wx:colour()) -> ok +%% @doc See external documentation. +setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText) + when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetTextColour, + <>). + +%% @spec (This::wxGridCellAttr(), ColBack::wx:colour()) -> ok +%% @doc See external documentation. +setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack) + when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetBackgroundColour, + <>). + +%% @spec (This::wxGridCellAttr(), Font::wxFont:wxFont()) -> ok +%% @doc See external documentation. +setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(FontT,wxFont), + wxe_util:cast(?wxGridCellAttr_SetFont, + <>). + +%% @spec (This::wxGridCellAttr(), HAlign::integer(), VAlign::integer()) -> ok +%% @doc See external documentation. +setAlignment(#wx_ref{type=ThisT,ref=ThisRef},HAlign,VAlign) + when is_integer(HAlign),is_integer(VAlign) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetAlignment, + <>). + +%% @spec (This::wxGridCellAttr()) -> ok +%% @equiv setReadOnly(This, []) +setReadOnly(This) + when is_record(This, wx_ref) -> + setReadOnly(This, []). + +%% @spec (This::wxGridCellAttr(), [Option]) -> ok +%% Option = {isReadOnly, bool()} +%% @doc See external documentation. +setReadOnly(#wx_ref{type=ThisT,ref=ThisRef}, Options) + when is_list(Options) -> + ?CLASS(ThisT,wxGridCellAttr), + MOpts = fun({isReadOnly, IsReadOnly}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(IsReadOnly)):32/?UI>>|Acc]; + (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, + BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), + wxe_util:cast(?wxGridCellAttr_SetReadOnly, + <>). + +%% @spec (This::wxGridCellAttr(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok +%% @doc See external documentation. +setRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(RendererT,wxGridCellRenderer), + wxe_util:cast(?wxGridCellAttr_SetRenderer, + <>). + +%% @spec (This::wxGridCellAttr(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok +%% @doc See external documentation. +setEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(EditorT,wxGridCellEditor), + wxe_util:cast(?wxGridCellAttr_SetEditor, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasTextColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasBackgroundColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasFont, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasAlignment, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasRenderer, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +hasEditor(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_HasEditor, + <>). + +%% @spec (This::wxGridCellAttr()) -> wx:colour() +%% @doc See external documentation. +getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetTextColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> wx:colour() +%% @doc See external documentation. +getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetBackgroundColour, + <>). + +%% @spec (This::wxGridCellAttr()) -> wxFont:wxFont() +%% @doc See external documentation. +getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetFont, + <>). + +%% @spec (This::wxGridCellAttr()) -> {HAlign::integer(),VAlign::integer()} +%% @doc See external documentation. +getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_GetAlignment, + <>). + +%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() +%% @doc See external documentation. +getRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(GridT,wxGrid), + wxe_util:call(?wxGridCellAttr_GetRenderer, + <>). + +%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() +%% @doc See external documentation. +getEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row,Col) + when is_integer(Row),is_integer(Col) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(GridT,wxGrid), + wxe_util:call(?wxGridCellAttr_GetEditor, + <>). + +%% @spec (This::wxGridCellAttr()) -> bool() +%% @doc See external documentation. +isReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + wxe_util:call(?wxGridCellAttr_IsReadOnly, + <>). + +%% @spec (This::wxGridCellAttr(), DefAttr::wxGridCellAttr()) -> ok +%% @doc See external documentation. +setDefAttr(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DefAttrT,ref=DefAttrRef}) -> + ?CLASS(ThisT,wxGridCellAttr), + ?CLASS(DefAttrT,wxGridCellAttr), + wxe_util:cast(?wxGridCellAttr_SetDefAttr, + <>). + -- cgit v1.2.3