#include <cssplit.h>
Inheritance diagram for csSplitter:
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. |
It is used to split some view into parts dynamically. Look at csGrid to see it in action.