コード例 #1
0
		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;
		}
コード例 #2
0
		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;
		}
コード例 #3
0
		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);
		}
コード例 #4
0
		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);
		}