%% %% %CopyrightBegin% %% %% 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 %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% This file is generated DO NOT EDIT %% @doc See external documentation: wxWindow. %%

This class is derived (and can use functions) from: %%
{@link wxEvtHandler} %%

%% @type wxWindow(). An object reference, The representation is internal %% and can be changed without notice. It can't be used for comparsion %% stored on disc or distributed for use on other nodes. -module(wxWindow). -include("wxe.hrl"). -export(['Destroy'/1,cacheBestSize/2,captureMouse/1,center/1,center/2,centerOnParent/1, centerOnParent/2,centre/1,centre/2,centreOnParent/1,centreOnParent/2, clearBackground/1,clientToScreen/2,clientToScreen/3,close/1,close/2, convertDialogToPixels/2,convertPixelsToDialog/2,destroy/1,destroyChildren/1, disable/1,enable/1,enable/2,findFocus/0,findWindow/2,findWindowById/1, findWindowById/2,findWindowByLabel/1,findWindowByLabel/2,findWindowByName/1, findWindowByName/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1, getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCapture/0, getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1, getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1, getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1, getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,getMinSize/1, getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1, getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2, getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,getToolTip/1, getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1, hasCapture/1,hasScrollbar/2,hasTransparentBackground/1,hide/1,inheritAttributes/1, initDialog/1,invalidateBestSize/1,isEnabled/1,isExposed/2,isExposed/3, isExposed/5,isRetained/1,isShown/1,isTopLevel/1,layout/1,lineDown/1, lineUp/1,lower/1,makeModal/1,makeModal/2,move/2,move/3,move/4,moveAfterInTabOrder/2, moveBeforeInTabOrder/2,navigate/1,navigate/2,new/0,new/2,new/3,pageDown/1, pageUp/1,popEventHandler/1,popEventHandler/2,popupMenu/2,popupMenu/3, popupMenu/4,raise/1,refresh/1,refresh/2,refreshRect/2,refreshRect/3, releaseMouse/1,removeChild/2,reparent/2,screenToClient/1,screenToClient/2, scrollLines/2,scrollPages/2,scrollWindow/3,scrollWindow/4,setAcceleratorTable/2, setAutoLayout/2,setBackgroundColour/2,setBackgroundStyle/2,setCaret/2, setClientSize/2,setClientSize/3,setContainingSizer/2,setCursor/2, setDropTarget/2,setExtraStyle/2,setFocus/1,setFocusFromKbd/1,setFont/2, setForegroundColour/2,setHelpText/2,setId/2,setLabel/2,setMaxSize/2, setMinSize/2,setName/2,setOwnBackgroundColour/2,setOwnFont/2,setOwnForegroundColour/2, setPalette/2,setScrollPos/3,setScrollPos/4,setScrollbar/5,setScrollbar/6, setSize/2,setSize/3,setSize/5,setSize/6,setSizeHints/2,setSizeHints/3, setSizeHints/4,setSizer/2,setSizer/3,setSizerAndFit/2,setSizerAndFit/3, setThemeEnabled/2,setToolTip/2,setVirtualSize/2,setVirtualSize/3, setVirtualSizeHints/2,setVirtualSizeHints/3,setVirtualSizeHints/4, setWindowStyle/2,setWindowStyleFlag/2,setWindowVariant/2,shouldInheritColours/1, show/1,show/2,thaw/1,transferDataFromWindow/1,transferDataToWindow/1, update/1,updateWindowUI/1,updateWindowUI/2,validate/1,warpPointer/3]). %% inherited exports -export([connect/2,connect/3,disconnect/1,disconnect/2,disconnect/3,parent_class/1]). -export_type([wxWindow/0]). %% @hidden parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -type wxWindow() :: wx:wx_object(). %% @doc See external documentation. -spec new() -> wxWindow(). new() -> wxe_util:construct(?wxWindow_new_0, <<>>). %% @equiv new(Parent,Id, []) -spec new(Parent, Id) -> wxWindow() when Parent::wxWindow(), Id::integer(). new(Parent,Id) when is_record(Parent, wx_ref),is_integer(Id) -> new(Parent,Id, []). %% @doc See external documentation. -spec new(Parent, Id, [Option]) -> wxWindow() when Parent::wxWindow(), Id::integer(), Option :: {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef},Id, Options) when is_integer(Id),is_list(Options) -> ?CLASS(ParentT,wxWindow), MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc]; ({size, {SizeW,SizeH}}, Acc) -> [<<2:32/?UI,SizeW:32/?UI,SizeH:32/?UI,0:32>>|Acc]; ({style, Style}, Acc) -> [<<3:32/?UI,Style:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:construct(?wxWindow_new_3, <>). %% @doc See external documentation. -spec cacheBestSize(This, Size) -> ok when This::wxWindow(), Size::{W::integer(), H::integer()}. cacheBestSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_CacheBestSize, <>). %% @doc See external documentation. -spec captureMouse(This) -> ok when This::wxWindow(). captureMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_CaptureMouse, <>). %% @equiv center(This, []) -spec center(This) -> ok when This::wxWindow(). center(This) when is_record(This, wx_ref) -> center(This, []). %% @doc See external documentation. -spec center(This, [Option]) -> ok when This::wxWindow(), Option :: {dir, integer()}. center(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_Center, <>). %% @equiv centerOnParent(This, []) -spec centerOnParent(This) -> ok when This::wxWindow(). centerOnParent(This) when is_record(This, wx_ref) -> centerOnParent(This, []). %% @doc See external documentation. -spec centerOnParent(This, [Option]) -> ok when This::wxWindow(), Option :: {dir, integer()}. centerOnParent(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_CenterOnParent, <>). %% @equiv centre(This, []) -spec centre(This) -> ok when This::wxWindow(). centre(This) when is_record(This, wx_ref) -> centre(This, []). %% @doc See external documentation. -spec centre(This, [Option]) -> ok when This::wxWindow(), Option :: {dir, integer()}. centre(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_Centre, <>). %% @equiv centreOnParent(This, []) -spec centreOnParent(This) -> ok when This::wxWindow(). centreOnParent(This) when is_record(This, wx_ref) -> centreOnParent(This, []). %% @doc See external documentation. -spec centreOnParent(This, [Option]) -> ok when This::wxWindow(), Option :: {dir, integer()}. centreOnParent(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({dir, Dir}, Acc) -> [<<1:32/?UI,Dir:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_CentreOnParent, <>). %% @doc See external documentation. -spec clearBackground(This) -> ok when This::wxWindow(). clearBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_ClearBackground, <>). %% @doc See external documentation. -spec clientToScreen(This, Pt) -> {X::integer(), Y::integer()} when This::wxWindow(), Pt::{X::integer(), Y::integer()}. clientToScreen(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) when is_integer(PtX),is_integer(PtY) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ClientToScreen_1, <>). %% @doc See external documentation. -spec clientToScreen(This, X, Y) -> {X::integer(), Y::integer()} when This::wxWindow(), X::integer(), Y::integer(). clientToScreen(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ClientToScreen_2, <>). %% @equiv close(This, []) -spec close(This) -> boolean() when This::wxWindow(). close(This) when is_record(This, wx_ref) -> close(This, []). %% @doc See external documentation. -spec close(This, [Option]) -> boolean() when This::wxWindow(), Option :: {force, boolean()}. close(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({force, Force}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Force)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_Close, <>). %% @doc See external documentation. -spec convertDialogToPixels(This, Sz) -> {W::integer(), H::integer()} when This::wxWindow(), Sz::{W::integer(), H::integer()}. convertDialogToPixels(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) when is_integer(SzW),is_integer(SzH) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ConvertDialogToPixels, <>). %% @doc See external documentation. -spec convertPixelsToDialog(This, Sz) -> {W::integer(), H::integer()} when This::wxWindow(), Sz::{W::integer(), H::integer()}. convertPixelsToDialog(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) when is_integer(SzW),is_integer(SzH) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ConvertPixelsToDialog, <>). %% @doc See external documentation. -spec 'Destroy'(This) -> boolean() when This::wxWindow(). 'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Destroy, <>). %% @doc See external documentation. -spec destroyChildren(This) -> boolean() when This::wxWindow(). destroyChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_DestroyChildren, <>). %% @doc See external documentation. -spec disable(This) -> boolean() when This::wxWindow(). disable(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Disable, <>). %% @equiv enable(This, []) -spec enable(This) -> boolean() when This::wxWindow(). enable(This) when is_record(This, wx_ref) -> enable(This, []). %% @doc See external documentation. -spec enable(This, [Option]) -> boolean() when This::wxWindow(), Option :: {enable, boolean()}. enable(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({enable, Enable}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Enable)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_Enable, <>). %% @doc See external documentation. -spec findFocus() -> wxWindow(). findFocus() -> wxe_util:call(?wxWindow_FindFocus, <<>>). %% @doc See external documentation. %%
Also:
%% findWindow(This, Name) -> wxWindow() when
%% This::wxWindow(), Name::unicode:chardata().
%% -spec findWindow(This, Winid) -> wxWindow() when This::wxWindow(), Winid::integer(); (This, Name) -> wxWindow() when This::wxWindow(), Name::unicode:chardata(). findWindow(#wx_ref{type=ThisT,ref=ThisRef},Winid) when is_integer(Winid) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_FindWindow_1_0, <>); findWindow(#wx_ref{type=ThisT,ref=ThisRef},Name) when is_list(Name) -> ?CLASS(ThisT,wxWindow), Name_UC = unicode:characters_to_binary([Name,0]), wxe_util:call(?wxWindow_FindWindow_1_1, <>). %% @equiv findWindowById(Winid, []) -spec findWindowById(Winid) -> wxWindow() when Winid::integer(). findWindowById(Winid) when is_integer(Winid) -> findWindowById(Winid, []). %% @doc See external documentation. -spec findWindowById(Winid, [Option]) -> wxWindow() when Winid::integer(), Option :: {parent, wxWindow()}. findWindowById(Winid, Options) when is_integer(Winid),is_list(Options) -> MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_FindWindowById, <>). %% @equiv findWindowByName(Name, []) -spec findWindowByName(Name) -> wxWindow() when Name::unicode:chardata(). findWindowByName(Name) when is_list(Name) -> findWindowByName(Name, []). %% @doc See external documentation. -spec findWindowByName(Name, [Option]) -> wxWindow() when Name::unicode:chardata(), Option :: {parent, wxWindow()}. findWindowByName(Name, Options) when is_list(Name),is_list(Options) -> Name_UC = unicode:characters_to_binary([Name,0]), MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_FindWindowByName, <<(byte_size(Name_UC)):32/?UI,(Name_UC)/binary, 0:(((8- ((4+byte_size(Name_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>). %% @equiv findWindowByLabel(Label, []) -spec findWindowByLabel(Label) -> wxWindow() when Label::unicode:chardata(). findWindowByLabel(Label) when is_list(Label) -> findWindowByLabel(Label, []). %% @doc See external documentation. -spec findWindowByLabel(Label, [Option]) -> wxWindow() when Label::unicode:chardata(), Option :: {parent, wxWindow()}. findWindowByLabel(Label, Options) when is_list(Label),is_list(Options) -> Label_UC = unicode:characters_to_binary([Label,0]), MOpts = fun({parent, #wx_ref{type=ParentT,ref=ParentRef}}, Acc) -> ?CLASS(ParentT,wxWindow),[<<1:32/?UI,ParentRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_FindWindowByLabel, <<(byte_size(Label_UC)):32/?UI,(Label_UC)/binary, 0:(((8- ((4+byte_size(Label_UC)) band 16#7)) band 16#7))/unit:8, BinOpt/binary>>). %% @doc See external documentation. -spec fit(This) -> ok when This::wxWindow(). fit(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Fit, <>). %% @doc See external documentation. -spec fitInside(This) -> ok when This::wxWindow(). fitInside(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_FitInside, <>). %% @doc See external documentation. -spec freeze(This) -> ok when This::wxWindow(). freeze(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Freeze, <>). %% @doc See external documentation. -spec getAcceleratorTable(This) -> wxAcceleratorTable:wxAcceleratorTable() when This::wxWindow(). getAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetAcceleratorTable, <>). %% @doc See external documentation. -spec getBackgroundColour(This) -> wx:wx_colour4() when This::wxWindow(). getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBackgroundColour, <>). %% @doc See external documentation. %%
Res = ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM -spec getBackgroundStyle(This) -> wx:wx_enum() when This::wxWindow(). getBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBackgroundStyle, <>). %% @doc See external documentation. -spec getBestSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBestSize, <>). %% @doc See external documentation. -spec getCaret(This) -> wxCaret:wxCaret() when This::wxWindow(). getCaret(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCaret, <>). %% @doc See external documentation. -spec getCapture() -> wxWindow(). getCapture() -> wxe_util:call(?wxWindow_GetCapture, <<>>). %% @doc See external documentation. -spec getCharHeight(This) -> integer() when This::wxWindow(). getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCharHeight, <>). %% @doc See external documentation. -spec getCharWidth(This) -> integer() when This::wxWindow(). getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCharWidth, <>). %% @doc See external documentation. -spec getChildren(This) -> [wxWindow()] when This::wxWindow(). getChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetChildren, <>). %% @doc See external documentation. -spec getClientSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getClientSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetClientSize, <>). %% @doc See external documentation. -spec getContainingSizer(This) -> wxSizer:wxSizer() when This::wxWindow(). getContainingSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetContainingSizer, <>). %% @doc See external documentation. -spec getCursor(This) -> wxCursor:wxCursor() when This::wxWindow(). getCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCursor, <>). %% @doc See external documentation. -spec getDropTarget(This) -> wx:wx_object() when This::wxWindow(). getDropTarget(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetDropTarget, <>). %% @doc See external documentation. -spec getEventHandler(This) -> wxEvtHandler:wxEvtHandler() when This::wxWindow(). getEventHandler(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetEventHandler, <>). %% @doc See external documentation. -spec getExtraStyle(This) -> integer() when This::wxWindow(). getExtraStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetExtraStyle, <>). %% @doc See external documentation. -spec getFont(This) -> wxFont:wxFont() when This::wxWindow(). getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetFont, <>). %% @doc See external documentation. -spec getForegroundColour(This) -> wx:wx_colour4() when This::wxWindow(). getForegroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetForegroundColour, <>). %% @doc See external documentation. -spec getGrandParent(This) -> wxWindow() when This::wxWindow(). getGrandParent(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetGrandParent, <>). %% @doc See external documentation. -spec getHandle(This) -> integer() when This::wxWindow(). getHandle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetHandle, <>). %% @doc See external documentation. -spec getHelpText(This) -> unicode:charlist() when This::wxWindow(). getHelpText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetHelpText, <>). %% @doc See external documentation. -spec getId(This) -> integer() when This::wxWindow(). getId(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetId, <>). %% @doc See external documentation. -spec getLabel(This) -> unicode:charlist() when This::wxWindow(). getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetLabel, <>). %% @doc See external documentation. -spec getMaxSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getMaxSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetMaxSize, <>). %% @doc See external documentation. -spec getMinSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetMinSize, <>). %% @doc See external documentation. -spec getName(This) -> unicode:charlist() when This::wxWindow(). getName(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetName, <>). %% @doc See external documentation. -spec getParent(This) -> wxWindow() when This::wxWindow(). getParent(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetParent, <>). %% @doc See external documentation. -spec getPosition(This) -> {X::integer(), Y::integer()} when This::wxWindow(). getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetPosition, <>). %% @doc See external documentation. -spec getRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when This::wxWindow(). getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetRect, <>). %% @doc See external documentation. -spec getScreenPosition(This) -> {X::integer(), Y::integer()} when This::wxWindow(). getScreenPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScreenPosition, <>). %% @doc See external documentation. -spec getScreenRect(This) -> {X::integer(), Y::integer(), W::integer(), H::integer()} when This::wxWindow(). getScreenRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScreenRect, <>). %% @doc See external documentation. -spec getScrollPos(This, Orient) -> integer() when This::wxWindow(), Orient::integer(). getScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollPos, <>). %% @doc See external documentation. -spec getScrollRange(This, Orient) -> integer() when This::wxWindow(), Orient::integer(). getScrollRange(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollRange, <>). %% @doc See external documentation. -spec getScrollThumb(This, Orient) -> integer() when This::wxWindow(), Orient::integer(). getScrollThumb(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollThumb, <>). %% @doc See external documentation. -spec getSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetSize, <>). %% @doc See external documentation. -spec getSizer(This) -> wxSizer:wxSizer() when This::wxWindow(). getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetSizer, <>). %% @equiv getTextExtent(This,String, []) -spec getTextExtent(This, String) -> Result when Result ::{X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()}, This::wxWindow(), String::unicode:chardata(). getTextExtent(This,String) when is_record(This, wx_ref),is_list(String) -> getTextExtent(This,String, []). %% @doc See external documentation. -spec getTextExtent(This, String, [Option]) -> Result when Result :: {X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()}, This::wxWindow(), String::unicode:chardata(), Option :: {theFont, wxFont:wxFont()}. getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},String, Options) when is_list(String),is_list(Options) -> ?CLASS(ThisT,wxWindow), String_UC = unicode:characters_to_binary([String,0]), MOpts = fun({theFont, #wx_ref{type=TheFontT,ref=TheFontRef}}, Acc) -> ?CLASS(TheFontT,wxFont),[<<1:32/?UI,TheFontRef:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_GetTextExtent, <>). %% @doc See external documentation. -spec getToolTip(This) -> wxToolTip:wxToolTip() when This::wxWindow(). getToolTip(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetToolTip, <>). %% @doc See external documentation. -spec getUpdateRegion(This) -> wxRegion:wxRegion() when This::wxWindow(). getUpdateRegion(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetUpdateRegion, <>). %% @doc See external documentation. -spec getVirtualSize(This) -> {W::integer(), H::integer()} when This::wxWindow(). getVirtualSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetVirtualSize, <>). %% @doc See external documentation. -spec getWindowStyleFlag(This) -> integer() when This::wxWindow(). getWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetWindowStyleFlag, <>). %% @doc See external documentation. %%
Res = ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX -spec getWindowVariant(This) -> wx:wx_enum() when This::wxWindow(). getWindowVariant(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetWindowVariant, <>). %% @doc See external documentation. -spec hasCapture(This) -> boolean() when This::wxWindow(). hasCapture(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasCapture, <>). %% @doc See external documentation. -spec hasScrollbar(This, Orient) -> boolean() when This::wxWindow(), Orient::integer(). hasScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasScrollbar, <>). %% @doc See external documentation. -spec hasTransparentBackground(This) -> boolean() when This::wxWindow(). hasTransparentBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasTransparentBackground, <>). %% @doc See external documentation. -spec hide(This) -> boolean() when This::wxWindow(). hide(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Hide, <>). %% @doc See external documentation. -spec inheritAttributes(This) -> ok when This::wxWindow(). inheritAttributes(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InheritAttributes, <>). %% @doc See external documentation. -spec initDialog(This) -> ok when This::wxWindow(). initDialog(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InitDialog, <>). %% @doc See external documentation. -spec invalidateBestSize(This) -> ok when This::wxWindow(). invalidateBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InvalidateBestSize, <>). %% @doc See external documentation. -spec isEnabled(This) -> boolean() when This::wxWindow(). isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsEnabled, <>). %% @doc See external documentation. %%
Also:
%% isExposed(This, Rect) -> boolean() when
%% This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}.
%% -spec isExposed(This, Pt) -> boolean() when This::wxWindow(), Pt::{X::integer(), Y::integer()}; (This, Rect) -> boolean() when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}. isExposed(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) when is_integer(PtX),is_integer(PtY) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsExposed_1_0, <>); isExposed(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}) when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsExposed_1_1, <>). %% @doc See external documentation. -spec isExposed(This, X, Y) -> boolean() when This::wxWindow(), X::integer(), Y::integer(). isExposed(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsExposed_2, <>). %% @doc See external documentation. -spec isExposed(This, X, Y, W, H) -> boolean() when This::wxWindow(), X::integer(), Y::integer(), W::integer(), H::integer(). isExposed(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H) when is_integer(X),is_integer(Y),is_integer(W),is_integer(H) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsExposed_4, <>). %% @doc See external documentation. -spec isRetained(This) -> boolean() when This::wxWindow(). isRetained(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsRetained, <>). %% @doc See external documentation. -spec isShown(This) -> boolean() when This::wxWindow(). isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsShown, <>). %% @doc See external documentation. -spec isTopLevel(This) -> boolean() when This::wxWindow(). isTopLevel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsTopLevel, <>). %% @doc See external documentation. -spec layout(This) -> boolean() when This::wxWindow(). layout(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Layout, <>). %% @doc See external documentation. -spec lineDown(This) -> boolean() when This::wxWindow(). lineDown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_LineDown, <>). %% @doc See external documentation. -spec lineUp(This) -> boolean() when This::wxWindow(). lineUp(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_LineUp, <>). %% @doc See external documentation. -spec lower(This) -> ok when This::wxWindow(). lower(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Lower, <>). %% @equiv makeModal(This, []) -spec makeModal(This) -> ok when This::wxWindow(). makeModal(This) when is_record(This, wx_ref) -> makeModal(This, []). %% @doc See external documentation. -spec makeModal(This, [Option]) -> ok when This::wxWindow(), Option :: {modal, boolean()}. makeModal(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({modal, Modal}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Modal)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_MakeModal, <>). %% @equiv move(This,Pt, []) -spec move(This, Pt) -> ok when This::wxWindow(), Pt::{X::integer(), Y::integer()}. move(This,Pt={PtX,PtY}) when is_record(This, wx_ref),is_integer(PtX),is_integer(PtY) -> move(This,Pt, []). %% @doc See external documentation. %%
Also:
%% move(This, Pt, [Option]) -> ok when
%% This::wxWindow(), Pt::{X::integer(), Y::integer()},
%% Option :: {flags, integer()}.
%% -spec move(This, X, Y) -> ok when This::wxWindow(), X::integer(), Y::integer(); (This, Pt, [Option]) -> ok when This::wxWindow(), Pt::{X::integer(), Y::integer()}, Option :: {flags, integer()}. move(This,X,Y) when is_record(This, wx_ref),is_integer(X),is_integer(Y) -> move(This,X,Y, []); move(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}, Options) when is_integer(PtX),is_integer(PtY),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_Move_2, <>). %% @doc See external documentation. -spec move(This, X, Y, [Option]) -> ok when This::wxWindow(), X::integer(), Y::integer(), Option :: {flags, integer()}. move(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options) when is_integer(X),is_integer(Y),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_Move_3, <>). %% @doc See external documentation. -spec moveAfterInTabOrder(This, Win) -> ok when This::wxWindow(), Win::wxWindow(). moveAfterInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(WinT,wxWindow), wxe_util:cast(?wxWindow_MoveAfterInTabOrder, <>). %% @doc See external documentation. -spec moveBeforeInTabOrder(This, Win) -> ok when This::wxWindow(), Win::wxWindow(). moveBeforeInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(WinT,wxWindow), wxe_util:cast(?wxWindow_MoveBeforeInTabOrder, <>). %% @equiv navigate(This, []) -spec navigate(This) -> boolean() when This::wxWindow(). navigate(This) when is_record(This, wx_ref) -> navigate(This, []). %% @doc See external documentation. -spec navigate(This, [Option]) -> boolean() when This::wxWindow(), Option :: {flags, integer()}. navigate(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_Navigate, <>). %% @doc See external documentation. -spec pageDown(This) -> boolean() when This::wxWindow(). pageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_PageDown, <>). %% @doc See external documentation. -spec pageUp(This) -> boolean() when This::wxWindow(). pageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_PageUp, <>). %% @equiv popEventHandler(This, []) -spec popEventHandler(This) -> wxEvtHandler:wxEvtHandler() when This::wxWindow(). popEventHandler(This) when is_record(This, wx_ref) -> popEventHandler(This, []). %% @doc See external documentation. -spec popEventHandler(This, [Option]) -> wxEvtHandler:wxEvtHandler() when This::wxWindow(), Option :: {deleteHandler, boolean()}. popEventHandler(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({deleteHandler, DeleteHandler}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteHandler)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_PopEventHandler, <>). %% @equiv popupMenu(This,Menu, []) -spec popupMenu(This, Menu) -> boolean() when This::wxWindow(), Menu::wxMenu:wxMenu(). popupMenu(This,Menu) when is_record(This, wx_ref),is_record(Menu, wx_ref) -> popupMenu(This,Menu, []). %% @doc See external documentation. -spec popupMenu(This, Menu, [Option]) -> boolean() when This::wxWindow(), Menu::wxMenu:wxMenu(), Option :: {pos, {X::integer(), Y::integer()}}. popupMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), ?CLASS(MenuT,wxMenu), MOpts = fun({pos, {PosX,PosY}}, Acc) -> [<<1:32/?UI,PosX:32/?UI,PosY:32/?UI,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_PopupMenu_2, <>). %% @doc See external documentation. -spec popupMenu(This, Menu, X, Y) -> boolean() when This::wxWindow(), Menu::wxMenu:wxMenu(), X::integer(), Y::integer(). popupMenu(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MenuT,ref=MenuRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), ?CLASS(MenuT,wxMenu), wxe_util:call(?wxWindow_PopupMenu_3, <>). %% @doc See external documentation. -spec raise(This) -> ok when This::wxWindow(). raise(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Raise, <>). %% @equiv refresh(This, []) -spec refresh(This) -> ok when This::wxWindow(). refresh(This) when is_record(This, wx_ref) -> refresh(This, []). %% @doc See external documentation. -spec refresh(This, [Option]) -> ok when This::wxWindow(), Option :: {eraseBackground, boolean()} | {rect, {X::integer(), Y::integer(), W::integer(), H::integer()}}. refresh(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({eraseBackground, EraseBackground}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(EraseBackground)):32/?UI>>|Acc]; ({rect, {RectX,RectY,RectW,RectH}}, Acc) -> [<<2:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_Refresh, <>). %% @equiv refreshRect(This,Rect, []) -spec refreshRect(This, Rect) -> ok when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}. refreshRect(This,Rect={RectX,RectY,RectW,RectH}) when is_record(This, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) -> refreshRect(This,Rect, []). %% @doc See external documentation. -spec refreshRect(This, Rect, [Option]) -> ok when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, Option :: {eraseBackground, boolean()}. refreshRect(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}, Options) when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({eraseBackground, EraseBackground}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(EraseBackground)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_RefreshRect, <>). %% @doc See external documentation. -spec releaseMouse(This) -> ok when This::wxWindow(). releaseMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_ReleaseMouse, <>). %% @doc See external documentation. -spec removeChild(This, Child) -> ok when This::wxWindow(), Child::wxWindow(). removeChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ChildT,ref=ChildRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(ChildT,wxWindow), wxe_util:cast(?wxWindow_RemoveChild, <>). %% @doc See external documentation. -spec reparent(This, NewParent) -> boolean() when This::wxWindow(), NewParent::wxWindow(). reparent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=NewParentT,ref=NewParentRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(NewParentT,wxWindow), wxe_util:call(?wxWindow_Reparent, <>). %% @doc See external documentation. -spec screenToClient(This) -> {X::integer(), Y::integer()} when This::wxWindow(). screenToClient(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScreenToClient_2, <>). %% @doc See external documentation. -spec screenToClient(This, Pt) -> {X::integer(), Y::integer()} when This::wxWindow(), Pt::{X::integer(), Y::integer()}. screenToClient(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY}) when is_integer(PtX),is_integer(PtY) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScreenToClient_1, <>). %% @doc See external documentation. -spec scrollLines(This, Lines) -> boolean() when This::wxWindow(), Lines::integer(). scrollLines(#wx_ref{type=ThisT,ref=ThisRef},Lines) when is_integer(Lines) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScrollLines, <>). %% @doc See external documentation. -spec scrollPages(This, Pages) -> boolean() when This::wxWindow(), Pages::integer(). scrollPages(#wx_ref{type=ThisT,ref=ThisRef},Pages) when is_integer(Pages) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScrollPages, <>). %% @equiv scrollWindow(This,Dx,Dy, []) -spec scrollWindow(This, Dx, Dy) -> ok when This::wxWindow(), Dx::integer(), Dy::integer(). scrollWindow(This,Dx,Dy) when is_record(This, wx_ref),is_integer(Dx),is_integer(Dy) -> scrollWindow(This,Dx,Dy, []). %% @doc See external documentation. -spec scrollWindow(This, Dx, Dy, [Option]) -> ok when This::wxWindow(), Dx::integer(), Dy::integer(), Option :: {rect, {X::integer(), Y::integer(), W::integer(), H::integer()}}. scrollWindow(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy, Options) when is_integer(Dx),is_integer(Dy),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({rect, {RectX,RectY,RectW,RectH}}, Acc) -> [<<1:32/?UI,RectX:32/?UI,RectY:32/?UI,RectW:32/?UI,RectH:32/?UI,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_ScrollWindow, <>). %% @doc See external documentation. -spec setAcceleratorTable(This, Accel) -> ok when This::wxWindow(), Accel::wxAcceleratorTable:wxAcceleratorTable(). setAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=AccelT,ref=AccelRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(AccelT,wxAcceleratorTable), wxe_util:cast(?wxWindow_SetAcceleratorTable, <>). %% @doc See external documentation. -spec setAutoLayout(This, AutoLayout) -> ok when This::wxWindow(), AutoLayout::boolean(). setAutoLayout(#wx_ref{type=ThisT,ref=ThisRef},AutoLayout) when is_boolean(AutoLayout) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetAutoLayout, <>). %% @doc See external documentation. -spec setBackgroundColour(This, Colour) -> boolean() when This::wxWindow(), Colour::wx:wx_colour(). setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_SetBackgroundColour, <>). %% @doc See external documentation. %%
Style = ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM -spec setBackgroundStyle(This, Style) -> boolean() when This::wxWindow(), Style::wx:wx_enum(). setBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_SetBackgroundStyle, <>). %% @doc See external documentation. -spec setCaret(This, Caret) -> ok when This::wxWindow(), Caret::wxCaret:wxCaret(). setCaret(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CaretT,ref=CaretRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(CaretT,wxCaret), wxe_util:cast(?wxWindow_SetCaret, <>). %% @doc See external documentation. %%
Also:
%% setClientSize(This, Rect) -> ok when
%% This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}.
%% -spec setClientSize(This, Size) -> ok when This::wxWindow(), Size::{W::integer(), H::integer()}; (This, Rect) -> ok when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}. setClientSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetClientSize_1_0, <>); setClientSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}) when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetClientSize_1_1, <>). %% @doc See external documentation. -spec setClientSize(This, Width, Height) -> ok when This::wxWindow(), Width::integer(), Height::integer(). setClientSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetClientSize_2, <>). %% @doc See external documentation. -spec setContainingSizer(This, Sizer) -> ok when This::wxWindow(), Sizer::wxSizer:wxSizer(). setContainingSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(SizerT,wxSizer), wxe_util:cast(?wxWindow_SetContainingSizer, <>). %% @doc See external documentation. -spec setCursor(This, Cursor) -> boolean() when This::wxWindow(), Cursor::wxCursor:wxCursor(). setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(CursorT,wxCursor), wxe_util:call(?wxWindow_SetCursor, <>). %% @doc See external documentation. -spec setMaxSize(This, MaxSize) -> ok when This::wxWindow(), MaxSize::{W::integer(), H::integer()}. setMaxSize(#wx_ref{type=ThisT,ref=ThisRef},{MaxSizeW,MaxSizeH}) when is_integer(MaxSizeW),is_integer(MaxSizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetMaxSize, <>). %% @doc See external documentation. -spec setMinSize(This, MinSize) -> ok when This::wxWindow(), MinSize::{W::integer(), H::integer()}. setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}) when is_integer(MinSizeW),is_integer(MinSizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetMinSize, <>). %% @doc See external documentation. -spec setOwnBackgroundColour(This, Colour) -> ok when This::wxWindow(), Colour::wx:wx_colour(). setOwnBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetOwnBackgroundColour, <>). %% @doc See external documentation. -spec setOwnFont(This, Font) -> ok when This::wxWindow(), Font::wxFont:wxFont(). setOwnFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(FontT,wxFont), wxe_util:cast(?wxWindow_SetOwnFont, <>). %% @doc See external documentation. -spec setOwnForegroundColour(This, Colour) -> ok when This::wxWindow(), Colour::wx:wx_colour(). setOwnForegroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetOwnForegroundColour, <>). %% @doc See external documentation. -spec setDropTarget(This, DropTarget) -> ok when This::wxWindow(), DropTarget::wx:wx_object(). setDropTarget(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DropTargetT,ref=DropTargetRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(DropTargetT,wxDropTarget), wxe_util:cast(?wxWindow_SetDropTarget, <>). %% @doc See external documentation. -spec setExtraStyle(This, ExStyle) -> ok when This::wxWindow(), ExStyle::integer(). setExtraStyle(#wx_ref{type=ThisT,ref=ThisRef},ExStyle) when is_integer(ExStyle) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetExtraStyle, <>). %% @doc See external documentation. -spec setFocus(This) -> ok when This::wxWindow(). setFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetFocus, <>). %% @doc See external documentation. -spec setFocusFromKbd(This) -> ok when This::wxWindow(). setFocusFromKbd(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetFocusFromKbd, <>). %% @doc See external documentation. -spec setFont(This, Font) -> boolean() when This::wxWindow(), Font::wxFont:wxFont(). setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(FontT,wxFont), wxe_util:call(?wxWindow_SetFont, <>). %% @doc See external documentation. -spec setForegroundColour(This, Colour) -> boolean() when This::wxWindow(), Colour::wx:wx_colour(). setForegroundColour(#wx_ref{type=ThisT,ref=ThisRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_SetForegroundColour, <>). %% @doc See external documentation. -spec setHelpText(This, Text) -> ok when This::wxWindow(), Text::unicode:chardata(). setHelpText(#wx_ref{type=ThisT,ref=ThisRef},Text) when is_list(Text) -> ?CLASS(ThisT,wxWindow), Text_UC = unicode:characters_to_binary([Text,0]), wxe_util:cast(?wxWindow_SetHelpText, <>). %% @doc See external documentation. -spec setId(This, Winid) -> ok when This::wxWindow(), Winid::integer(). setId(#wx_ref{type=ThisT,ref=ThisRef},Winid) when is_integer(Winid) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetId, <>). %% @doc See external documentation. -spec setLabel(This, Label) -> ok when This::wxWindow(), Label::unicode:chardata(). setLabel(#wx_ref{type=ThisT,ref=ThisRef},Label) when is_list(Label) -> ?CLASS(ThisT,wxWindow), Label_UC = unicode:characters_to_binary([Label,0]), wxe_util:cast(?wxWindow_SetLabel, <>). %% @doc See external documentation. -spec setName(This, Name) -> ok when This::wxWindow(), Name::unicode:chardata(). setName(#wx_ref{type=ThisT,ref=ThisRef},Name) when is_list(Name) -> ?CLASS(ThisT,wxWindow), Name_UC = unicode:characters_to_binary([Name,0]), wxe_util:cast(?wxWindow_SetName, <>). %% @doc See external documentation. -spec setPalette(This, Pal) -> ok when This::wxWindow(), Pal::wxPalette:wxPalette(). setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PalT,ref=PalRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(PalT,wxPalette), wxe_util:cast(?wxWindow_SetPalette, <>). %% @equiv setScrollbar(This,Orient,Pos,ThumbVisible,Range, []) -spec setScrollbar(This, Orient, Pos, ThumbVisible, Range) -> ok when This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer(). setScrollbar(This,Orient,Pos,ThumbVisible,Range) when is_record(This, wx_ref),is_integer(Orient),is_integer(Pos),is_integer(ThumbVisible),is_integer(Range) -> setScrollbar(This,Orient,Pos,ThumbVisible,Range, []). %% @doc See external documentation. -spec setScrollbar(This, Orient, Pos, ThumbVisible, Range, [Option]) -> ok when This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer(), Option :: {refresh, boolean()}. setScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient,Pos,ThumbVisible,Range, Options) when is_integer(Orient),is_integer(Pos),is_integer(ThumbVisible),is_integer(Range),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({refresh, Refresh}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Refresh)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetScrollbar, <>). %% @equiv setScrollPos(This,Orient,Pos, []) -spec setScrollPos(This, Orient, Pos) -> ok when This::wxWindow(), Orient::integer(), Pos::integer(). setScrollPos(This,Orient,Pos) when is_record(This, wx_ref),is_integer(Orient),is_integer(Pos) -> setScrollPos(This,Orient,Pos, []). %% @doc See external documentation. -spec setScrollPos(This, Orient, Pos, [Option]) -> ok when This::wxWindow(), Orient::integer(), Pos::integer(), Option :: {refresh, boolean()}. setScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient,Pos, Options) when is_integer(Orient),is_integer(Pos),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({refresh, Refresh}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Refresh)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetScrollPos, <>). %% @doc See external documentation. %%
Also:
%% setSize(This, Size) -> ok when
%% This::wxWindow(), Size::{W::integer(), H::integer()}.
%% -spec setSize(This, Rect) -> ok when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}; (This, Size) -> ok when This::wxWindow(), Size::{W::integer(), H::integer()}. setSize(This,Rect={RectX,RectY,RectW,RectH}) when is_record(This, wx_ref),is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) -> setSize(This,Rect, []); setSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetSize_1, <>). %% @doc See external documentation. %%
Also:
%% setSize(This, Rect, [Option]) -> ok when
%% This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()},
%% Option :: {sizeFlags, integer()}.
%% -spec setSize(This, Width, Height) -> ok when This::wxWindow(), Width::integer(), Height::integer(); (This, Rect, [Option]) -> ok when This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, Option :: {sizeFlags, integer()}. setSize(#wx_ref{type=ThisT,ref=ThisRef},Width,Height) when is_integer(Width),is_integer(Height) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetSize_2_0, <>); setSize(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH}, Options) when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({sizeFlags, SizeFlags}, Acc) -> [<<1:32/?UI,SizeFlags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSize_2_1, <>). %% @equiv setSize(This,X,Y,Width,Height, []) -spec setSize(This, X, Y, Width, Height) -> ok when This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer(). setSize(This,X,Y,Width,Height) when is_record(This, wx_ref),is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height) -> setSize(This,X,Y,Width,Height, []). %% @doc See external documentation. -spec setSize(This, X, Y, Width, Height, [Option]) -> ok when This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer(), Option :: {sizeFlags, integer()}. setSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y,Width,Height, Options) when is_integer(X),is_integer(Y),is_integer(Width),is_integer(Height),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({sizeFlags, SizeFlags}, Acc) -> [<<1:32/?UI,SizeFlags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSize_5, <>). %% @equiv setSizeHints(This,MinSize, []) -spec setSizeHints(This, MinSize) -> ok when This::wxWindow(), MinSize::{W::integer(), H::integer()}. setSizeHints(This,MinSize={MinSizeW,MinSizeH}) when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) -> setSizeHints(This,MinSize, []). %% @doc See external documentation. %%
Also:
%% setSizeHints(This, MinSize, [Option]) -> ok when
%% This::wxWindow(), MinSize::{W::integer(), H::integer()},
%% Option :: {maxSize, {W::integer(), H::integer()}}
%% | {incSize, {W::integer(), H::integer()}}.
%% -spec setSizeHints(This, MinW, MinH) -> ok when This::wxWindow(), MinW::integer(), MinH::integer(); (This, MinSize, [Option]) -> ok when This::wxWindow(), MinSize::{W::integer(), H::integer()}, Option :: {maxSize, {W::integer(), H::integer()}} | {incSize, {W::integer(), H::integer()}}. setSizeHints(This,MinW,MinH) when is_record(This, wx_ref),is_integer(MinW),is_integer(MinH) -> setSizeHints(This,MinW,MinH, []); setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}, Options) when is_integer(MinSizeW),is_integer(MinSizeH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({maxSize, {MaxSizeW,MaxSizeH}}, Acc) -> [<<1:32/?UI,MaxSizeW:32/?UI,MaxSizeH:32/?UI,0:32>>|Acc]; ({incSize, {IncSizeW,IncSizeH}}, Acc) -> [<<2:32/?UI,IncSizeW:32/?UI,IncSizeH:32/?UI,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSizeHints_2, <>). %% @doc See external documentation. -spec setSizeHints(This, MinW, MinH, [Option]) -> ok when This::wxWindow(), MinW::integer(), MinH::integer(), Option :: {maxW, integer()} | {maxH, integer()} | {incW, integer()} | {incH, integer()}. setSizeHints(#wx_ref{type=ThisT,ref=ThisRef},MinW,MinH, Options) when is_integer(MinW),is_integer(MinH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({maxW, MaxW}, Acc) -> [<<1:32/?UI,MaxW:32/?UI>>|Acc]; ({maxH, MaxH}, Acc) -> [<<2:32/?UI,MaxH:32/?UI>>|Acc]; ({incW, IncW}, Acc) -> [<<3:32/?UI,IncW:32/?UI>>|Acc]; ({incH, IncH}, Acc) -> [<<4:32/?UI,IncH:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSizeHints_3, <>). %% @equiv setSizer(This,Sizer, []) -spec setSizer(This, Sizer) -> ok when This::wxWindow(), Sizer::wxSizer:wxSizer(). setSizer(This,Sizer) when is_record(This, wx_ref),is_record(Sizer, wx_ref) -> setSizer(This,Sizer, []). %% @doc See external documentation. -spec setSizer(This, Sizer, [Option]) -> ok when This::wxWindow(), Sizer::wxSizer:wxSizer(), Option :: {deleteOld, boolean()}. setSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), ?CLASS(SizerT,wxSizer), MOpts = fun({deleteOld, DeleteOld}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteOld)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSizer, <>). %% @equiv setSizerAndFit(This,Sizer, []) -spec setSizerAndFit(This, Sizer) -> ok when This::wxWindow(), Sizer::wxSizer:wxSizer(). setSizerAndFit(This,Sizer) when is_record(This, wx_ref),is_record(Sizer, wx_ref) -> setSizerAndFit(This,Sizer, []). %% @doc See external documentation. -spec setSizerAndFit(This, Sizer, [Option]) -> ok when This::wxWindow(), Sizer::wxSizer:wxSizer(), Option :: {deleteOld, boolean()}. setSizerAndFit(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), ?CLASS(SizerT,wxSizer), MOpts = fun({deleteOld, DeleteOld}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(DeleteOld)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetSizerAndFit, <>). %% @doc See external documentation. -spec setThemeEnabled(This, EnableTheme) -> ok when This::wxWindow(), EnableTheme::boolean(). setThemeEnabled(#wx_ref{type=ThisT,ref=ThisRef},EnableTheme) when is_boolean(EnableTheme) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetThemeEnabled, <>). %% @doc See external documentation. %%
Also:
%% setToolTip(This, Tip) -> ok when
%% This::wxWindow(), Tip::wxToolTip:wxToolTip().
%% -spec setToolTip(This, Tip) -> ok when This::wxWindow(), Tip::unicode:chardata(); (This, Tip) -> ok when This::wxWindow(), Tip::wxToolTip:wxToolTip(). setToolTip(#wx_ref{type=ThisT,ref=ThisRef},Tip) when is_list(Tip) -> ?CLASS(ThisT,wxWindow), Tip_UC = unicode:characters_to_binary([Tip,0]), wxe_util:cast(?wxWindow_SetToolTip_1_0, <>); setToolTip(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=TipT,ref=TipRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(TipT,wxToolTip), wxe_util:cast(?wxWindow_SetToolTip_1_1, <>). %% @doc See external documentation. -spec setVirtualSize(This, Size) -> ok when This::wxWindow(), Size::{W::integer(), H::integer()}. setVirtualSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetVirtualSize_1, <>). %% @doc See external documentation. -spec setVirtualSize(This, X, Y) -> ok when This::wxWindow(), X::integer(), Y::integer(). setVirtualSize(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetVirtualSize_2, <>). %% @equiv setVirtualSizeHints(This,MinSize, []) -spec setVirtualSizeHints(This, MinSize) -> ok when This::wxWindow(), MinSize::{W::integer(), H::integer()}. setVirtualSizeHints(This,MinSize={MinSizeW,MinSizeH}) when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) -> setVirtualSizeHints(This,MinSize, []). %% @doc See external documentation. %%
Also:
%% setVirtualSizeHints(This, MinSize, [Option]) -> ok when
%% This::wxWindow(), MinSize::{W::integer(), H::integer()},
%% Option :: {maxSize, {W::integer(), H::integer()}}.
%% -spec setVirtualSizeHints(This, MinW, MinH) -> ok when This::wxWindow(), MinW::integer(), MinH::integer(); (This, MinSize, [Option]) -> ok when This::wxWindow(), MinSize::{W::integer(), H::integer()}, Option :: {maxSize, {W::integer(), H::integer()}}. setVirtualSizeHints(This,MinW,MinH) when is_record(This, wx_ref),is_integer(MinW),is_integer(MinH) -> setVirtualSizeHints(This,MinW,MinH, []); setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}, Options) when is_integer(MinSizeW),is_integer(MinSizeH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({maxSize, {MaxSizeW,MaxSizeH}}, Acc) -> [<<1:32/?UI,MaxSizeW:32/?UI,MaxSizeH:32/?UI,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetVirtualSizeHints_2, <>). %% @doc See external documentation. -spec setVirtualSizeHints(This, MinW, MinH, [Option]) -> ok when This::wxWindow(), MinW::integer(), MinH::integer(), Option :: {maxW, integer()} | {maxH, integer()}. setVirtualSizeHints(#wx_ref{type=ThisT,ref=ThisRef},MinW,MinH, Options) when is_integer(MinW),is_integer(MinH),is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({maxW, MaxW}, Acc) -> [<<1:32/?UI,MaxW:32/?UI>>|Acc]; ({maxH, MaxH}, Acc) -> [<<2:32/?UI,MaxH:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_SetVirtualSizeHints_3, <>). %% @doc See external documentation. -spec setWindowStyle(This, Style) -> ok when This::wxWindow(), Style::integer(). setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowStyle, <>). %% @doc See external documentation. -spec setWindowStyleFlag(This, Style) -> ok when This::wxWindow(), Style::integer(). setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowStyleFlag, <>). %% @doc See external documentation. %%
Variant = ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX -spec setWindowVariant(This, Variant) -> ok when This::wxWindow(), Variant::wx:wx_enum(). setWindowVariant(#wx_ref{type=ThisT,ref=ThisRef},Variant) when is_integer(Variant) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowVariant, <>). %% @doc See external documentation. -spec shouldInheritColours(This) -> boolean() when This::wxWindow(). shouldInheritColours(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ShouldInheritColours, <>). %% @equiv show(This, []) -spec show(This) -> boolean() when This::wxWindow(). show(This) when is_record(This, wx_ref) -> show(This, []). %% @doc See external documentation. -spec show(This, [Option]) -> boolean() when This::wxWindow(), Option :: {show, boolean()}. show(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({show, Show}, Acc) -> [<<1:32/?UI,(wxe_util:from_bool(Show)):32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxWindow_Show, <>). %% @doc See external documentation. -spec thaw(This) -> ok when This::wxWindow(). thaw(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Thaw, <>). %% @doc See external documentation. -spec transferDataFromWindow(This) -> boolean() when This::wxWindow(). transferDataFromWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_TransferDataFromWindow, <>). %% @doc See external documentation. -spec transferDataToWindow(This) -> boolean() when This::wxWindow(). transferDataToWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_TransferDataToWindow, <>). %% @doc See external documentation. -spec update(This) -> ok when This::wxWindow(). update(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Update, <>). %% @equiv updateWindowUI(This, []) -spec updateWindowUI(This) -> ok when This::wxWindow(). updateWindowUI(This) when is_record(This, wx_ref) -> updateWindowUI(This, []). %% @doc See external documentation. -spec updateWindowUI(This, [Option]) -> ok when This::wxWindow(), Option :: {flags, integer()}. updateWindowUI(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxWindow), MOpts = fun({flags, Flags}, Acc) -> [<<1:32/?UI,Flags:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxWindow_UpdateWindowUI, <>). %% @doc See external documentation. -spec validate(This) -> boolean() when This::wxWindow(). validate(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Validate, <>). %% @doc See external documentation. -spec warpPointer(This, X, Y) -> ok when This::wxWindow(), X::integer(), Y::integer(). warpPointer(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_WarpPointer, <>). %% @doc Destroys this object, do not use object again -spec destroy(This::wxWindow()) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), ok. %% From wxEvtHandler %% @hidden disconnect(This,EventType, Options) -> wxEvtHandler:disconnect(This,EventType, Options). %% @hidden disconnect(This,EventType) -> wxEvtHandler:disconnect(This,EventType). %% @hidden disconnect(This) -> wxEvtHandler:disconnect(This). %% @hidden connect(This,EventType, Options) -> wxEvtHandler:connect(This,EventType, Options). %% @hidden connect(This,EventType) -> wxEvtHandler:connect(This,EventType).