#include <wx/laywin.h>

The documentation for wxLayoutAlgorithm explains the purpose of this class in more detail.
Public Member Functions | |
| bool | Create (wxSashLayoutWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, const wxString &name="layoutWindow") |
| wxLayoutAlignment | GetAlignment () const |
| wxLayoutOrientation | GetOrientation () const |
| void | OnCalculateLayout (wxCalculateLayoutEvent &event) |
| void | OnQueryLayoutInfo (wxQueryLayoutInfoEvent &event) |
| void | SetAlignment (wxLayoutAlignment alignment) |
| void | SetDefaultSize (const wxSize &size) |
| void | SetOrientation (wxLayoutOrientation orientation) |
| wxSashLayoutWindow () | |
| wxSashLayoutWindow (wxSashLayoutWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, const wxString &name="layoutWindow") | |
| wxSashLayoutWindow::wxSashLayoutWindow | ( | ) |
Constructs a sash layout window, which can be a child of a frame, dialog or any other non-control window.
| parent | Pointer to a parent window. | |
| id | Window identifier. If -1, will automatically create an identifier. | |
| pos | Window position. wxDefaultPosition is (-1, -1) which indicates that wxSashLayoutWindows should generate a default position for the window. If using the wxSashLayoutWindow class directly, supply an actual position. | |
| size | Window size. wxDefaultSize is (-1, -1) which indicates that wxSashLayoutWindows should generate a default size for the window. | |
| style | Window style. For window styles, please see wxSashLayoutWindow. | |
| name | Window name. |
| wxSashLayoutWindow::wxSashLayoutWindow | ( | wxSashLayoutWindow * | parent, | |
| wxWindowID | id, | |||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxCLIP_CHILDREN|wxSW_3D, |
|||
| const wxString & | name = "layoutWindow" | |||
| ) |
Constructs a sash layout window, which can be a child of a frame, dialog or any other non-control window.
| parent | Pointer to a parent window. | |
| id | Window identifier. If -1, will automatically create an identifier. | |
| pos | Window position. wxDefaultPosition is (-1, -1) which indicates that wxSashLayoutWindows should generate a default position for the window. If using the wxSashLayoutWindow class directly, supply an actual position. | |
| size | Window size. wxDefaultSize is (-1, -1) which indicates that wxSashLayoutWindows should generate a default size for the window. | |
| style | Window style. For window styles, please see wxSashLayoutWindow. | |
| name | Window name. |
| bool wxSashLayoutWindow::Create | ( | wxSashLayoutWindow * | parent, | |
| wxWindowID | id, | |||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxCLIP_CHILDREN|wxSW_3D, |
|||
| const wxString & | name = "layoutWindow" | |||
| ) |
Initializes a sash layout window, which can be a child of a frame, dialog or any other non-control window.
| parent | Pointer to a parent window. | |
| id | Window identifier. If -1, will automatically create an identifier. | |
| pos | Window position. wxDefaultPosition is (-1, -1) which indicates that wxSashLayoutWindows should generate a default position for the window. If using the wxSashLayoutWindow class directly, supply an actual position. | |
| size | Window size. wxDefaultSize is (-1, -1) which indicates that wxSashLayoutWindows should generate a default size for the window. | |
| style | Window style. For window styles, please see wxSashLayoutWindow. | |
| name | Window name. |
| wxLayoutAlignment wxSashLayoutWindow::GetAlignment | ( | ) | const |
Returns the alignment of the window: one of wxLAYOUT_TOP, wxLAYOUT_LEFT, wxLAYOUT_RIGHT, wxLAYOUT_BOTTOM.
| wxLayoutOrientation wxSashLayoutWindow::GetOrientation | ( | ) | const |
Returns the orientation of the window: one of wxLAYOUT_HORIZONTAL, wxLAYOUT_VERTICAL.
| void wxSashLayoutWindow::OnCalculateLayout | ( | wxCalculateLayoutEvent & | event | ) |
The default handler for the event that is generated by wxLayoutAlgorithm. The implementation of this function calls wxCalculateLayoutEvent::SetRect to shrink the provided size according to how much space this window takes up. For further details, see wxLayoutAlgorithm and wxCalculateLayoutEvent.
| void wxSashLayoutWindow::OnQueryLayoutInfo | ( | wxQueryLayoutInfoEvent & | event | ) |
The default handler for the event that is generated by OnCalculateLayout to get size, alignment and orientation information for the window. The implementation of this function uses member variables as set by accessors called by the application. For further details, see wxLayoutAlgorithm and wxQueryLayoutInfoEvent.
| void wxSashLayoutWindow::SetAlignment | ( | wxLayoutAlignment | alignment | ) |
Sets the alignment of the window (which edge of the available parent client area the window is attached to). alignment is one of wxLAYOUT_TOP, wxLAYOUT_LEFT, wxLAYOUT_RIGHT, wxLAYOUT_BOTTOM.
| void wxSashLayoutWindow::SetDefaultSize | ( | const wxSize & | size | ) |
Sets the default dimensions of the window. The dimension other than the orientation will be fixed to this value, and the orientation dimension will be ignored and the window stretched to fit the available space.
| void wxSashLayoutWindow::SetOrientation | ( | wxLayoutOrientation | orientation | ) |
Sets the orientation of the window (the direction the window will stretch in, to fill the available parent client area). orientation is one of wxLAYOUT_HORIZONTAL, wxLAYOUT_VERTICAL.
|
[ top ] |