scissor command
This commit is contained in:
parent
6d8300f9d9
commit
bca29c537c
6 changed files with 83 additions and 63 deletions
|
|
@ -54,7 +54,7 @@ enum DivLayout {
|
|||
}
|
||||
|
||||
// div element
|
||||
struct Div {
|
||||
struct ElemDiv {
|
||||
DivLayout layout;
|
||||
struct scroll {
|
||||
bool can_x;
|
||||
|
|
@ -70,12 +70,12 @@ struct Div {
|
|||
}
|
||||
|
||||
// slider element
|
||||
struct Slider {
|
||||
struct ElemSlider {
|
||||
float value;
|
||||
Rect handle;
|
||||
}
|
||||
|
||||
struct Text {
|
||||
struct ElemText {
|
||||
char* str;
|
||||
}
|
||||
|
||||
|
|
@ -87,9 +87,9 @@ struct Elem {
|
|||
Rect bounds;
|
||||
ElemType type;
|
||||
union {
|
||||
Div div;
|
||||
Slider slider;
|
||||
Text text;
|
||||
ElemDiv div;
|
||||
ElemSlider slider;
|
||||
ElemText text;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue