MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / Label

Method Label

forms/label.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16Label::Label(const UString &Text, sp<BitmapFont> font)
17 : Control(), text(Text), font(font), scrollOffset(0), TextHAlign(HorizontalAlignment::Left),
18 TextVAlign(VerticalAlignment::Top), WordWrap(true)
19{
20 if (font)
21 {
22 palette = font->getPalette();
23 }
24}
25
26Label::~Label() = default;
27

Callers

nothing calls this directly

Calls 1

getPaletteMethod · 0.45

Tested by

no test coverage detected