#include <button_text.h>
Inheritance diagram for ButtonText:
Public Member Functions | |
ButtonText (Point2i position, const Profile *res_profile, const std::string &resource_id, const std::string &new_text, Font *font) | |
~ButtonText () | |
void | Draw (const Point2i &mousePosition, Surface &surf) const |
Private Attributes | |
Text * | text |
Definition at line 28 of file button_text.h.
ButtonText::ButtonText | ( | Point2i | position, | |
const Profile * | res_profile, | |||
const std::string & | resource_id, | |||
const std::string & | new_text, | |||
Font * | font | |||
) |
Definition at line 29 of file button_text.cpp.
00032 : Button(position, res_profile, resource_id) 00033 { 00034 text = new Text(new_text, white_color, font); 00035 }
ButtonText::~ButtonText | ( | ) |
Reimplemented from Button.
Definition at line 37 of file button_text.cpp.
00038 { 00039 Point2i textPosition = position + size/2; 00040 00041 Button::Draw(mousePosition, surf); 00042 text->DrawCenter(textPosition); 00043 }
Here is the call graph for this function:
Text* ButtonText::text [private] |
Definition at line 31 of file button_text.h.