My Project
 
Loading...
Searching...
No Matches
RedButton Class Reference

#include <redbutton.h>

Inheritance diagram for RedButton:
Collaboration diagram for RedButton:

Public Member Functions

 RedButton (const std::string &label)
 
void enable (bool value)
 
void text (const std::string &value)
 
void textColor (int value)
 
void icon (Image *icon)
 
float reqWidth ()
 
float reqHeight ()
 

Protected Member Functions

virtual void createChildren ()
 
virtual void layout ()
 
virtual void onTouchDown ()
 
virtual void onTouchUp ()
 

Protected Attributes

BitmapText * _text
 
Image * _icon
 
NinePatch * _bg
 

Constructor & Destructor Documentation

◆ RedButton()

RedButton::RedButton ( const std::string & label)
Here is the caller graph for this function:

Member Function Documentation

◆ createChildren()

void RedButton::createChildren ( )
protectedvirtual

Reimplemented in StartScene::GameButton.

Here is the call graph for this function:

◆ enable()

void RedButton::enable ( bool value)
Here is the caller graph for this function:

◆ icon()

void RedButton::icon ( Image * icon)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ layout()

void RedButton::layout ( )
protectedvirtual

Reimplemented in CheckBoxRed, and StartScene::GameButton.

Here is the caller graph for this function:

◆ onTouchDown()

void RedButton::onTouchDown ( )
protectedvirtual

◆ onTouchUp()

void RedButton::onTouchUp ( )
protectedvirtual

◆ reqHeight()

float RedButton::reqHeight ( )

◆ reqWidth()

float RedButton::reqWidth ( )

◆ text()

void RedButton::text ( const std::string & value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ textColor()

void RedButton::textColor ( int value)

Member Data Documentation

◆ _bg

NinePatch* RedButton::_bg
protected

◆ _icon

Image* RedButton::_icon
protected

◆ _text

BitmapText* RedButton::_text
protected

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