Version: 2.9.4
Public Member Functions
wxSashWindow Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/sashwin.h>

Inheritance diagram for wxSashWindow:

Detailed Description

wxSashWindow allows any of its edges to have a sash which can be dragged to resize the window.

The actual content window will be created by the application as a child of wxSashWindow.

The window (or an ancestor) will be notified of a drag via a wxSashEvent notification.

Styles

This class supports the following styles:

Events emitted by this class

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxSashEvent& event)

Event macros for events emitted by this class:

Library:  wxAdvanced
Category:  Miscellaneous Windows
参照:
wxSashEvent, wxSashLayoutWindow, Events and Event Handling

Public Member Functions

 wxSashWindow ()
 Default ctor.
 wxSashWindow (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, const wxString &name="sashWindow")
 Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
virtual ~wxSashWindow ()
 Destructor.
virtual int GetMaximumSizeX () const
 Gets the maximum window size in the x direction.
virtual int GetMaximumSizeY () const
 Gets the maximum window size in the y direction.
virtual int GetMinimumSizeX () const
 Gets the minimum window size in the x direction.
virtual int GetMinimumSizeY () const
 Gets the minimum window size in the y direction.
bool GetSashVisible (wxSashEdgePosition edge) const
 Returns true if a sash is visible on the given edge, false otherwise.
virtual void SetMaximumSizeX (int min)
 Sets the maximum window size in the x direction.
virtual void SetMaximumSizeY (int min)
 Sets the maximum window size in the y direction.
virtual void SetMinimumSizeX (int min)
 Sets the minimum window size in the x direction.
virtual void SetMinimumSizeY (int min)
 Sets the minimum window size in the y direction.
void SetSashVisible (wxSashEdgePosition edge, bool visible)
 Call this function to make a sash visible or invisible on a particular edge.

List of all members.


Constructor & Destructor Documentation

wxSashWindow::wxSashWindow ( )

Default ctor.

wxSashWindow::wxSashWindow ( wxWindow parent,
wxWindowID  id,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxCLIP_CHILDREN|wxSW_3D,
const wxString name = "sashWindow" 
)

Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.

Parameters:
parentPointer to a parent window.
idWindow identifier. If -1, will automatically create an identifier.
posWindow position. wxDefaultPosition is (-1, -1) which indicates that wxSashWindows should generate a default position for the window. If using the wxSashWindow class directly, supply an actual position.
sizeWindow size. wxDefaultSize is (-1, -1) which indicates that wxSashWindows should generate a default size for the window.
styleWindow style. For window styles, please see wxSashWindow.
nameWindow name.
virtual wxSashWindow::~wxSashWindow ( ) [virtual]

Destructor.


Member Function Documentation

virtual int wxSashWindow::GetMaximumSizeX ( ) const [virtual]

Gets the maximum window size in the x direction.

virtual int wxSashWindow::GetMaximumSizeY ( ) const [virtual]

Gets the maximum window size in the y direction.

virtual int wxSashWindow::GetMinimumSizeX ( ) const [virtual]

Gets the minimum window size in the x direction.

virtual int wxSashWindow::GetMinimumSizeY ( ) const [virtual]

Gets the minimum window size in the y direction.

bool wxSashWindow::GetSashVisible ( wxSashEdgePosition  edge) const

Returns true if a sash is visible on the given edge, false otherwise.

Parameters:
edgeEdge. One of wxSASH_TOP, wxSASH_RIGHT, wxSASH_BOTTOM, wxSASH_LEFT.
参照:
SetSashVisible()
virtual void wxSashWindow::SetMaximumSizeX ( int  min) [virtual]

Sets the maximum window size in the x direction.

virtual void wxSashWindow::SetMaximumSizeY ( int  min) [virtual]

Sets the maximum window size in the y direction.

virtual void wxSashWindow::SetMinimumSizeX ( int  min) [virtual]

Sets the minimum window size in the x direction.

virtual void wxSashWindow::SetMinimumSizeY ( int  min) [virtual]

Sets the minimum window size in the y direction.

void wxSashWindow::SetSashVisible ( wxSashEdgePosition  edge,
bool  visible 
)

Call this function to make a sash visible or invisible on a particular edge.

Parameters:
edgeEdge to change. One of wxSASH_TOP, wxSASH_RIGHT, wxSASH_BOTTOM, wxSASH_LEFT.
visibletrue to make the sash visible, false to make it invisible.
参照:
GetSashVisible()
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines