#include <papyrus/text.h>
Inheritance diagram for Papyrus::Text:
Text
Public Types | |
typedef PapyrusSmartPointer< Text > | pointer |
Public Member Functions | |
Text (const std::string &text=std::string(), double size=12.0, const std::string &family=std::string(), Cairo::FontSlant slant=Cairo::FONT_SLANT_NORMAL, Cairo::FontWeight weight=Cairo::FONT_WEIGHT_NORMAL) | |
const std::string & | font_family () |
Cairo::FontSlant | font_slant () |
Cairo::FontWeight | font_weight () |
void | set_font_face (const std::string &family, Cairo::FontSlant slant, Cairo::FontWeight weight) |
const Cairo::FontOptions & | font_options () |
void | set_font_options (const Cairo::FontOptions &font_options) |
double | size () |
void | set_size (double) |
std::string | text () const |
void | set_text (const std::string) |
virtual void | draw_shape (Cairo::RefPtr< Cairo::Context > cairo) |
virtual void | render (Cairo::RefPtr< Cairo::Context > cairo) |
Reimplemented render method to allow the text extents to be calculated before the bounds of a viewbox are calculated. | |
sigc::signal< void > | signal_text () |
sigc::signal< void > | signal_font () |
PAPYRUS_CLASS_NAME ("Text") | |
PAPYRUS_CLONE_METHOD (Text) | |
Static Public Member Functions | |
static Text::pointer | create (const std::string &text=std::string(), double size=12.0, const std::string &family=std::string(), Cairo::FontSlant slant=Cairo::FONT_SLANT_NORMAL, Cairo::FontWeight weight=Cairo::FONT_WEIGHT_NORMAL) |
Protected Attributes | |
std::string | m_text |
double | m_size |
std::string | m_family |
Cairo::FontSlant | m_slant |
Cairo::FontWeight | m_weight |
Cairo::FontOptions | m_font_options |
sigc::signal< void > | m_signal_text |
sigc::signal< void > | m_signal_font |