%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2008-2011. 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]). %% @hidden parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec () -> wxWindow() %% @doc See external documentation. new() -> wxe_util:construct(?wxWindow_new_0, <<>>). %% @spec (Parent::wxWindow(), Id::integer()) -> wxWindow() %% @equiv new(Parent,Id, []) new(Parent,Id) when is_record(Parent, wx_ref),is_integer(Id) -> new(Parent,Id, []). %% @spec (Parent::wxWindow(), Id::integer(), [Option]) -> wxWindow() %% Option = {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Size::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. cacheBestSize(#wx_ref{type=ThisT,ref=ThisRef},{SizeW,SizeH}) when is_integer(SizeW),is_integer(SizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_CacheBestSize, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. captureMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_CaptureMouse, <>). %% @spec (This::wxWindow()) -> ok %% @equiv center(This, []) center(This) when is_record(This, wx_ref) -> center(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {dir, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @equiv centerOnParent(This, []) centerOnParent(This) when is_record(This, wx_ref) -> centerOnParent(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {dir, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @equiv centre(This, []) centre(This) when is_record(This, wx_ref) -> centre(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {dir, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @equiv centreOnParent(This, []) centreOnParent(This) when is_record(This, wx_ref) -> centreOnParent(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {dir, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. clearBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_ClearBackground, <>). %% @spec (This::wxWindow(), Pt::{X::integer(), Y::integer()}) -> {X::integer(), Y::integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer()) -> {X::integer(), Y::integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> bool() %% @equiv close(This, []) close(This) when is_record(This, wx_ref) -> close(This, []). %% @spec (This::wxWindow(), [Option]) -> bool() %% Option = {force, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Sz::{W::integer(), H::integer()}) -> {W::integer(), H::integer()} %% @doc See external documentation. convertDialogToPixels(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) when is_integer(SzW),is_integer(SzH) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ConvertDialogToPixels, <>). %% @spec (This::wxWindow(), Sz::{W::integer(), H::integer()}) -> {W::integer(), H::integer()} %% @doc See external documentation. convertPixelsToDialog(#wx_ref{type=ThisT,ref=ThisRef},{SzW,SzH}) when is_integer(SzW),is_integer(SzH) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ConvertPixelsToDialog, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. 'Destroy'(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Destroy, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. destroyChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_DestroyChildren, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. disable(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Disable, <>). %% @spec (This::wxWindow()) -> bool() %% @equiv enable(This, []) enable(This) when is_record(This, wx_ref) -> enable(This, []). %% @spec (This::wxWindow(), [Option]) -> bool() %% Option = {enable, bool()} %% @doc See external documentation. 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, <>). %% @spec () -> wxWindow() %% @doc See external documentation. findFocus() -> wxe_util:call(?wxWindow_FindFocus, <<>>). %% @spec (This::wxWindow(),X::integer()|string()) -> wxWindow() %% @doc See external documentation. %%
Alternatives: %%

%% findWindow(This::wxWindow(), Winid::integer()) -> wxWindow() %%

%%

%% findWindow(This::wxWindow(), Name::string()) -> wxWindow() %%

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, <>). %% @spec (Winid::integer()) -> wxWindow() %% @equiv findWindowById(Winid, []) findWindowById(Winid) when is_integer(Winid) -> findWindowById(Winid, []). %% @spec (Winid::integer(), [Option]) -> wxWindow() %% Option = {parent, wxWindow()} %% @doc See external documentation. 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, <>). %% @spec (Name::string()) -> wxWindow() %% @equiv findWindowByName(Name, []) findWindowByName(Name) when is_list(Name) -> findWindowByName(Name, []). %% @spec (Name::string(), [Option]) -> wxWindow() %% Option = {parent, wxWindow()} %% @doc See external documentation. 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>>). %% @spec (Label::string()) -> wxWindow() %% @equiv findWindowByLabel(Label, []) findWindowByLabel(Label) when is_list(Label) -> findWindowByLabel(Label, []). %% @spec (Label::string(), [Option]) -> wxWindow() %% Option = {parent, wxWindow()} %% @doc See external documentation. 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>>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. fit(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Fit, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. fitInside(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_FitInside, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. freeze(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Freeze, <>). %% @spec (This::wxWindow()) -> wxAcceleratorTable:wxAcceleratorTable() %% @doc See external documentation. getAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetAcceleratorTable, <>). %% @spec (This::wxWindow()) -> wx:colour() %% @doc See external documentation. getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBackgroundColour, <>). %% @spec (This::wxWindow()) -> WxBackgroundStyle %% WxBackgroundStyle = integer() %% @doc See external documentation. %%
WxBackgroundStyle is one of ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM getBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBackgroundStyle, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetBestSize, <>). %% @spec (This::wxWindow()) -> wxCaret:wxCaret() %% @doc See external documentation. getCaret(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCaret, <>). %% @spec () -> wxWindow() %% @doc See external documentation. getCapture() -> wxe_util:call(?wxWindow_GetCapture, <<>>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getCharHeight(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCharHeight, <>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getCharWidth(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCharWidth, <>). %% @spec (This::wxWindow()) -> [wxWindow()] %% @doc See external documentation. getChildren(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetChildren, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getClientSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetClientSize, <>). %% @spec (This::wxWindow()) -> wxSizer:wxSizer() %% @doc See external documentation. getContainingSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetContainingSizer, <>). %% @spec (This::wxWindow()) -> wxCursor:wxCursor() %% @doc See external documentation. getCursor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetCursor, <>). %% @spec (This::wxWindow()) -> wxDropTarget:wxDropTarget() %% @doc See external documentation. getDropTarget(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetDropTarget, <>). %% @spec (This::wxWindow()) -> wxEvtHandler:wxEvtHandler() %% @doc See external documentation. getEventHandler(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetEventHandler, <>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getExtraStyle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetExtraStyle, <>). %% @spec (This::wxWindow()) -> wxFont:wxFont() %% @doc See external documentation. getFont(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetFont, <>). %% @spec (This::wxWindow()) -> wx:colour() %% @doc See external documentation. getForegroundColour(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetForegroundColour, <>). %% @spec (This::wxWindow()) -> wxWindow() %% @doc See external documentation. getGrandParent(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetGrandParent, <>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getHandle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetHandle, <>). %% @spec (This::wxWindow()) -> string() %% @doc See external documentation. getHelpText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetHelpText, <>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getId(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetId, <>). %% @spec (This::wxWindow()) -> string() %% @doc See external documentation. getLabel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetLabel, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getMaxSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetMaxSize, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getMinSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetMinSize, <>). %% @spec (This::wxWindow()) -> string() %% @doc See external documentation. getName(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetName, <>). %% @spec (This::wxWindow()) -> wxWindow() %% @doc See external documentation. getParent(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetParent, <>). %% @spec (This::wxWindow()) -> {X::integer(), Y::integer()} %% @doc See external documentation. getPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetPosition, <>). %% @spec (This::wxWindow()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. getRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetRect, <>). %% @spec (This::wxWindow()) -> {X::integer(), Y::integer()} %% @doc See external documentation. getScreenPosition(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScreenPosition, <>). %% @spec (This::wxWindow()) -> {X::integer(), Y::integer(), W::integer(), H::integer()} %% @doc See external documentation. getScreenRect(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScreenRect, <>). %% @spec (This::wxWindow(), Orient::integer()) -> integer() %% @doc See external documentation. getScrollPos(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollPos, <>). %% @spec (This::wxWindow(), Orient::integer()) -> integer() %% @doc See external documentation. getScrollRange(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollRange, <>). %% @spec (This::wxWindow(), Orient::integer()) -> integer() %% @doc See external documentation. getScrollThumb(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetScrollThumb, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetSize, <>). %% @spec (This::wxWindow()) -> wxSizer:wxSizer() %% @doc See external documentation. getSizer(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetSizer, <>). %% @spec (This::wxWindow(), String::string()) -> {X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()} %% @equiv getTextExtent(This,String, []) getTextExtent(This,String) when is_record(This, wx_ref),is_list(String) -> getTextExtent(This,String, []). %% @spec (This::wxWindow(), String::string(), [Option]) -> {X::integer(), Y::integer(), Descent::integer(), ExternalLeading::integer()} %% Option = {theFont, wxFont:wxFont()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> wxToolTip:wxToolTip() %% @doc See external documentation. getToolTip(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetToolTip, <>). %% @spec (This::wxWindow()) -> wxRegion:wxRegion() %% @doc See external documentation. getUpdateRegion(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetUpdateRegion, <>). %% @spec (This::wxWindow()) -> {W::integer(), H::integer()} %% @doc See external documentation. getVirtualSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetVirtualSize, <>). %% @spec (This::wxWindow()) -> integer() %% @doc See external documentation. getWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetWindowStyleFlag, <>). %% @spec (This::wxWindow()) -> WxWindowVariant %% WxWindowVariant = integer() %% @doc See external documentation. %%
WxWindowVariant is one of ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX getWindowVariant(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_GetWindowVariant, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. hasCapture(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasCapture, <>). %% @spec (This::wxWindow(), Orient::integer()) -> bool() %% @doc See external documentation. hasScrollbar(#wx_ref{type=ThisT,ref=ThisRef},Orient) when is_integer(Orient) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasScrollbar, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. hasTransparentBackground(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_HasTransparentBackground, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. hide(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Hide, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. inheritAttributes(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InheritAttributes, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. initDialog(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InitDialog, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. invalidateBestSize(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_InvalidateBestSize, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. isEnabled(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsEnabled, <>). %% @spec (This::wxWindow(),X::term()) -> bool() %% @doc See external documentation. %%
Alternatives: %%

%% isExposed(This::wxWindow(), Pt::{X::integer(), Y::integer()}) -> bool() %%

%%

%% isExposed(This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> bool() %%

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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer()) -> bool() %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer(), W::integer(), H::integer()) -> bool() %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. isRetained(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsRetained, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. isShown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsShown, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. isTopLevel(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_IsTopLevel, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. layout(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Layout, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. lineDown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_LineDown, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. lineUp(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_LineUp, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. lower(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Lower, <>). %% @spec (This::wxWindow()) -> ok %% @equiv makeModal(This, []) makeModal(This) when is_record(This, wx_ref) -> makeModal(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {modal, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Pt::{X::integer(), Y::integer()}) -> ok %% @equiv move(This,Pt, []) move(This,Pt={PtX,PtY}) when is_record(This, wx_ref),is_integer(PtX),is_integer(PtY) -> move(This,Pt, []). %% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% move(This::wxWindow(), X::integer(), Y::integer()) -> move(This,X,Y, [])

%%

%% move(This::wxWindow(), Pt::{X::integer(), Y::integer()}, [Option]) -> ok %%
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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer(), [Option]) -> ok %% Option = {flags, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Win::wxWindow()) -> ok %% @doc See external documentation. moveAfterInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(WinT,wxWindow), wxe_util:cast(?wxWindow_MoveAfterInTabOrder, <>). %% @spec (This::wxWindow(), Win::wxWindow()) -> ok %% @doc See external documentation. moveBeforeInTabOrder(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=WinT,ref=WinRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(WinT,wxWindow), wxe_util:cast(?wxWindow_MoveBeforeInTabOrder, <>). %% @spec (This::wxWindow()) -> bool() %% @equiv navigate(This, []) navigate(This) when is_record(This, wx_ref) -> navigate(This, []). %% @spec (This::wxWindow(), [Option]) -> bool() %% Option = {flags, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. pageDown(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_PageDown, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. pageUp(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_PageUp, <>). %% @spec (This::wxWindow()) -> wxEvtHandler:wxEvtHandler() %% @equiv popEventHandler(This, []) popEventHandler(This) when is_record(This, wx_ref) -> popEventHandler(This, []). %% @spec (This::wxWindow(), [Option]) -> wxEvtHandler:wxEvtHandler() %% Option = {deleteHandler, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Menu::wxMenu:wxMenu()) -> bool() %% @equiv popupMenu(This,Menu, []) popupMenu(This,Menu) when is_record(This, wx_ref),is_record(Menu, wx_ref) -> popupMenu(This,Menu, []). %% @spec (This::wxWindow(), Menu::wxMenu:wxMenu(), [Option]) -> bool() %% Option = {pos, {X::integer(), Y::integer()}} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Menu::wxMenu:wxMenu(), X::integer(), Y::integer()) -> bool() %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. raise(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Raise, <>). %% @spec (This::wxWindow()) -> ok %% @equiv refresh(This, []) refresh(This) when is_record(This, wx_ref) -> refresh(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {eraseBackground, bool()} | {rect, {X::integer(), Y::integer(), W::integer(), H::integer()}} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> ok %% @equiv refreshRect(This,Rect, []) 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, []). %% @spec (This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, [Option]) -> ok %% Option = {eraseBackground, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. releaseMouse(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_ReleaseMouse, <>). %% @spec (This::wxWindow(), Child::wxWindow()) -> ok %% @doc See external documentation. removeChild(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=ChildT,ref=ChildRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(ChildT,wxWindow), wxe_util:cast(?wxWindow_RemoveChild, <>). %% @spec (This::wxWindow(), NewParent::wxWindow()) -> bool() %% @doc See external documentation. reparent(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=NewParentT,ref=NewParentRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(NewParentT,wxWindow), wxe_util:call(?wxWindow_Reparent, <>). %% @spec (This::wxWindow()) -> {X::integer(), Y::integer()} %% @doc See external documentation. screenToClient(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScreenToClient_2, <>). %% @spec (This::wxWindow(), Pt::{X::integer(), Y::integer()}) -> {X::integer(), Y::integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Lines::integer()) -> bool() %% @doc See external documentation. scrollLines(#wx_ref{type=ThisT,ref=ThisRef},Lines) when is_integer(Lines) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScrollLines, <>). %% @spec (This::wxWindow(), Pages::integer()) -> bool() %% @doc See external documentation. scrollPages(#wx_ref{type=ThisT,ref=ThisRef},Pages) when is_integer(Pages) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ScrollPages, <>). %% @spec (This::wxWindow(), Dx::integer(), Dy::integer()) -> ok %% @equiv scrollWindow(This,Dx,Dy, []) scrollWindow(This,Dx,Dy) when is_record(This, wx_ref),is_integer(Dx),is_integer(Dy) -> scrollWindow(This,Dx,Dy, []). %% @spec (This::wxWindow(), Dx::integer(), Dy::integer(), [Option]) -> ok %% Option = {rect, {X::integer(), Y::integer(), W::integer(), H::integer()}} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Accel::wxAcceleratorTable:wxAcceleratorTable()) -> ok %% @doc See external documentation. setAcceleratorTable(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=AccelT,ref=AccelRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(AccelT,wxAcceleratorTable), wxe_util:cast(?wxWindow_SetAcceleratorTable, <>). %% @spec (This::wxWindow(), AutoLayout::bool()) -> ok %% @doc See external documentation. setAutoLayout(#wx_ref{type=ThisT,ref=ThisRef},AutoLayout) when is_boolean(AutoLayout) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetAutoLayout, <>). %% @spec (This::wxWindow(), Colour::wx:colour()) -> bool() %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Style::WxBackgroundStyle) -> bool() %% WxBackgroundStyle = integer() %% @doc See external documentation. %%
WxBackgroundStyle is one of ?wxBG_STYLE_SYSTEM | ?wxBG_STYLE_COLOUR | ?wxBG_STYLE_CUSTOM setBackgroundStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_SetBackgroundStyle, <>). %% @spec (This::wxWindow(), Caret::wxCaret:wxCaret()) -> ok %% @doc See external documentation. setCaret(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CaretT,ref=CaretRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(CaretT,wxCaret), wxe_util:cast(?wxWindow_SetCaret, <>). %% @spec (This::wxWindow(),X::term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setClientSize(This::wxWindow(), Size::{W::integer(), H::integer()}) -> ok %%

%%

%% setClientSize(This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> ok %%

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, <>). %% @spec (This::wxWindow(), Width::integer(), Height::integer()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok %% @doc See external documentation. setContainingSizer(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=SizerT,ref=SizerRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(SizerT,wxSizer), wxe_util:cast(?wxWindow_SetContainingSizer, <>). %% @spec (This::wxWindow(), Cursor::wxCursor:wxCursor()) -> bool() %% @doc See external documentation. setCursor(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=CursorT,ref=CursorRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(CursorT,wxCursor), wxe_util:call(?wxWindow_SetCursor, <>). %% @spec (This::wxWindow(), MaxSize::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. setMaxSize(#wx_ref{type=ThisT,ref=ThisRef},{MaxSizeW,MaxSizeH}) when is_integer(MaxSizeW),is_integer(MaxSizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetMaxSize, <>). %% @spec (This::wxWindow(), MinSize::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. setMinSize(#wx_ref{type=ThisT,ref=ThisRef},{MinSizeW,MinSizeH}) when is_integer(MinSizeW),is_integer(MinSizeH) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetMinSize, <>). %% @spec (This::wxWindow(), Colour::wx:colour()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> ok %% @doc See external documentation. setOwnFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(FontT,wxFont), wxe_util:cast(?wxWindow_SetOwnFont, <>). %% @spec (This::wxWindow(), Colour::wx:colour()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), DropTarget::wxDropTarget:wxDropTarget()) -> ok %% @doc See external documentation. setDropTarget(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=DropTargetT,ref=DropTargetRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(DropTargetT,wxDropTarget), wxe_util:cast(?wxWindow_SetDropTarget, <>). %% @spec (This::wxWindow(), ExStyle::integer()) -> ok %% @doc See external documentation. setExtraStyle(#wx_ref{type=ThisT,ref=ThisRef},ExStyle) when is_integer(ExStyle) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetExtraStyle, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. setFocus(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetFocus, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. setFocusFromKbd(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetFocusFromKbd, <>). %% @spec (This::wxWindow(), Font::wxFont:wxFont()) -> bool() %% @doc See external documentation. setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(FontT,wxFont), wxe_util:call(?wxWindow_SetFont, <>). %% @spec (This::wxWindow(), Colour::wx:colour()) -> bool() %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Text::string()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Winid::integer()) -> ok %% @doc See external documentation. setId(#wx_ref{type=ThisT,ref=ThisRef},Winid) when is_integer(Winid) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetId, <>). %% @spec (This::wxWindow(), Label::string()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Name::string()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Pal::wxPalette:wxPalette()) -> ok %% @doc See external documentation. setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PalT,ref=PalRef}) -> ?CLASS(ThisT,wxWindow), ?CLASS(PalT,wxPalette), wxe_util:cast(?wxWindow_SetPalette, <>). %% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer()) -> ok %% @equiv setScrollbar(This,Orient,Pos,ThumbVisible,Range, []) 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, []). %% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), ThumbVisible::integer(), Range::integer(), [Option]) -> ok %% Option = {refresh, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Orient::integer(), Pos::integer()) -> ok %% @equiv setScrollPos(This,Orient,Pos, []) setScrollPos(This,Orient,Pos) when is_record(This, wx_ref),is_integer(Orient),is_integer(Pos) -> setScrollPos(This,Orient,Pos, []). %% @spec (This::wxWindow(), Orient::integer(), Pos::integer(), [Option]) -> ok %% Option = {refresh, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(),X::term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setSize(This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> setSize(This,Rect, [])

%%

%% setSize(This::wxWindow(), Size::{W::integer(), H::integer()}) -> ok %%

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, <>). %% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setSize(This::wxWindow(), Width::integer(), Height::integer()) -> ok %%

%%

%% setSize(This::wxWindow(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, [Option]) -> ok %%
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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer()) -> ok %% @equiv setSize(This,X,Y,Width,Height, []) 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, []). %% @spec (This::wxWindow(), X::integer(), Y::integer(), Width::integer(), Height::integer(), [Option]) -> ok %% Option = {sizeFlags, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), MinSize::{W::integer(), H::integer()}) -> ok %% @equiv setSizeHints(This,MinSize, []) setSizeHints(This,MinSize={MinSizeW,MinSizeH}) when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) -> setSizeHints(This,MinSize, []). %% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setSizeHints(This,MinW,MinH, [])

%%

%% setSizeHints(This::wxWindow(), MinSize::{W::integer(), H::integer()}, [Option]) -> ok %%
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, <>). %% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok %% Option = {maxW, integer()} | {maxH, integer()} | {incW, integer()} | {incH, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok %% @equiv setSizer(This,Sizer, []) setSizer(This,Sizer) when is_record(This, wx_ref),is_record(Sizer, wx_ref) -> setSizer(This,Sizer, []). %% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer(), [Option]) -> ok %% Option = {deleteOld, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer()) -> ok %% @equiv setSizerAndFit(This,Sizer, []) setSizerAndFit(This,Sizer) when is_record(This, wx_ref),is_record(Sizer, wx_ref) -> setSizerAndFit(This,Sizer, []). %% @spec (This::wxWindow(), Sizer::wxSizer:wxSizer(), [Option]) -> ok %% Option = {deleteOld, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), EnableTheme::bool()) -> ok %% @doc See external documentation. setThemeEnabled(#wx_ref{type=ThisT,ref=ThisRef},EnableTheme) when is_boolean(EnableTheme) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetThemeEnabled, <>). %% @spec (This::wxWindow(),X::string()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setToolTip(This::wxWindow(), Tip::string()) -> ok %%

%%

%% setToolTip(This::wxWindow(), Tip::wxToolTip:wxToolTip()) -> ok %%

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, <>). %% @spec (This::wxWindow(), Size::{W::integer(), H::integer()}) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), MinSize::{W::integer(), H::integer()}) -> ok %% @equiv setVirtualSizeHints(This,MinSize, []) setVirtualSizeHints(This,MinSize={MinSizeW,MinSizeH}) when is_record(This, wx_ref),is_integer(MinSizeW),is_integer(MinSizeH) -> setVirtualSizeHints(This,MinSize, []). %% @spec (This::wxWindow(),X::integer()|term(),X::integer()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% setVirtualSizeHints(This::wxWindow(), MinW::integer(), MinH::integer()) -> setVirtualSizeHints(This,MinW,MinH, [])

%%

%% setVirtualSizeHints(This::wxWindow(), MinSize::{W::integer(), H::integer()}, [Option]) -> ok %%
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, <>). %% @spec (This::wxWindow(), MinW::integer(), MinH::integer(), [Option]) -> ok %% Option = {maxW, integer()} | {maxH, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow(), Style::integer()) -> ok %% @doc See external documentation. setWindowStyle(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowStyle, <>). %% @spec (This::wxWindow(), Style::integer()) -> ok %% @doc See external documentation. setWindowStyleFlag(#wx_ref{type=ThisT,ref=ThisRef},Style) when is_integer(Style) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowStyleFlag, <>). %% @spec (This::wxWindow(), Variant::WxWindowVariant) -> ok %% WxWindowVariant = integer() %% @doc See external documentation. %%
WxWindowVariant is one of ?wxWINDOW_VARIANT_NORMAL | ?wxWINDOW_VARIANT_SMALL | ?wxWINDOW_VARIANT_MINI | ?wxWINDOW_VARIANT_LARGE | ?wxWINDOW_VARIANT_MAX setWindowVariant(#wx_ref{type=ThisT,ref=ThisRef},Variant) when is_integer(Variant) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_SetWindowVariant, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. shouldInheritColours(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_ShouldInheritColours, <>). %% @spec (This::wxWindow()) -> bool() %% @equiv show(This, []) show(This) when is_record(This, wx_ref) -> show(This, []). %% @spec (This::wxWindow(), [Option]) -> bool() %% Option = {show, bool()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. thaw(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Thaw, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. transferDataFromWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_TransferDataFromWindow, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. transferDataToWindow(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_TransferDataToWindow, <>). %% @spec (This::wxWindow()) -> ok %% @doc See external documentation. update(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_Update, <>). %% @spec (This::wxWindow()) -> ok %% @equiv updateWindowUI(This, []) updateWindowUI(This) when is_record(This, wx_ref) -> updateWindowUI(This, []). %% @spec (This::wxWindow(), [Option]) -> ok %% Option = {flags, integer()} %% @doc See external documentation. 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, <>). %% @spec (This::wxWindow()) -> bool() %% @doc See external documentation. validate(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxWindow), wxe_util:call(?wxWindow_Validate, <>). %% @spec (This::wxWindow(), X::integer(), Y::integer()) -> ok %% @doc See external documentation. warpPointer(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_integer(X),is_integer(Y) -> ?CLASS(ThisT,wxWindow), wxe_util:cast(?wxWindow_WarpPointer, <>). %% @spec (This::wxWindow()) -> ok %% @doc Destroys this object, do not use object again 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).