Gui Component Attribute Table - marceldobehere/MaslOS GitHub Wiki

Info

This has the data for the GUI Components in the MaslOS GUI Framework for GUI apps.

Tables

Base Component Attributes

Attribute Number Attribute Name Datatype
10 Position X INT32
11 Position Y INT32
20 Size Fixed X INT32
21 Size Fixed Y INT32
22 Size Scaled X DOUBLE
23 Size Scaled Y DOUBLE
24 Size Is X Fixed BOOL
25 Size Is Y Fixed BOOL
30 Actual Size X INT32
31 Actual Size Y INT32
40 ID INT64
41 Parent ID INT64
42 Is Hidden BOOL

Box Component

Attribute Number Attribute Name Datatype
10 BG Color UINT32

Button Component

Attribute Number Attribute Name Datatype
10 Text Color Default UINT32
11 Text Color Hover UINT32
12 Text Color Click UINT32
20 Background Color Default UINT32
21 Background Color Hover UINT32
22 Background Color Click UINT32
30 Stick To Default Colors BOOL
31 Mouse Hovering Over Button BOOL
32 Mouse Clicking On Button BOOL
40 Internal Box Component ID INT64
41 Internal Rectangle Component ID INT64
42 Internal Text Component ID INT64
50 Button State (0 Normal, 1 Hover, 2 Click) INT32

Rectangle Component

Attribute Number Attribute Name Datatype
10 Fill Color UINT32

Text Component

Attribute Number Attribute Name Datatype
10 Text Color UINT32
11 Background Color UINT32
20 Text Address UINT64
30 Center Text BOOL
31 Use Fixed Size BOOL

TextField Component

Attribute Number Attribute Name Datatype
10 Text Color UINT32
11 Background Color UINT32
21 Mouse Hovering Over Button BOOL
22 Mouse Clicking On Button BOOL
30 Internal Box Component ID INT64
31 Internal Rectangle Component ID INT64
32 Internal Text Component ID INT64

Screen Component

Attribute Number Attribute Name Datatype
10 Window ID INT64
11 Background Color UINT32
12 Selected Component ID INT64

Image Rect Component

Attribute Number Attribute Name Datatype
10 IMAGE PATH UINT64
20 IMAGE SIZE X INT32
21 IMAGE SIZE Y INT32

Canvas Component

Attribute Number Attribute Name Datatype
10 Background Color UINT32

Component Type Table

Type ID Component Type Extra Infos
0 NONE Do not use xd
1 Screen Will not set the screen to active
2 Rect Will be a black 50x50 rect
3 Box Will be a transparent box
4 Text
5 Button Will be an empty white button, Inner Rectangle will have the ID 123401, Inner Text will have the ID 123402 (which you should change if you have multiple buttons)
6 TextField Will be an empty white textfield, Will not be of a fixed size
7 Image Rect Image inside will scale with the component size, the image size is readonly
8 Canvas Will be a black 50x50 canvas