The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions
scrollbar_container.cpp File Reference
#include "gui/widgets/scrollbar_container_private.hpp"
#include "gui/auxiliary/find_widget.hpp"
#include "gui/core/log.hpp"
#include "gui/core/layout_exception.hpp"
#include "gui/widgets/clickable.hpp"
#include "gui/widgets/spacer.hpp"
#include "gui/widgets/window.hpp"
#include "sdl/rect.hpp"
#include "utils/functional.hpp"
Include dependency graph for scrollbar_container.cpp:

Go to the source code of this file.

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__
 
#define LOG_HEADER   LOG_SCOPE_HEADER + ':'
 

Functions

static void gui2::set_scrollbar_mode (tgrid *scrollbar_grid, tscrollbar_ *scrollbar, tscrollbar_container::tscrollbar_mode &scrollbar_mode, const unsigned items, const unsigned visible_items)
 
static bool gui2::is_inserted_before (unsigned insertion_pos, unsigned old_item_count, unsigned old_position, unsigned visible_items)
 
static void gui2::adjust_scrollbar_mode (tgrid *scrollbar_grid, tscrollbar_ *scrollbar, tscrollbar_container::tscrollbar_mode &scrollbar_mode, const unsigned items_before, const unsigned items_after, const int insertion_pos, const unsigned visible_items)
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file scrollbar_container.cpp.

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'
#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__