sptk2 logo
SPTK Home Page

sptk::CSplitter Class Reference
[GUI Classes]

Splitter widget. More...

#include <CSplitter.h>

Inheritance diagram for sptk::CSplitter:

sptk::CBox sptk::CInput sptk::CControl sptk::CLayoutClient

List of all members.

Public Member Functions

 CSplitter (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP)
 After the splitter is grabbed finds out which widget is resizing.
int handle (int event)
 Custom handle() method to process widget-specific events.
virtual std::string className () const
 Returns widget class name (internal SPTK RTTI).

Static Public Member Functions

static CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.

Protected Member Functions

void findChainedControl ()
 Where did we grab the bar (y-coordinate) ?


Detailed Description

Splitter widget.

CSplitter implements 'grab and resize' bar. It works only with SPTK-style widgets derived from CLayoutClient, and placed on a group derived from CLayoutManager (CGroup,CScroll).


Constructor & Destructor Documentation

sptk::CSplitter::CSplitter ( const char *  label = 0,
int  layoutSize = 10,
CLayoutAlign  layoutAlign = SP_ALIGN_TOP 
)

After the splitter is grabbed finds out which widget is resizing.

Constructor in SPTK style

Parameters:
label const char *, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout


Member Function Documentation

static CLayoutClient* sptk::CSplitter::creator ( CXmlNode node  )  [static]

Creates a widget based on the XML node information.

Parameters:
node CXmlNode*, an XML node with widget information

Reimplemented from sptk::CBox.


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:19 2012: SPTK 3.5.7