TGUI: Texus' Graphical User InterfaceEasy to useTGUI aims to be easy to use, with only a few lines you have a fully functioning TextBox on your screen.
tgui::TextBox::Ptr textbox = tgui::TextBox::create();
textbox->setPosition(100, 50);
textbox->setSize(300, 200);
textbox->setTextSize(16);
gui.add(textbox);
CustomizableThe widgets can be created by just using colors or by using images, making the look very customizable.
When widgets are created without a theme then they will use the build-in white theme (top left image). TGUI also ships with ready to use Black and BabyBlue themes (top right and bottom right images).
(click images for larger version)
Cross-platformTGUI tries to support the same operating systems as SFML, so it supports Windows, Linux, Mac OS X and FreeBSD and provides experimental support for Raspberry Pi, Android and iOS.
Installation tutorials are available for each of these systems.
Gui BuilderA Gui Builder is included to allow easily creating and editing forms.
Relative sizes and positionsNext to passing absolute values, you can specify positions and sizes relative to the parent.
checkbox->setPosition("30%", "20%");
editBox->setSize(400, "5%");
The widget position and size will automatically update when its parent resizes.
More informationFor more information about the project, check the
website which has
tutorials,
documentation and a few
example codes. Source code can be found on
GitHub.
If you have problems with getting tgui to work or if you find bugs then please open a topic on the
TGUI forum.
Some images