#include <CUI_Button.h>
Inheritance diagram for CUI_Button:

Public Member Functions | |
| CUI_Button (CUI_UI *ui=NULL, float x=0, float y=0, float x2=1, float y2=1, CUI_Frame *parent=NULL, IUI_Shader *shader=NULL, IUI_Shader *cursor=NULL, CUI_CoordSys *coordsys=NULL, char *text=NULL, IUI_Font *font=NULL, float textscale=0.8, IUI_Border *border=NULL, IUI_Shader *hover=NULL, IUI_Shader *disable=NULL, IUI_Shader *click=NULL) | |
| constructor  | |
| virtual | ~CUI_Button () | 
| destructor  | |
| virtual bool | Render (double dtime, IUI_Renderer *renderer) | 
| overloaded render  | |
| virtual bool | SetShader (IUI_Shader *shader) | 
| set the shader for this button   | |
| virtual bool | SetHoverShader (IUI_Shader *shader) | 
| set the shader to be used when this button is being hovered over   | |
| virtual bool | SetDisableShader (IUI_Shader *shader) | 
| set the shader to be used when this button is disabled   | |
| virtual bool | SetClickShader (IUI_Shader *shader) | 
| set the shader to be used when this button is clicked   | |
| virtual bool | IsClickable () | 
| we want to accept mouse input  | |
| virtual bool | Click (int &id, int &numparam, void **param) | 
| Call the click action function.   | |
| virtual void | DeleteParam (void *param) | 
| Delete a parameter allocated by this frame.   | |
Protected Attributes | |
| IUI_Shader * | m_defaultShader | 
| the default shader  | |
| IUI_Shader * | m_hoverShader | 
| the hover shader  | |
| IUI_Shader * | m_disableShader | 
| the disabled shader  | |
| IUI_Shader * | m_clickShader | 
| the clicked shader  | |
In general, buttons should not have children, but it is allowed in the spec.
 Recognized flags:
 [system]
 UI_CLICKED
 UI_HOVER
 UI_SELECTED
 
 UI_DISABLED
 UI_INACTIVE
 
      
  | 
  ||||||||||||||||
| 
 Call the click action function. 
The UI will only call this function when the button is let up while over the same button it was clicked on. 
 Reimplemented from CUI_Frame. Reimplemented in CUI_MultipleStateButton.  | 
  
      
  | 
  
| 
 Delete a parameter allocated by this frame. Buttons do not pass back parameters Reimplemented from CUI_Frame. Reimplemented in CUI_MultipleStateButton.  | 
  
      
  | 
  
| 
 set the shader to be used when this button is clicked 
 
  | 
  
      
  | 
  
| 
 set the shader to be used when this button is disabled 
 
  | 
  
      
  | 
  
| 
 set the shader to be used when this button is being hovered over 
 
  | 
  
      
  | 
  
| 
 set the shader for this button this is the default shader 
 Reimplemented from CUI_Frame.  | 
  
 
1.3.4