All SliceO_Tool classes share some methods:
|
|
int Click( int up_down ) ; |
You must call this method if the user has activated a mouse button while the cursor is inside the tool
|
|
|
void Draw( void ) ;
|
This method will draw the tool
|
|
|
int Height( unsigned short nb=10 ) ; |
This method returns the height (in pixel) of the tool. The "nb" parameter defines how many lines of information will be displayed.
|
|
|
int Keyboard( int key ) ; |
You must call this method if the user has activated a keyboard key while the cursor is inside the tool.
|
|
|
void Leave( void ) ;
|
You must call this method if the user move the cursor outside of the tool.
|
|
|
int Motion( int up_down ) ;
|
You must call this method if the user move the cursor inside the tool.
|
|
|
int Resize( Boxs *box ) ; |
You must call this method to resize the tool. The tool will reside inside the bounding box of the "Boxs" class.
|
|
|
int Scroll( int val ) ; |
You must call this method if the user has activated the mouse wheel while the cursor is inside the tool.
|
|
|
void Update( UInt64 flag ) |
You must call this method when external events change the content of the tool. The "flag" parameter is the "Update Flag" defining these changes. |