GToolButton Class Reference

Button on a GToolBar. More...

#include <GToolBar.h>

Inheritance diagram for GToolButton:

GView

List of all members.

Public Member Functions

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 (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


Detailed Description

Button on a GToolBar.

Member Function Documentation

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().

Returns:
the Class' name for debugging

Reimplemented from GView.

bool GToolButton::Name ( 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 Name().


The documentation for this class was generated from the following files:

Generated on Wed Dec 1 15:41:05 2010 for Lgi by  doxygen 1.5.7.1