You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
420 B
22 lines
420 B
#pragma once
|
|
|
|
#include "SLayoutSize.h"
|
|
namespace SOUI
|
|
{
|
|
enum Gravity{
|
|
G_Undefined=-1,
|
|
G_Left=0,G_Top=0,
|
|
G_Center=1,
|
|
G_Right=2,G_Bottom=2,
|
|
};
|
|
|
|
struct SLinearLayoutParamStruct
|
|
{
|
|
SLayoutSize width;
|
|
SLayoutSize height;
|
|
SLayoutSize extend_left,extend_right;//相当于android的margin属性
|
|
SLayoutSize extend_top,extend_bottom;//相当于android的margin属性
|
|
float weight;
|
|
Gravity gravity;
|
|
};
|
|
} |