#include <GToolBar.h>
Public Member Functions | |
const char * | GetClass () |
int64 | Value () |
Gets the integer representation of the view's contents. | |
void | Value (int64 i) |
Sets the integer representation of the view's contents. | |
char * | Name () |
Returns the utf-8 text associated with this view. | |
bool | Name (const char *n) |
Sets the utf-8 text associated with this view. | |
int | Image () |
Gets the icon index into the parent GToolBar's image list. | |
void | Image (int i) |
Sets the icon index into the parent GToolBar's image list. | |
void | OnPaint (GSurface *pDC) |
Called to paint the onscreen representation of the view. | |
void | OnMouseClick (GMouse &m) |
The mouse was clicked over this view. | |
void | OnMouseMove (GMouse &m) |
The mouse moves over the control. | |
void | OnMouseEnter (GMouse &m) |
Mouse moves into the area over the control. | |
void | OnMouseExit (GMouse &m) |
Mouse leaves the area over the control. | |
virtual void | SendNotify (int Flags) |
Sends a notification to the notify target or the parent chain. | |
Friends | |
class | GToolBar |
const char* GToolButton::GetClass | ( | ) | [inline] |
The class' name. Should be overriden in child classes to return the right class name. Mostly used for debugging, but in the win32 port it is also the default WIN32 class name passed to RegisterClass() in GView::CreateClass().
Reimplemented from GView.
bool GToolButton::Name | ( | const char * | n | ) |
Sets the utf-8 text associated with this view.
Name and NameW are interchangable. Using them in any order will convert the text between utf-8 and wide to satify any requirement. Generally once the opposing version of the string is required both the utf-8 and wide copies of the string remain cached in RAM until the Name is changed.
Reimplemented from GView.
References GArray< Type >::DeleteObjects(), and GView::Name().