The Battle for Wesnoth  1.15.2+dev
Macros | Functions
visitor.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "config_cache.hpp"
#include "gui/auxiliary/iterator/walker.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/grid.hpp"
#include <iostream>
#include <typeinfo>
Include dependency graph for visitor.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

Functions

static void add_widget (gui2::grid &grid, gui2::widget *widget, const std::string &id, const unsigned row, const unsigned column)
 
template<class T >
static void test_control (T &&control)
 
static void test_control ()
 
static void test_grid ()
 
 BOOST_AUTO_TEST_CASE (test_gui2_visitor)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file visitor.cpp.

Function Documentation

◆ add_widget()

static void add_widget ( gui2::grid grid,
gui2::widget widget,
const std::string &  id,
const unsigned  row,
const unsigned  column 
)
static

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( test_gui2_visitor  )

◆ test_control() [1/2]

template<class T >
static void test_control ( T &&  control)
static

◆ test_control() [2/2]

static void test_control ( )
static

Definition at line 82 of file visitor.cpp.

References test_control().

◆ test_grid()

static void test_grid ( )
static