/////////////////////////////////////////////////////////////////////////////
// Name: laywin.h
-// Purpose: documentation for wxLayoutAlgorithm class
+// Purpose: interface of wxLayoutAlgorithm
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
@library{wxadv}
@category{winlayout}
- @seealso
- wxSashEvent, wxSashLayoutWindow, @ref overview_eventhandlingoverview
+ @see wxSashEvent, wxSashLayoutWindow, @ref overview_eventhandlingoverview
*/
class wxLayoutAlgorithm : public wxObject
{
remaining space.
This function simply calls LayoutWindow().
*/
- bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
+ bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL) const;
/**
Lays out the children of an MDI parent frame. If @a rect is non-@NULL, the
area.
The MDI client window is set to occupy the remaining space.
*/
- bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
+ bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL) const;
/**
Lays out the children of a normal frame or other window.
and the window will be set
to the remaining size).
*/
- bool LayoutWindow(wxWindow* parent, wxWindow* mainWindow = NULL);
+ bool LayoutWindow(wxWindow* parent, wxWindow* mainWindow = NULL) const;
};
+
/**
@class wxSashLayoutWindow
@wxheader{laywin.h}
@library{wxadv}
@category{miscwnd}
- @seealso
- wxLayoutAlgorithm, wxSashWindow, @ref overview_eventhandlingoverview
+ @see wxLayoutAlgorithm, wxSashWindow, @ref overview_eventhandlingoverview
*/
class wxSashLayoutWindow : public wxSashWindow
{
/**
Constructs a sash layout window, which can be a child of a frame, dialog or any
other non-control window.
-
+
@param parent
Pointer to a parent window.
@param id
/**
Initializes a sash layout window, which can be a child of a frame, dialog or
any other non-control window.
-
+
@param parent
Pointer to a parent window.
@param id
Returns the alignment of the window: one of wxLAYOUT_TOP, wxLAYOUT_LEFT,
wxLAYOUT_RIGHT, wxLAYOUT_BOTTOM.
*/
- wxLayoutAlignment GetAlignment();
+ wxLayoutAlignment GetAlignment() const;
/**
Returns the orientation of the window: one of wxLAYOUT_HORIZONTAL,
wxLAYOUT_VERTICAL.
*/
- wxLayoutOrientation GetOrientation();
+ wxLayoutOrientation GetOrientation() const;
/**
The default handler for the event that is generated by wxLayoutAlgorithm. The
};
+
/**
@class wxQueryLayoutInfoEvent
@wxheader{laywin.h}
@library{wxadv}
@category{events}
- @seealso
- wxCalculateLayoutEvent, wxSashLayoutWindow, wxLayoutAlgorithm.
+ @see wxCalculateLayoutEvent, wxSashLayoutWindow, wxLayoutAlgorithm.
*/
class wxQueryLayoutInfoEvent : public wxEvent
{
the window sticks to). One of wxLAYOUT_TOP, wxLAYOUT_LEFT, wxLAYOUT_RIGHT,
wxLAYOUT_BOTTOM.
*/
- void GetAlignment();
+ void GetAlignment() const;
/**
Returns the flags associated with this event. Not currently used.
*/
- int GetFlags();
+ int GetFlags() const;
/**
Returns the orientation that the event handler specified to the event object.
May be one of wxLAYOUT_HORIZONTAL,
wxLAYOUT_VERTICAL.
*/
- wxLayoutOrientation GetOrientation();
+ wxLayoutOrientation GetOrientation() const;
/**
Returns the requested length of the window in the direction of the window
orientation. This information
is not yet used.
*/
- int GetRequestedLength();
+ int GetRequestedLength() const;
/**
Returns the size that the event handler specified to the event object as being
the requested size of the window.
*/
- wxSize GetSize();
+ wxSize GetSize() const;
/**
Call this to specify the alignment of the window (which side of the remaining
};
+
/**
@class wxCalculateLayoutEvent
@wxheader{laywin.h}
@library{wxadv}
@category{events}
- @seealso
- wxQueryLayoutInfoEvent, wxSashLayoutWindow, wxLayoutAlgorithm.
+ @see wxQueryLayoutInfoEvent, wxSashLayoutWindow, wxLayoutAlgorithm.
*/
class wxCalculateLayoutEvent : public wxEvent
{
/**
Returns the flags associated with this event. Not currently used.
*/
- int GetFlags();
+ int GetFlags() const;
/**
Before the event handler is entered, returns the remaining parent client area
parent client rectangle,
after the event handler has subtracted the area that its window occupies.
*/
- wxRect GetRect();
+ wxRect GetRect() const;
/**
Sets the flags associated with this event. Not currently used.
*/
void SetRect(const wxRect& rect);
};
+