FontMethods::SetJustifyH
function · ui · primitive
- Address
0x79fc20· 136 bytes, up to0x79fca7- Signature
int __fastcall (const char *name, CSimpleFont *font, lua_State *L)- Meaning
- Merges a justify name's horizontal bits into a font block, stops following its parent's justify and pushes
- Confidence
- verified, proof one
- Finding
- ui/fontmethods#justify-and-the-followed-font
- Test
ui::font_justify_set_h_difftest
Finding: Justify and the followed font in ui: font accessors from Lua
SetJustifyH(name) and
SetJustifyV(name) take any of the six justify names, ignoring case, and keep their own axis of it,
bits 0 to 2 or 3 to 5 of the justify word: a name of the other axis clears the axis. An unchanged
word with the justify group set is not stored; otherwise it is, the group marked set and changed
(0x202). Either way the font stops following its parent's justify and pushes its changes. Any other
argument raises the usage error. GetJustifyH() and GetJustifyV() answer the first set of
LEFT, CENTER, RIGHT or TOP, MIDDLE, BOTTOM, else UNKNOWN. GetFontObject(), on the five types other than FontString
and under Button's three font object getters, answers the followed Font or nil.
The derivation is in the doc.
Callers 5
- ScrollingMessageFrame::SetJustifyH ui
- MessageFrame::SetJustifyH ui
- SimpleHTML::SetJustifyH ui
- EditBox::SetJustifyH ui
- FontInstance::SetJustifyH ui
Callees 4
- ParseJustify ui
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.