1#[derive(Debug, Clone)]
2pub enum Props {
3 OsType(GOsType),
4 DerefWidget(ViewProps),
5 ShowTitle(bool),
6 ShowIcon(bool),
7 HideCaptionOnFullscreen(bool),
8 WindowSize(WindowSize),
9}
10
11#[derive(Debug, Clone)]
12pub struct WindowSize {
13 pub inner_size: DVec2,
14}
15
16#[derive(Clone, Copy, PartialEq, Debug, Default)]
17pub enum GOsType {
18 Windows,
19 Mac,
20 #[default]
21 Linux,
22 Other,
23}
24
25#[derive(Debug, Clone)]
26pub struct DVec2 {
27 pub x: f64,
28 pub y: f64,
29}
30
31#[derive(Debug, Clone)]
32pub enum Props {
33 Theme(Themes),
34 BackgroundColor(MakepadColor),
35 HoverColor(MakepadColor),
36 FocusColor(MakepadColor),
37 BorderColor(MakepadColor),
38 BorderWidth(F32),
39 BorderRadius(F32),
40 Visible(bool),
41 BackgroundVisible(bool),
42 ShadowColor(MakepadColor),
43 SpreadRadius(F32),
44 BlurRadius(F32),
45 ShadowOffset(Vec2),
46 Cursor(MouseCursor),
47 AnimationKey(bool),
48 GrabKeyFocus(bool),
49 BlockSignalEvent(bool),
50 Walk(Walk),
51 Layout(Layout),
52 EventOrder(EventOrder),
53 DpiFactor(F64),
54 Optimize(ViewOptimize),
55 CaptureOverload(bool),
56 EventKey(bool),
57 BlockChildEvents(bool),
58}