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/wxGridCellAttr.erl | 73 ++++++++++++++++++++++++++------------- 1 file changed, 49 insertions(+), 24 deletions(-) (limited to 'lib/wx/src/gen/wxGridCellAttr.erl') diff --git a/lib/wx/src/gen/wxGridCellAttr.erl b/lib/wx/src/gen/wxGridCellAttr.erl index a9a0c1fb79..896bf97489 100644 --- a/lib/wx/src/gen/wxGridCellAttr.erl +++ b/lib/wx/src/gen/wxGridCellAttr.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. 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 @@ -33,50 +33,59 @@ %% inherited exports -export([parent_class/1]). +-export_type([wxGridCellAttr/0]). %% @hidden parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (This::wxGridCellAttr(), ColText::wx:colour()) -> ok +-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, <>). -%% @spec (This::wxGridCellAttr(), ColBack::wx:colour()) -> ok %% @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, <>). -%% @spec (This::wxGridCellAttr(), Font::wxFont:wxFont()) -> ok %% @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, <>). -%% @spec (This::wxGridCellAttr(), HAlign::integer(), VAlign::integer()) -> ok %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> ok %% @equiv setReadOnly(This, []) +-spec setReadOnly(This) -> ok when + This::wxGridCellAttr(). + setReadOnly(This) when is_record(This, wx_ref) -> setReadOnly(This, []). -%% @spec (This::wxGridCellAttr(), [Option]) -> ok -%% Option = {isReadOnly, bool()} %% @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), @@ -86,94 +95,107 @@ setReadOnly(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:cast(?wxGridCellAttr_SetReadOnly, <>). -%% @spec (This::wxGridCellAttr(), Renderer::wxGridCellRenderer:wxGridCellRenderer()) -> ok %% @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, <>). -%% @spec (This::wxGridCellAttr(), Editor::wxGridCellEditor:wxGridCellEditor()) -> ok %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> wx:colour() %% @doc See external documentation. +-spec getTextColour(This) -> wx:wx_colour() when + This::wxGridCellAttr(). getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetTextColour, <>). -%% @spec (This::wxGridCellAttr()) -> wx:colour() %% @doc See external documentation. +-spec getBackgroundColour(This) -> wx:wx_colour() when + This::wxGridCellAttr(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGridCellAttr), wxe_util:call(?wxGridCellAttr_GetBackgroundColour, <>). -%% @spec (This::wxGridCellAttr()) -> wxFont:wxFont() %% @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, <>). -%% @spec (This::wxGridCellAttr()) -> {HAlign::integer(), VAlign::integer()} %% @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, <>). -%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellRenderer:wxGridCellRenderer() %% @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), @@ -181,8 +203,9 @@ getRenderer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row, wxe_util:call(?wxGridCellAttr_GetRenderer, <>). -%% @spec (This::wxGridCellAttr(), Grid::wxGrid:wxGrid(), Row::integer(), Col::integer()) -> wxGridCellEditor:wxGridCellEditor() %% @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), @@ -190,15 +213,17 @@ getEditor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=GridT,ref=GridRef},Row,Co wxe_util:call(?wxGridCellAttr_GetEditor, <>). -%% @spec (This::wxGridCellAttr()) -> bool() %% @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, <>). -%% @spec (This::wxGridCellAttr(), DefAttr::wxGridCellAttr()) -> ok %% @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), -- cgit v1.2.3