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/wxBitmapButton.erl | 56 +++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 17 deletions(-) (limited to 'lib/wx/src/gen/wxBitmapButton.erl') diff --git a/lib/wx/src/gen/wxBitmapButton.erl b/lib/wx/src/gen/wxBitmapButton.erl index d2353466e7..47ba575fb4 100644 --- a/lib/wx/src/gen/wxBitmapButton.erl +++ b/lib/wx/src/gen/wxBitmapButton.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 @@ -72,6 +72,7 @@ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1, update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]). +-export_type([wxBitmapButton/0]). %% @hidden parent_class(wxButton) -> true; parent_class(wxControl) -> true; @@ -79,21 +80,28 @@ parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxBitmapButton() +-type wxBitmapButton() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxBitmapButton(). new() -> wxe_util:construct(?wxBitmapButton_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap()) -> wxBitmapButton() %% @equiv new(Parent,Id,Bitmap, []) +-spec new(Parent, Id, Bitmap) -> wxBitmapButton() when + Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(). + new(Parent,Id,Bitmap) when is_record(Parent, wx_ref),is_integer(Id),is_record(Bitmap, wx_ref) -> new(Parent,Id,Bitmap, []). -%% @spec (Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> wxBitmapButton() -%% Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx()} %% @doc See external documentation. +-spec new(Parent, Id, Bitmap, [Option]) -> wxBitmapButton() when + Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), + Option :: {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()} + | {validator, wx:wx()}. new(#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=BitmapT,ref=BitmapRef}, Options) when is_integer(Id),is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -107,15 +115,21 @@ new(#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=BitmapT,ref=BitmapRef}, wxe_util:construct(?wxBitmapButton_new_4, <>). -%% @spec (This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap()) -> bool() %% @equiv create(This,Parent,Id,Bitmap, []) +-spec create(This, Parent, Id, Bitmap) -> boolean() when + This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(). + create(This,Parent,Id,Bitmap) when is_record(This, wx_ref),is_record(Parent, wx_ref),is_integer(Id),is_record(Bitmap, wx_ref) -> create(This,Parent,Id,Bitmap, []). -%% @spec (This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), [Option]) -> bool() -%% Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx:wx()} %% @doc See external documentation. +-spec create(This, Parent, Id, Bitmap, [Option]) -> boolean() when + This::wxBitmapButton(), Parent::wxWindow:wxWindow(), Id::integer(), Bitmap::wxBitmap:wxBitmap(), + Option :: {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()} + | {validator, wx:wx()}. create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#wx_ref{type=BitmapT,ref=BitmapRef}, Options) when is_integer(Id),is_list(Options) -> ?CLASS(ThisT,wxBitmapButton), @@ -130,68 +144,76 @@ create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef},Id,#w wxe_util:call(?wxBitmapButton_Create, <>). -%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() %% @doc See external documentation. +-spec getBitmapDisabled(This) -> wxBitmap:wxBitmap() when + This::wxBitmapButton(). getBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxBitmapButton), wxe_util:call(?wxBitmapButton_GetBitmapDisabled, <>). -%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() %% @doc See external documentation. +-spec getBitmapFocus(This) -> wxBitmap:wxBitmap() when + This::wxBitmapButton(). getBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxBitmapButton), wxe_util:call(?wxBitmapButton_GetBitmapFocus, <>). -%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() %% @doc See external documentation. +-spec getBitmapLabel(This) -> wxBitmap:wxBitmap() when + This::wxBitmapButton(). getBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxBitmapButton), wxe_util:call(?wxBitmapButton_GetBitmapLabel, <>). -%% @spec (This::wxBitmapButton()) -> wxBitmap:wxBitmap() %% @doc See external documentation. +-spec getBitmapSelected(This) -> wxBitmap:wxBitmap() when + This::wxBitmapButton(). getBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxBitmapButton), wxe_util:call(?wxBitmapButton_GetBitmapSelected, <>). -%% @spec (This::wxBitmapButton(), Disabled::wxBitmap:wxBitmap()) -> ok %% @doc See external documentation. +-spec setBitmapDisabled(This, Disabled) -> ok when + This::wxBitmapButton(), Disabled::wxBitmap:wxBitmap(). setBitmapDisabled(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DisabledT,ref=DisabledRef}) -> ?CLASS(ThisT,wxBitmapButton), ?CLASS(DisabledT,wxBitmap), wxe_util:cast(?wxBitmapButton_SetBitmapDisabled, <>). -%% @spec (This::wxBitmapButton(), Focus::wxBitmap:wxBitmap()) -> ok %% @doc See external documentation. +-spec setBitmapFocus(This, Focus) -> ok when + This::wxBitmapButton(), Focus::wxBitmap:wxBitmap(). setBitmapFocus(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FocusT,ref=FocusRef}) -> ?CLASS(ThisT,wxBitmapButton), ?CLASS(FocusT,wxBitmap), wxe_util:cast(?wxBitmapButton_SetBitmapFocus, <>). -%% @spec (This::wxBitmapButton(), Bitmap::wxBitmap:wxBitmap()) -> ok %% @doc See external documentation. +-spec setBitmapLabel(This, Bitmap) -> ok when + This::wxBitmapButton(), Bitmap::wxBitmap:wxBitmap(). setBitmapLabel(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BitmapT,ref=BitmapRef}) -> ?CLASS(ThisT,wxBitmapButton), ?CLASS(BitmapT,wxBitmap), wxe_util:cast(?wxBitmapButton_SetBitmapLabel, <>). -%% @spec (This::wxBitmapButton(), Sel::wxBitmap:wxBitmap()) -> ok %% @doc See external documentation. +-spec setBitmapSelected(This, Sel) -> ok when + This::wxBitmapButton(), Sel::wxBitmap:wxBitmap(). setBitmapSelected(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SelT,ref=SelRef}) -> ?CLASS(ThisT,wxBitmapButton), ?CLASS(SelT,wxBitmap), wxe_util:cast(?wxBitmapButton_SetBitmapSelected, <>). -%% @spec (This::wxBitmapButton()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxBitmapButton) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxBitmapButton), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3