%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2008-2013. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% http://www.apache.org/licenses/LICENSE-2.0 %% %% Unless required by applicable law or agreed to in writing, software %% distributed under the License is distributed on an "AS IS" BASIS, %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %% See the License for the specific language governing permissions 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]). -export_type([wxGridCellAttr/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -type wxGridCellAttr() :: wx:wx_object(). %% @doc See external documentation. -spec setTextColour(This, ColText) -> ok when This::wxGridCellAttr(), ColText::wx:wx_colour(). 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, <>). %% @doc See external documentation. -spec setBackgroundColour(This, ColBack) -> ok when This::wxGridCellAttr(), ColBack::wx:wx_colour(). 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, <>). %% @doc See external documentation. -spec setFont(This, Font) -> ok when This::wxGridCellAttr(), Font::wxFont:wxFont(). setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxGridCellAttr), ?CLASS(FontT,wxFont), wxe_util:cast(?wxGridCellAttr_SetFont, <>). %% @doc See external documentation. -spec setAlignment(This, HAlign, VAlign) -> ok when This::wxGridCellAttr(), HAlign::integer(), VAlign::integer(). setAlignment(#wx_ref{type=ThisT,ref=ThisRef},HAlign,VAlign) when is_integer(HAlign),is_integer(VAlign) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:cast(?wxGridCellAttr_SetAlignment, <>). %% @equiv setReadOnly(This, []) -spec setReadOnly(This) -> ok when This::wxGridCellAttr(). setReadOnly(This) when is_record(This, wx_ref) -> setReadOnly(This, []). %% @doc See external documentation. -spec setReadOnly(This, [Option]) -> ok when This::wxGridCellAttr(), Option :: {isReadOnly, boolean()}. 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, <>). %% @doc See external documentation. -spec setRenderer(This, Renderer) -> ok when This::wxGridCellAttr(), Renderer::wxGridCellRenderer:wxGridCellRenderer(). setRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RendererT,ref=RendererRef}) -> ?CLASS(ThisT,wxGridCellAttr), ?CLASS(RendererT,wxGridCellRenderer), wxe_util:cast(?wxGridCellAttr_SetRenderer, <>). %% @doc See external documentation. -spec setEditor(This, Editor) -> ok when This::wxGridCellAttr(), Editor::wxGridCellEditor:wxGridCellEditor(). setEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=EditorT,ref=EditorRef}) -> ?CLASS(ThisT,wxGridCellAttr), ?CLASS(EditorT,wxGridCellEditor), wxe_util:cast(?wxGridCellAttr_SetEditor, <>). %% @doc See external documentation. -spec hasTextColour(This) -> boolean() when This::wxGridCellAttr(). hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasTextColour, <>). %% @doc See external documentation. -spec hasBackgroundColour(This) -> boolean() when This::wxGridCellAttr(). hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasBackgroundColour, <>). %% @doc See external documentation. -spec hasFont(This) -> boolean() when This::wxGridCellAttr(). hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasFont, <>). %% @doc See external documentation. -spec hasAlignment(This) -> boolean() when This::wxGridCellAttr(). hasAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasAlignment, <>). %% @doc See external documentation. -spec hasRenderer(This) -> boolean() when This::wxGridCellAttr(). hasRenderer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasRenderer, <>). %% @doc See external documentation. -spec hasEditor(This) -> boolean() when This::wxGridCellAttr(). hasEditor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_HasEditor, <>). %% @doc See external documentation. -spec getTextColour(This) -> wx:wx_colour4() when This::wxGridCellAttr(). getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetTextColour, <>). %% @doc See external documentation. -spec getBackgroundColour(This) -> wx:wx_colour4() when This::wxGridCellAttr(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetBackgroundColour, <>). %% @doc See external documentation. -spec getFont(This) -> wxFont:wxFont() when This::wxGridCellAttr(). getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetFont, <>). %% @doc See external documentation. -spec getAlignment(This) -> {HAlign::integer(), VAlign::integer()} when This::wxGridCellAttr(). getAlignment(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetAlignment, <>). %% @doc See external documentation. -spec getRenderer(This, Grid, Row, Col) -> wxGridCellRenderer:wxGridCellRenderer() when This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer(). 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, <>). %% @doc See external documentation. -spec getEditor(This, Grid, Row, Col) -> wxGridCellEditor:wxGridCellEditor() when This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer(). 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, <>). %% @doc See external documentation. -spec isReadOnly(This) -> boolean() when This::wxGridCellAttr(). isReadOnly(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_IsReadOnly, <>). %% @doc See external documentation. -spec setDefAttr(This, DefAttr) -> ok when This::wxGridCellAttr(), DefAttr::wxGridCellAttr(). setDefAttr(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DefAttrT,ref=DefAttrRef}) -> ?CLASS(ThisT,wxGridCellAttr), ?CLASS(DefAttrT,wxGridCellAttr), wxe_util:cast(?wxGridCellAttr_SetDefAttr, <>).