NumberLabel::NumberLabel(Context *context, Format format) : Label(context, ""), m_format(format) { SetValue(0.0); RegisterBindPoint("value", sigc::mem_fun(this, &NumberLabel::BindValue)); RegisterBindPoint("valuePercent", sigc::mem_fun(this, &NumberLabel::BindValuePercent)); }
Gauge::Gauge(Context *context) : Widget(context), m_value(0.0f), m_warningLevel(1.0f), m_criticalLevel(1.0f), m_levelAscending(true), m_mult(1.0f), m_style(NORMAL) { RegisterBindPoint("value", sigc::mem_fun(this, &Gauge::BindValue)); RegisterBindPoint("valuePercent", sigc::mem_fun(this, &Gauge::BindValuePercent)); }
Label::Label(Context *context, const std::string &text) : Widget(context) , m_bNeedsUpdating(true) , m_bPrevDisabled(false) , m_prevOpacity(-1.0f) , m_text(text) , m_color(Color::WHITE) , m_font(GetContext()->GetFont(GetFont())) { RegisterBindPoint("text", sigc::mem_fun(this, &Label::BindText)); }
Label::Label(Context *context, const std::string &text) : Widget(context), m_text(text), m_color(Color::WHITE) { RegisterBindPoint("text", sigc::mem_fun(this, &Label::BindText)); }