CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csSplitter Class Reference
[Splitter]

This is a splitter control that draws vertical and/or horizontal lines in its parent canvas. More...

#include <cssplit.h>

Inheritance diagram for csSplitter:

csComponent List of all members.

Public Methods

 csSplitter (csComponent *pParent)
 Create the splitter object.

virtual void Draw ()
 Draw the splitter.

virtual bool HandleEvent (iEvent &Event)
 Handle events.

bool SetRect (int xmin, int ymin, int xmax, int ymax)
 Set splitter size/position.

void GetPos (int &x, int &y)
 Get the position of the splitter.


Protected Attributes

bool isSliding
 True if it is currently sliding.

bool isHorizontal
 True if the splitter is horizontal.

int mdx
 Mouse delta x and y (when user grabbed the splitter).

int mdy
 Mouse delta x and y (when user grabbed the splitter).

int mousex
 Current mouse position within slider.

int mousey
 Current mouse position within slider.


Detailed Description

This is a splitter control that draws vertical and/or horizontal lines in its parent canvas.

It is used to split some view into parts dynamically. Look at csGrid to see it in action.

Definition at line 56 of file cssplit.h.


Constructor & Destructor Documentation

csSplitter::csSplitter csComponent   pParent
 

Create the splitter object.


Member Function Documentation

virtual void csSplitter::Draw   [virtual]
 

Draw the splitter.

Reimplemented from csComponent.

void csSplitter::GetPos int &    x,
int &    y
 

Get the position of the splitter.

virtual bool csSplitter::HandleEvent iEvent   Event [virtual]
 

Handle events.

Reimplemented from csComponent.

bool csSplitter::SetRect int    xmin,
int    ymin,
int    xmax,
int    ymax
[virtual]
 

Set splitter size/position.

Reimplemented from csComponent.


Member Data Documentation

bool csSplitter::isHorizontal [protected]
 

True if the splitter is horizontal.

Definition at line 62 of file cssplit.h.

bool csSplitter::isSliding [protected]
 

True if it is currently sliding.

Definition at line 60 of file cssplit.h.

int csSplitter::mdx [protected]
 

Mouse delta x and y (when user grabbed the splitter).

Definition at line 64 of file cssplit.h.

int csSplitter::mdy [protected]
 

Mouse delta x and y (when user grabbed the splitter).

Definition at line 64 of file cssplit.h.

int csSplitter::mousex [protected]
 

Current mouse position within slider.

Definition at line 66 of file cssplit.h.

int csSplitter::mousey [protected]
 

Current mouse position within slider.

Definition at line 66 of file cssplit.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18