Class to creat object button. More...
#include <Button.h>
Public Member Functions | |||||||||||||||||
| Button () | |||||||||||||||||
| Constructor Class Button. More... | |||||||||||||||||
| Button (String text, int pos_x, int pos_y, Color color, int text_pos_x, int text_pos_y) | |||||||||||||||||
Constructor Class Button
| |||||||||||||||||
| ~Button () | |||||||||||||||||
| Destructor Button. More... | |||||||||||||||||
| void | setButton (String write, int width, int height, Color color, int pos_x, int pos_y, int pos_x_txt, int pos_y_txt) | ||||||||||||||||
Function to set value
| |||||||||||||||||
| RectangleShape | getButton () | ||||||||||||||||
| Function get RectangleShape use to show create graphic button. More... | |||||||||||||||||
| Text | getText () | ||||||||||||||||
| Function return object Text to printnig text. More... | |||||||||||||||||
| void | setText (string write) | ||||||||||||||||
| Function set new text on button. More... | |||||||||||||||||
Public Attributes | |
| String | write |
| String to keep text button. More... | |
| RectangleShape | button |
| Object temporary use to create view button. More... | |
| Text | text |
| Object use to show string button. More... | |
| Font | font |
| Object font use load Font used for entering text. More... | |
Class to creat object button.
| Button::Button | ( | ) |
Constructor Class Button.
| Button::Button | ( | String | text, |
| int | pos_x, | ||
| int | pos_y, | ||
| Color | color, | ||
| int | text_pos_x, | ||
| int | text_pos_y | ||
| ) |
Constructor Class Button
| text | - Text on the button |
| pos_x | - Position width button |
| pos_y | - Position height button |
| color | - Color button |
| text_pos_x | - Position width text on button |
| text_pos_y | - Position height text on button |
| Button::~Button | ( | ) |
Destructor Button.
| RectangleShape Button::getButton | ( | ) |
Function get RectangleShape use to show create graphic button.
| Text Button::getText | ( | ) |
Function return object Text to printnig text.
| void Button::setButton | ( | String | write, |
| int | width, | ||
| int | height, | ||
| Color | color, | ||
| int | pos_x, | ||
| int | pos_y, | ||
| int | pos_x_txt, | ||
| int | pos_y_txt | ||
| ) |
Function to set value
| write | - The inscription that will be shown on the button |
| width | - Width button |
| height | - Height button |
| color | - Color background button |
| pos_x | - Position x button |
| pos_y | - Position y button |
| pos_x_txt | - Possition x text on button |
| pos_y_txt | - Possition y text on button |
| void Button::setText | ( | string | write | ) |
Function set new text on button.
| RectangleShape Button::button |
Object temporary use to create view button.
| Font Button::font |
Object font use load Font used for entering text.
| Text Button::text |
Object use to show string button.
| String Button::write |
String to keep text button.