add window type

Change-Id: I1ed9d4e2408990f4d8f969c55996c84d0689932d
Signed-off-by: lizheng <lizheng2@huawei.com>
This commit is contained in:
lizheng 2021-12-21 21:12:04 +08:00
parent e84049733b
commit e12b3d1e2e
2 changed files with 41 additions and 0 deletions

View File

@ -282,3 +282,40 @@
width: 1%;
height: 1%;
}
#WINDOW_TYPE_APPLICATION_BASE {
z-index: 1;
position: relative;
horizon-align: middle;
vertical-align: middle;
width: 100%;
height: 100%;
}
#WINDOW_TYPE_APPLICATION_FIRST {
z-index: 2;
position: relative;
horizon-align: middle;
vertical-align: middle;
width: 100%;
height: 100%;
}
#WINDOW_TYPE_APPLICATION_NORMAL {
z-index: 3;
position: relative;
horizon-align: middle;
vertical-align: middle;
width: 100%;
height: 100%;
}
//This Window is Toppest
#WINDOW_TYPE_TOP {
z-index: 9999;
position: fixed;
horizon-align: middle;
vertical-align: middle;
width: 100%;
height: 100%;
}

View File

@ -57,6 +57,10 @@ namespace OHOS {
macro(WINDOW_TYPE_SPLIT_LINE), \
macro(WINDOW_TYPE_LAUNCH_PAGE), \
macro(WINDOW_TYPE_CURSOR), \
macro(WINDOW_TYPE_APPLICATION_BASE), \
macro(WINDOW_TYPE_APPLICATION_FIRST), \
macro(WINDOW_TYPE_APPLICATION_NORMAL), \
macro(WINDOW_TYPE_TOP), \
macro(WINDOW_TYPE_MAX),
#define DEFINE_ENUM_WINDOW_TYPE(id) id