int32 Label_GetHorizontalAlignment(Gwen::Controls::Label& label) { int32 alignment = label.GetAlignment(); alignment &= ~Gwen::Pos::Top; alignment &= ~Gwen::Pos::CenterV; alignment &= ~Gwen::Pos::Bottom; return alignment; }
int32 Label_GetVerticalAlignment(Gwen::Controls::Label& label) { int32 alignment = label.GetAlignment(); alignment &= ~Gwen::Pos::Left; alignment &= ~Gwen::Pos::CenterH; alignment &= ~Gwen::Pos::Right; return alignment; }
void Label_SetHorizontalAlignment(Gwen::Controls::Label& label, const int32 value) { int32 alignment = label.GetAlignment(); alignment &= ~Gwen::Pos::Left; alignment &= ~Gwen::Pos::CenterH; alignment &= ~Gwen::Pos::Right; alignment |= value; label.SetAlignment(alignment); }
void Label_SetVerticalAlignment(Gwen::Controls::Label& label, const int32 value) { int32 alignment = label.GetAlignment(); alignment &= ~Gwen::Pos::Top; alignment &= ~Gwen::Pos::CenterV; alignment &= ~Gwen::Pos::Bottom; alignment |= value; label.SetAlignment(alignment); }