#include </home/zeitlin/src/wx/github/interface/wx/sashwin.h>
A sash event is sent when the sash of a wxSashWindow has been dragged by the user.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
wxEVT_SASH_DRAGGED
event, when the user has finished dragging a sash. wxEVT_SASH_DRAGGED_RANGE
event, when the user has finished dragging a sash. The event handler is called when windows with ids in the given range have their sashes dragged. Public Member Functions | |
wxSashEvent (int id=0, wxSashEdgePosition edge=wxSASH_NONE) | |
Constructor. | |
wxRect | GetDragRect () const |
Returns the rectangle representing the new size the window would be if the resize was applied. | |
wxSashDragStatus | GetDragStatus () const |
Returns the status of the sash: one of wxSASH_STATUS_OK, wxSASH_STATUS_OUT_OF_RANGE. | |
wxSashEdgePosition | GetEdge () const |
Returns the dragged edge. | |
void | SetEdge (wxSashEdgePosition edge) |
void | SetDragRect (const wxRect &rect) |
void | SetDragStatus (wxSashDragStatus status) |
wxSashEvent::wxSashEvent | ( | int | id = 0 , |
wxSashEdgePosition | edge = wxSASH_NONE |
||
) |
Constructor.
wxRect wxSashEvent::GetDragRect | ( | ) | const |
Returns the rectangle representing the new size the window would be if the resize was applied.
It is up to the application to set the window size if required.
wxSashDragStatus wxSashEvent::GetDragStatus | ( | ) | const |
Returns the status of the sash: one of wxSASH_STATUS_OK, wxSASH_STATUS_OUT_OF_RANGE.
If the drag caused the notional bounding box of the window to flip over, for example, the drag will be out of rage.
wxSashEdgePosition wxSashEvent::GetEdge | ( | ) | const |
Returns the dragged edge.
The return value is one of wxSASH_TOP, wxSASH_RIGHT, wxSASH_BOTTOM, wxSASH_LEFT.
void wxSashEvent::SetDragRect | ( | const wxRect & | rect | ) |
void wxSashEvent::SetDragStatus | ( | wxSashDragStatus | status | ) |
void wxSashEvent::SetEdge | ( | wxSashEdgePosition | edge | ) |