-
Notifications
You must be signed in to change notification settings - Fork 4
Layouts
Layouts are defined in ".xeyegui" files in xml syntax. Minimal example of the content of such a file is given below:
<?xml version="1.0"?>
<layout>
<circlebutton></circlebutton>
</layout>The outer xml element must be "layout" and there must be exactly one inner element. This inner element could be a grid with multiple elements or only one as described in the example above. For a complete list of available elements take a look at Elements. The layout element in xml can have following attributes:
| Attribute | Type | Description |
|---|---|---|
| stylesheet | string | Relative path to used stylesheet |
More about stylesheets in Styling.
Adding a layout to a existing GUI is done by calling the addLayout function of the interface with the pointer to the GUI and the relative path to the xml file with the layout.
eyegui::Layout* pLayout = eyegui::addLayout(pGUI, "HelloLayout.xeyegui");If any parsing errors or warnings appear, the previously defined callbacks are called with a message string describing the problem.