mirror of https://github.com/bsnes-emu/bsnes.git
30 lines
502 B
C++
30 lines
502 B
C++
#if defined(Hiro_Label)
|
|
|
|
auto mLabel::allocate() -> pObject* {
|
|
return new pLabel(*this);
|
|
}
|
|
|
|
//
|
|
|
|
auto mLabel::alignment() const -> Alignment {
|
|
return state.alignment;
|
|
}
|
|
|
|
auto mLabel::setAlignment(Alignment alignment) -> type& {
|
|
state.alignment = alignment;
|
|
signal(setAlignment, alignment);
|
|
return *this;
|
|
}
|
|
|
|
auto mLabel::setText(const string& text) -> type& {
|
|
state.text = text;
|
|
signal(setText, text);
|
|
return *this;
|
|
}
|
|
|
|
auto mLabel::text() const -> string {
|
|
return state.text;
|
|
}
|
|
|
|
#endif
|