Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csSplitter Class Reference

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.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000