From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxCalendarDateAttr.erl | 98 +++++++++++++++++++---------------- 1 file changed, 54 insertions(+), 44 deletions(-) (limited to 'lib/wx/src/gen/wxCalendarDateAttr.erl') diff --git a/lib/wx/src/gen/wxCalendarDateAttr.erl b/lib/wx/src/gen/wxCalendarDateAttr.erl index aea8abbe54..c674aee8d6 100644 --- a/lib/wx/src/gen/wxCalendarDateAttr.erl +++ b/lib/wx/src/gen/wxCalendarDateAttr.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. All Rights Reserved. +%% Copyright Ericsson AB 2008-2012. 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 @@ -32,22 +32,22 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxCalendarDateAttr/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxCalendarDateAttr() +-type wxCalendarDateAttr() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxCalendarDateAttr(). 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, [])

+-spec new(Border) -> wxCalendarDateAttr() when + Border::wx:wx_enum(); + (ColText) -> wxCalendarDateAttr() when + ColText::wx:wx_colour(). new(Border) when is_integer(Border) -> @@ -57,21 +57,16 @@ 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 -%%

+-spec new(Border, [Option]) -> wxCalendarDateAttr() when + Border::wx:wx_enum(), + Option :: {colBorder, wx:wx_colour()}; + (ColText, [Option]) -> wxCalendarDateAttr() when + ColText::wx:wx_colour(), + Option :: {colBack, wx:wx_colour()} + | {colBorder, wx:wx_colour()} + | {font, wxFont:wxFont()} + | {border, wx:wx_enum()}. 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]; @@ -90,137 +85,152 @@ new(ColText, 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. +-spec setTextColour(This, ColText) -> ok when + This::wxCalendarDateAttr(), ColText::wx:wx_colour(). 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. +-spec setBackgroundColour(This, ColBack) -> ok when + This::wxCalendarDateAttr(), ColBack::wx:wx_colour(). 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. +-spec setBorderColour(This, Col) -> ok when + This::wxCalendarDateAttr(), Col::wx:wx_colour(). 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. +-spec setFont(This, Font) -> ok when + This::wxCalendarDateAttr(), Font::wxFont:wxFont(). 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 +%%
Border = ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND +-spec setBorder(This, Border) -> ok when + This::wxCalendarDateAttr(), Border::wx:wx_enum(). 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. +-spec setHoliday(This, Holiday) -> ok when + This::wxCalendarDateAttr(), Holiday::boolean(). 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. +-spec hasTextColour(This) -> boolean() when + This::wxCalendarDateAttr(). hasTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasTextColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. +-spec hasBackgroundColour(This) -> boolean() when + This::wxCalendarDateAttr(). hasBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBackgroundColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. +-spec hasBorderColour(This) -> boolean() when + This::wxCalendarDateAttr(). hasBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBorderColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. +-spec hasFont(This) -> boolean() when + This::wxCalendarDateAttr(). hasFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasFont, <>). -%% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. +-spec hasBorder(This) -> boolean() when + This::wxCalendarDateAttr(). hasBorder(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_HasBorder, <>). -%% @spec (This::wxCalendarDateAttr()) -> bool() %% @doc See external documentation. +-spec isHoliday(This) -> boolean() when + This::wxCalendarDateAttr(). isHoliday(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_IsHoliday, <>). -%% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. +-spec getTextColour(This) -> wx:wx_colour() when + This::wxCalendarDateAttr(). getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetTextColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. +-spec getBackgroundColour(This) -> wx:wx_colour() when + This::wxCalendarDateAttr(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetBackgroundColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> wx:colour() %% @doc See external documentation. +-spec getBorderColour(This) -> wx:wx_colour() when + This::wxCalendarDateAttr(). getBorderColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxCalendarDateAttr), wxe_util:call(?wxCalendarDateAttr_GetBorderColour, <>). -%% @spec (This::wxCalendarDateAttr()) -> wxFont:wxFont() %% @doc See external documentation. +-spec getFont(This) -> wxFont:wxFont() when + This::wxCalendarDateAttr(). 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 +%%
Res = ?wxCAL_BORDER_NONE | ?wxCAL_BORDER_SQUARE | ?wxCAL_BORDER_ROUND +-spec getBorder(This) -> wx:wx_enum() when + This::wxCalendarDateAttr(). 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 +-spec destroy(This::wxCalendarDateAttr) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxCalendarDateAttr), wxe_util:destroy(?wxCalendarDateAttr_destroy,Obj), -- cgit v1.2.3