%% %% %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: wxCalendarDateAttr. %% @type wxCalendarDateAttr(). 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(wxCalendarDateAttr). -include("wxe.hrl"). -export([destroy/1,getBackgroundColour/1,getBorder/1,getBorderColour/1,getFont/1, getTextColour/1,hasBackgroundColour/1,hasBorder/1,hasBorderColour/1, hasFont/1,hasTextColour/1,isHoliday/1,new/0,new/1,new/2,setBackgroundColour/2, setBorder/2,setBorderColour/2,setFont/2,setHoliday/2,setTextColour/2]). %% inherited exports -export([parent_class/1]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec () -> wxCalendarDateAttr() %% @doc See external documentation. new() -> wxe_util:construct(?wxCalendarDateAttr_new_0, <<>>). %% @spec (X::WxCalendarDateBorder|term()) -> wxCalendarDateAttr() %% @doc See external documentation. %%
Alternatives: %%

%% new(Border::WxCalendarDateBorder) -> new(Border, [])

%%

%% new(ColText::wx:colour()) -> new(ColText, [])

new(Border) when is_integer(Border) -> new(Border, []); new(ColText) when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 -> new(ColText, []). %% @spec (X::WxCalendarDateBorder|term(),[Option]) -> wxCalendarDateAttr() %% @doc See external documentation. %%
Alternatives: %%

%% new(Border::WxCalendarDateBorder, [Option]) -> wxCalendarDateAttr() %%
Option = {colBorder, wx:colour()} %%
WxCalendarDateBorder = integer() %%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND %%

%%

%% new(ColText::wx:colour(), [Option]) -> wxCalendarDateAttr() %%
Option = {colBack, wx:colour()} | {colBorder, wx:colour()} | {font, wxFont:wxFont()} | {border, WxCalendarDateBorder} %%
WxCalendarDateBorder = integer() %%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND %%

new(Border, Options) when is_integer(Border),is_list(Options) -> MOpts = fun({colBorder, ColBorder}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(ColBorder)):16/binary,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:construct(?wxCalendarDateAttr_new_2_0, <>); new(ColText, Options) when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4,is_list(Options) -> MOpts = fun({colBack, ColBack}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(ColBack)):16/binary,0:32>>|Acc]; ({colBorder, ColBorder}, Acc) -> [<<2:32/?UI,(wxe_util:colour_bin(ColBorder)):16/binary,0:32>>|Acc]; ({font, #wx_ref{type=FontT,ref=FontRef}}, Acc) -> ?CLASS(FontT,wxFont),[<<3:32/?UI,FontRef:32/?UI>>|Acc]; ({border, Border}, Acc) -> [<<4:32/?UI,Border:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:construct(?wxCalendarDateAttr_new_2_1, <<(wxe_util:colour_bin(ColText)):16/binary, BinOpt/binary>>). %% @spec (This::wxCalendarDateAttr(), 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,wxCalendarDateAttr), wxe_util:cast(?wxCalendarDateAttr_SetTextColour, <>). %% @spec (This::wxCalendarDateAttr(), 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,wxCalendarDateAttr), wxe_util:cast(?wxCalendarDateAttr_SetBackgroundColour, <>). %% @spec (This::wxCalendarDateAttr(), Col::wx:colour()) -> ok %% @doc See external documentation. setBorderColour(#wx_ref{type=ThisT,ref=ThisRef},Col) when tuple_size(Col) =:= 3; tuple_size(Col) =:= 4 -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:cast(?wxCalendarDateAttr_SetBorderColour, <>). %% @spec (This::wxCalendarDateAttr(), Font::wxFont:wxFont()) -> ok %% @doc See external documentation. setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), ?CLASS(FontT,wxFont), wxe_util:cast(?wxCalendarDateAttr_SetFont, <>). %% @spec (This::wxCalendarDateAttr(), Border::WxCalendarDateBorder) -> ok %% WxCalendarDateBorder = integer() %% @doc See external documentation. %%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND setBorder(#wx_ref{type=ThisT,ref=ThisRef},Border) when is_integer(Border) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:cast(?wxCalendarDateAttr_SetBorder, <>). %% @spec (This::wxCalendarDateAttr(), Holiday::bool()) -> ok %% @doc See external documentation. setHoliday(#wx_ref{type=ThisT,ref=ThisRef},Holiday) when is_boolean(Holiday) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:cast(?wxCalendarDateAttr_SetHoliday, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasTextColour, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBackgroundColour, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. hasBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBorderColour, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasFont, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBorder, <>). %% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. isHoliday(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_IsHoliday, <>). %% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetTextColour, <>). %% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetBackgroundColour, <>). %% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. getBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetBorderColour, <>). %% @spec (This::wxCalendarDateAttr()) -> wxFont:wxFont() %% @doc See external documentation. getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetFont, <>). %% @spec (This::wxCalendarDateAttr()) -> WxCalendarDateBorder %% WxCalendarDateBorder = integer() %% @doc See external documentation. %%
WxCalendarDateBorder is one of ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND getBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetBorder, <>). %% @spec (This::wxCalendarDateAttr()) -> ok %% @doc Destroys this object, do not use object again destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxCalendarDateAttr), wxe_util:destroy(?wxCalendarDateAttr_destroy,Obj), ok.