/**
@class wxTopLevelWindow
- @wxheader{toplevel.h}
wxTopLevelWindow is a common base class for wxDialog and wxFrame. It is an
abstract base class meaning that you never work with objects of this class
(including GTK+) where the window manager may not support this operation
and there is no way to find out.
*/
- bool EnableCloseButton(bool enable = true);
+ virtual bool EnableCloseButton(bool enable = true);
/**
Returns a pointer to the button which is the default for this window, or
@see GetIcons()
*/
- const wxIcon GetIcon() const;
+ wxIcon GetIcon() const;
/**
Returns all icons associated with the window, there will be none of them
@see wxIconBundle
*/
- const wxIconBundle GetIcons() const;
+ const wxIconBundle& GetIcons() const;
/**
Gets a string containing the window title.
@see SetTitle()
*/
- wxString GetTitle() const;
+ virtual wxString GetTitle() const;
/**
Unique to the wxWinCE port. Responds to showing/hiding SIP (soft input
@see IsIconized(), Maximize(), wxIconizeEvent.
*/
- void Iconize(bool iconize);
+ virtual void Iconize(bool iconize = true);
/**
Returns @true if this window is currently active, i.e. if the user is
currently working with it.
*/
- bool IsActive() const;
+ virtual bool IsActive();
/**
Returns @true if this window is expected to be always maximized, either
@see ShowFullScreen()
*/
- bool IsFullScreen();
+ virtual bool IsFullScreen() const;
/**
Returns @true if the window is iconized.
*/
- bool IsIconized() const;
+ virtual bool IsIconized() const;
/**
Returns @true if the window is maximized.
*/
- bool IsMaximized() const;
+ virtual bool IsMaximized() const;
/**
This method is specific to wxUniversal port.
@see Iconize()
*/
- void Maximize(bool maximize);
+ virtual void Maximize(bool maximize = true);
/**
Use a system-dependent way to attract users attention to the window when
supporting it.
*/
- void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
+ virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
/**
Changes the default item for the panel, usually @a win is a button.
@see GetDefaultItem()
*/
- void SetDefaultItem(wxWindow* win);
+ wxWindow* SetDefaultItem(wxWindow* win);
/**
Sets the icon for this window.
reference counting, the copy is very quick. It is safe to
delete @a icon after calling this function.
- @see wxIcon
+ @note In wxMSW, @a icon must be either 16x16 or 32x32 icon.
+
+ @see wxIcon, SetIcons()
*/
void SetIcon(const wxIcon& icon);
@param icons
The icons to associate with this window.
- @see wxIconBundle.
+ @note In wxMSW, @a icons must contain a 16x16 or 32x32 icon,
+ preferably both.
+
+ @see wxIconBundle
*/
- void SetIcons(const wxIconBundle& icons);
+ virtual void SetIcons(const wxIconBundle& icons);
/**
Sets action or menu activated by pressing left hardware button on the
/**
A simpler interface for setting the size hints than SetSizeHints().
*/
- void SetMaxSize(const wxSize& size);
+ virtual void SetMaxSize(const wxSize& size);
/**
A simpler interface for setting the size hints than SetSizeHints().
*/
- void SetMinSize(const wxSize& size);
+ virtual void SetMinSize(const wxSize& size);
/**
Sets action or menu activated by pressing right hardware button on the
Identifier for this button.
@param label
Text to be displayed on the screen area dedicated to this hardware
- button.
+ button.
@param subMenu
The menu to be opened after pressing this hardware button.
window to the normal rectangular shape simply call SetShape() again with
an empty wxRegion. Returns @true if the operation is successful.
*/
- bool SetShape(const wxRegion& region);
+ virtual bool SetShape(const wxRegion& region);
/**
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), no
constraints will be used.
+ @param minW
+ The minimum width.
+ @param minH
+ The minimum height.
+ @param maxW
+ The maximum width.
+ @param maxH
+ The maximum height.
@param incW
Specifies the increment for sizing the width (GTK/Motif/Xt only).
@param incH
wxWindow::SetSize().
*/
- virtual void SetSizeHints(int minW, int minH, int maxW = -1,
- int maxH = -1,
- int incW = -1,
- int incH = -1);
+ virtual void SetSizeHints(int minW, int minH,
+ int maxW = -1, int maxH = -1,
+ int incW = -1, int incH = -1);
/**
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), no
constraints will be used.
+ @param minSize
+ The minimum size of the window.
+ @param maxSize
+ The maximum size of the window.
@param incSize
Increment size (only taken into account under X11-based ports such
as wxGTK/wxMotif/wxX11).
fully transparent, and a value of 255 sets the window to be fully
opaque.
*/
- virtual bool SetTransparent(int alpha);
+ virtual bool SetTransparent(wxByte alpha);
/**
This virtual function is not meant to be called directly but can be
@see IsFullScreen()
*/
- bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
+ virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
/**
This method is specific to wxUniversal port.
decorations are used by default and so it may make sense to call this
method with default argument if the application can't use custom
decorations at all for some reason.
-
+
@see UseNativeDecorations()
*/
void UseNativeDecorationsByDefault(bool native = true);