Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

GUIButton Class Reference

#include <guibutton.h>

Inheritance diagram for GUIButton:

GUIMain UI List of all members.

Public Member Functions

 GUIButton (const int &rciX, const int &rciY, const uint &rcuiW, const uint &rcuiH, const string &strFile)
void SetBackground (const Color &color)
void SetForeground (const Color &color)
void Display () const
void uiKeyboard (const SDL_KeyboardEvent &rcsSDLKeyboardEvent)
void uiMouseMotion (const SDL_MouseMotionEvent &rcsSDLMouseMotionEvent)
void uiMouseButton (const SDL_MouseButtonEvent &rcsSDLMouseButtonEvent)
void uiExpose (const SDL_ExposeEvent &rcsSDLExposeEvent)
void uiResize (const SDL_ResizeEvent &rcsSDLResizeEvent)

Private Attributes

GLuint uiTexture
GLuint uiTextureOver
Color colorForeground
Color colorBackground

Detailed Description

This is a 2-state button: onMouseOver and onMouseOut.

Definition at line 30 of file guibutton.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2