diff options
Diffstat (limited to 'lib/wx/src/gen/wxSashWindow.erl')
-rw-r--r-- | lib/wx/src/gen/wxSashWindow.erl | 56 |
1 files changed, 36 insertions, 20 deletions
diff --git a/lib/wx/src/gen/wxSashWindow.erl b/lib/wx/src/gen/wxSashWindow.erl index 698cfb8fb6..7d85e05af8 100644 --- a/lib/wx/src/gen/wxSashWindow.erl +++ b/lib/wx/src/gen/wxSashWindow.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 @@ -70,26 +70,34 @@ show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1, update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]). +-export_type([wxSashWindow/0]). %% @hidden parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxSashWindow() +-type wxSashWindow() :: wx:wx_object(). %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowwxsashwindow">external documentation</a>. +-spec new() -> wxSashWindow(). new() -> wxe_util:construct(?wxSashWindow_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow()) -> wxSashWindow() %% @equiv new(Parent, []) +-spec new(Parent) -> wxSashWindow() when + Parent::wxWindow:wxWindow(). + new(Parent) when is_record(Parent, wx_ref) -> new(Parent, []). -%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxSashWindow() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowwxsashwindow">external documentation</a>. +-spec new(Parent, [Option]) -> wxSashWindow() 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), @@ -102,88 +110,96 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) wxe_util:construct(?wxSashWindow_new_2, <<ParentRef:32/?UI, 0:32,BinOpt/binary>>). -%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition) -> bool() -%% WxSashEdgePosition = integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetsashvisible">external documentation</a>. -%%<br /> WxSashEdgePosition is one of ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE +%%<br /> Edge = ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE +-spec getSashVisible(This, Edge) -> boolean() when + This::wxSashWindow(), Edge::wx:wx_enum(). getSashVisible(#wx_ref{type=ThisT,ref=ThisRef},Edge) when is_integer(Edge) -> ?CLASS(ThisT,wxSashWindow), wxe_util:call(?wxSashWindow_GetSashVisible, <<ThisRef:32/?UI,Edge:32/?UI>>). -%% @spec (This::wxSashWindow()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetmaximumsizex">external documentation</a>. +-spec getMaximumSizeX(This) -> integer() when + This::wxSashWindow(). getMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSashWindow), wxe_util:call(?wxSashWindow_GetMaximumSizeX, <<ThisRef:32/?UI>>). -%% @spec (This::wxSashWindow()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetmaximumsizey">external documentation</a>. +-spec getMaximumSizeY(This) -> integer() when + This::wxSashWindow(). getMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSashWindow), wxe_util:call(?wxSashWindow_GetMaximumSizeY, <<ThisRef:32/?UI>>). -%% @spec (This::wxSashWindow()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetminimumsizex">external documentation</a>. +-spec getMinimumSizeX(This) -> integer() when + This::wxSashWindow(). getMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSashWindow), wxe_util:call(?wxSashWindow_GetMinimumSizeX, <<ThisRef:32/?UI>>). -%% @spec (This::wxSashWindow()) -> integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowgetminimumsizey">external documentation</a>. +-spec getMinimumSizeY(This) -> integer() when + This::wxSashWindow(). getMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxSashWindow), wxe_util:call(?wxSashWindow_GetMinimumSizeY, <<ThisRef:32/?UI>>). -%% @spec (This::wxSashWindow(), Max::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetmaximumsizex">external documentation</a>. +-spec setMaximumSizeX(This, Max) -> ok when + This::wxSashWindow(), Max::integer(). setMaximumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Max) when is_integer(Max) -> ?CLASS(ThisT,wxSashWindow), wxe_util:cast(?wxSashWindow_SetMaximumSizeX, <<ThisRef:32/?UI,Max:32/?UI>>). -%% @spec (This::wxSashWindow(), Max::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetmaximumsizey">external documentation</a>. +-spec setMaximumSizeY(This, Max) -> ok when + This::wxSashWindow(), Max::integer(). setMaximumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Max) when is_integer(Max) -> ?CLASS(ThisT,wxSashWindow), wxe_util:cast(?wxSashWindow_SetMaximumSizeY, <<ThisRef:32/?UI,Max:32/?UI>>). -%% @spec (This::wxSashWindow(), Min::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetminimumsizex">external documentation</a>. +-spec setMinimumSizeX(This, Min) -> ok when + This::wxSashWindow(), Min::integer(). setMinimumSizeX(#wx_ref{type=ThisT,ref=ThisRef},Min) when is_integer(Min) -> ?CLASS(ThisT,wxSashWindow), wxe_util:cast(?wxSashWindow_SetMinimumSizeX, <<ThisRef:32/?UI,Min:32/?UI>>). -%% @spec (This::wxSashWindow(), Min::integer()) -> ok %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetminimumsizey">external documentation</a>. +-spec setMinimumSizeY(This, Min) -> ok when + This::wxSashWindow(), Min::integer(). setMinimumSizeY(#wx_ref{type=ThisT,ref=ThisRef},Min) when is_integer(Min) -> ?CLASS(ThisT,wxSashWindow), wxe_util:cast(?wxSashWindow_SetMinimumSizeY, <<ThisRef:32/?UI,Min:32/?UI>>). -%% @spec (This::wxSashWindow(), Edge::WxSashEdgePosition, Sash::bool()) -> ok -%% WxSashEdgePosition = integer() %% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxsashwindow.html#wxsashwindowsetsashvisible">external documentation</a>. -%%<br /> WxSashEdgePosition is one of ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE +%%<br /> Edge = ?wxSASH_TOP | ?wxSASH_RIGHT | ?wxSASH_BOTTOM | ?wxSASH_LEFT | ?wxSASH_NONE +-spec setSashVisible(This, Edge, Sash) -> ok when + This::wxSashWindow(), Edge::wx:wx_enum(), Sash::boolean(). setSashVisible(#wx_ref{type=ThisT,ref=ThisRef},Edge,Sash) when is_integer(Edge),is_boolean(Sash) -> ?CLASS(ThisT,wxSashWindow), wxe_util:cast(?wxSashWindow_SetSashVisible, <<ThisRef:32/?UI,Edge:32/?UI,(wxe_util:from_bool(Sash)):32/?UI>>). -%% @spec (This::wxSashWindow()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxSashWindow()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxSashWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), |