15 #define GETTEXT_DOMAIN "wesnoth-lib"
17 #include <boost/test/unit_test.hpp>
33 BOOST_REQUIRE_NE(widget, static_cast<gui2::twidget*>(
nullptr));
50 boost::scoped_ptr<gui2::iterator::twalker_> visitor(control.create_walker());
52 BOOST_REQUIRE_NE(visitor.get(),
static_cast<void*
>(
nullptr));
86 test_control<gui2::tlabel>();
93 test_control<gui2::tgrid>();
104 boost::scoped_ptr<gui2::iterator::twalker_> visitor(grid.create_walker());
static config_cache & instance()
Get reference to the singleton object.
static void add_widget(gui2::tgrid &grid, gui2::twidget *widget, const std::string &id, const unsigned row, const unsigned column)
static const unsigned VERTICAL_GROW_SEND_TO_CLIENT
static const unsigned HORIZONTAL_GROW_SEND_TO_CLIENT
When calling next the following it has the following results.
GLenum GLenum GLvoid GLvoid * column
void clear_defines()
Clear stored defines map to default values.
When calling next the following it has the following results.
static void test_control()
GLenum GLenum GLvoid * row
void set_child(twidget *widget, const unsigned row, const unsigned col, const unsigned flags, const unsigned border_size)
Sets a child in the grid.
BOOST_AUTO_TEST_CASE(test_gui2_visitor)
void add_define(const std::string &define)
Add a entry to preproc defines map.
GLsizei const GLcharARB ** string
Visit the children of its nested grid.
Singleton class to manage game config file caching.