-
Notifications
You must be signed in to change notification settings - Fork 4
Bricks
Raphael Menges edited this page Oct 20, 2015
·
3 revisions
In contrast to layouts, bricks cannot be directly added to a GUI but used as replacement by id for an existing element in an added layout. Bricks are defined in ".beyegui" files in xml syntax. Minimal example of the content of such a file is given below:
<?xml version="1.0"?>
<circlebutton></circlebutton>
There must be exactly one element. Available elements are listed on the page Elements.
Just call the interface function below with a pointer to the layout containing the element to be replaced and its id. doFading
specifies, whether the replaced element fades out or disappears instantly. Last parameter of the call is the relative filepath to the ".beyegui" file including the file itself.
void eyegui::replaceElementWithBrick(eyegui::Layout* pLayout, std::string id, bool doFading, std::string filepath);