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/wxSplitterWindow.erl | 113 ++++++++++++++++++++++++------------ 1 file changed, 76 insertions(+), 37 deletions(-) (limited to 'lib/wx/src/gen/wxSplitterWindow.erl') diff --git a/lib/wx/src/gen/wxSplitterWindow.erl b/lib/wx/src/gen/wxSplitterWindow.erl index b17fed3151..37ef11fc9c 100644 --- a/lib/wx/src/gen/wxSplitterWindow.erl +++ b/lib/wx/src/gen/wxSplitterWindow.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2009-2011. All Rights Reserved. +%% Copyright Ericsson AB 2009-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 @@ -73,26 +73,34 @@ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1, update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]). +-export_type([wxSplitterWindow/0]). %% @hidden parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxSplitterWindow() +-type wxSplitterWindow() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxSplitterWindow(). new() -> wxe_util:construct(?wxSplitterWindow_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow()) -> wxSplitterWindow() %% @equiv new(Parent, []) +-spec new(Parent) -> wxSplitterWindow() when + Parent::wxWindow:wxWindow(). + new(Parent) when is_record(Parent, wx_ref) -> new(Parent, []). -%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSplitterWindow() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec new(Parent, [Option]) -> wxSplitterWindow() when + Parent::wxWindow:wxWindow(), + Option :: {id, integer()} + | {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -105,15 +113,21 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) wxe_util:construct(?wxSplitterWindow_new_2, <>). -%% @spec (This::wxSplitterWindow(), Parent::wxWindow:wxWindow()) -> bool() %% @equiv create(This,Parent, []) +-spec create(This, Parent) -> boolean() when + This::wxSplitterWindow(), Parent::wxWindow:wxWindow(). + create(This,Parent) when is_record(This, wx_ref),is_record(Parent, wx_ref) -> create(This,Parent, []). -%% @spec (This::wxSplitterWindow(), Parent::wxWindow:wxWindow(), [Option]) -> bool() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec create(This, Parent, [Option]) -> boolean() when + This::wxSplitterWindow(), Parent::wxWindow:wxWindow(), + Option :: {id, integer()} + | {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSplitterWindow), @@ -127,67 +141,75 @@ create(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ParentT,ref=ParentRef}, Opti wxe_util:call(?wxSplitterWindow_Create, <>). -%% @spec (This::wxSplitterWindow()) -> integer() %% @doc See external documentation. +-spec getMinimumPaneSize(This) -> integer() when + This::wxSplitterWindow(). getMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetMinimumPaneSize, <>). -%% @spec (This::wxSplitterWindow()) -> float() %% @doc See external documentation. +-spec getSashGravity(This) -> float() when + This::wxSplitterWindow(). getSashGravity(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetSashGravity, <>). -%% @spec (This::wxSplitterWindow()) -> integer() %% @doc See external documentation. +-spec getSashPosition(This) -> integer() when + This::wxSplitterWindow(). getSashPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetSashPosition, <>). -%% @spec (This::wxSplitterWindow()) -> WxSplitMode -%% WxSplitMode = integer() %% @doc See external documentation. -%%
WxSplitMode is one of ?wxSPLIT_HORIZONTAL | ?wxSPLIT_VERTICAL +%%
Res = ?wxSPLIT_HORIZONTAL | ?wxSPLIT_VERTICAL +-spec getSplitMode(This) -> wx:wx_enum() when + This::wxSplitterWindow(). getSplitMode(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetSplitMode, <>). -%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getWindow1(This) -> wxWindow:wxWindow() when + This::wxSplitterWindow(). getWindow1(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetWindow1, <>). -%% @spec (This::wxSplitterWindow()) -> wxWindow:wxWindow() %% @doc See external documentation. +-spec getWindow2(This) -> wxWindow:wxWindow() when + This::wxSplitterWindow(). getWindow2(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_GetWindow2, <>). -%% @spec (This::wxSplitterWindow(), Window::wxWindow:wxWindow()) -> ok %% @doc See external documentation. +-spec initialize(This, Window) -> ok when + This::wxSplitterWindow(), Window::wxWindow:wxWindow(). initialize(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WindowT,ref=WindowRef}) -> ?CLASS(ThisT,wxSplitterWindow), ?CLASS(WindowT,wxWindow), wxe_util:cast(?wxSplitterWindow_Initialize, <>). -%% @spec (This::wxSplitterWindow()) -> bool() %% @doc See external documentation. +-spec isSplit(This) -> boolean() when + This::wxSplitterWindow(). isSplit(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:call(?wxSplitterWindow_IsSplit, <>). -%% @spec (This::wxSplitterWindow(), WinOld::wxWindow:wxWindow(), WinNew::wxWindow:wxWindow()) -> bool() %% @doc See external documentation. +-spec replaceWindow(This, WinOld, WinNew) -> boolean() when + This::wxSplitterWindow(), WinOld::wxWindow:wxWindow(), WinNew::wxWindow:wxWindow(). replaceWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinOldT,ref=WinOldRef},#wx_ref{type=WinNewT,ref=WinNewRef}) -> ?CLASS(ThisT,wxSplitterWindow), ?CLASS(WinOldT,wxWindow), @@ -195,23 +217,27 @@ replaceWindow(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinOldT,ref=WinOldRef wxe_util:call(?wxSplitterWindow_ReplaceWindow, <>). -%% @spec (This::wxSplitterWindow(), Gravity::float()) -> ok %% @doc See external documentation. +-spec setSashGravity(This, Gravity) -> ok when + This::wxSplitterWindow(), Gravity::float(). setSashGravity(#wx_ref{type=ThisT,ref=ThisRef},Gravity) when is_float(Gravity) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:cast(?wxSplitterWindow_SetSashGravity, <>). -%% @spec (This::wxSplitterWindow(), Position::integer()) -> ok %% @equiv setSashPosition(This,Position, []) +-spec setSashPosition(This, Position) -> ok when + This::wxSplitterWindow(), Position::integer(). + setSashPosition(This,Position) when is_record(This, wx_ref),is_integer(Position) -> setSashPosition(This,Position, []). -%% @spec (This::wxSplitterWindow(), Position::integer(), [Option]) -> ok -%% Option = {redraw, bool()} %% @doc See external documentation. +-spec setSashPosition(This, Position, [Option]) -> ok when + This::wxSplitterWindow(), Position::integer(), + Option :: {redraw, boolean()}. setSashPosition(#wx_ref{type=ThisT,ref=ThisRef},Position, Options) when is_integer(Position),is_list(Options) -> ?CLASS(ThisT,wxSplitterWindow), @@ -221,39 +247,45 @@ setSashPosition(#wx_ref{type=ThisT,ref=ThisRef},Position, Options) wxe_util:cast(?wxSplitterWindow_SetSashPosition, <>). -%% @spec (This::wxSplitterWindow(), Width::integer()) -> ok %% @doc See external documentation. +-spec setSashSize(This, Width) -> ok when + This::wxSplitterWindow(), Width::integer(). setSashSize(#wx_ref{type=ThisT,ref=ThisRef},Width) when is_integer(Width) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:cast(?wxSplitterWindow_SetSashSize, <>). -%% @spec (This::wxSplitterWindow(), Min::integer()) -> ok %% @doc See external documentation. +-spec setMinimumPaneSize(This, Min) -> ok when + This::wxSplitterWindow(), Min::integer(). setMinimumPaneSize(#wx_ref{type=ThisT,ref=ThisRef},Min) when is_integer(Min) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:cast(?wxSplitterWindow_SetMinimumPaneSize, <>). -%% @spec (This::wxSplitterWindow(), Mode::integer()) -> ok %% @doc See external documentation. +-spec setSplitMode(This, Mode) -> ok when + This::wxSplitterWindow(), Mode::integer(). setSplitMode(#wx_ref{type=ThisT,ref=ThisRef},Mode) when is_integer(Mode) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:cast(?wxSplitterWindow_SetSplitMode, <>). -%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow()) -> bool() %% @equiv splitHorizontally(This,Window1,Window2, []) +-spec splitHorizontally(This, Window1, Window2) -> boolean() when + This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(). + splitHorizontally(This,Window1,Window2) when is_record(This, wx_ref),is_record(Window1, wx_ref),is_record(Window2, wx_ref) -> splitHorizontally(This,Window1,Window2, []). -%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), [Option]) -> bool() -%% Option = {sashPosition, integer()} %% @doc See external documentation. +-spec splitHorizontally(This, Window1, Window2, [Option]) -> boolean() when + This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), + Option :: {sashPosition, integer()}. splitHorizontally(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Window1Ref},#wx_ref{type=Window2T,ref=Window2Ref}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSplitterWindow), @@ -265,15 +297,18 @@ splitHorizontally(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Wind wxe_util:call(?wxSplitterWindow_SplitHorizontally, <>). -%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow()) -> bool() %% @equiv splitVertically(This,Window1,Window2, []) +-spec splitVertically(This, Window1, Window2) -> boolean() when + This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(). + splitVertically(This,Window1,Window2) when is_record(This, wx_ref),is_record(Window1, wx_ref),is_record(Window2, wx_ref) -> splitVertically(This,Window1,Window2, []). -%% @spec (This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), [Option]) -> bool() -%% Option = {sashPosition, integer()} %% @doc See external documentation. +-spec splitVertically(This, Window1, Window2, [Option]) -> boolean() when + This::wxSplitterWindow(), Window1::wxWindow:wxWindow(), Window2::wxWindow:wxWindow(), + Option :: {sashPosition, integer()}. splitVertically(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Window1Ref},#wx_ref{type=Window2T,ref=Window2Ref}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSplitterWindow), @@ -285,15 +320,18 @@ splitVertically(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=Window1T,ref=Window wxe_util:call(?wxSplitterWindow_SplitVertically, <>). -%% @spec (This::wxSplitterWindow()) -> bool() %% @equiv unsplit(This, []) +-spec unsplit(This) -> boolean() when + This::wxSplitterWindow(). + unsplit(This) when is_record(This, wx_ref) -> unsplit(This, []). -%% @spec (This::wxSplitterWindow(), [Option]) -> bool() -%% Option = {toRemove, wxWindow:wxWindow()} %% @doc See external documentation. +-spec unsplit(This, [Option]) -> boolean() when + This::wxSplitterWindow(), + Option :: {toRemove, wxWindow:wxWindow()}. unsplit(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxSplitterWindow), @@ -303,15 +341,16 @@ unsplit(#wx_ref{type=ThisT,ref=ThisRef}, Options) wxe_util:call(?wxSplitterWindow_Unsplit, <>). -%% @spec (This::wxSplitterWindow()) -> ok %% @doc See external documentation. +-spec updateSize(This) -> ok when + This::wxSplitterWindow(). updateSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSplitterWindow), wxe_util:cast(?wxSplitterWindow_UpdateSize, <>). -%% @spec (This::wxSplitterWindow()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxSplitterWindow) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxSplitterWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3