The Battle for Wesnoth  1.15.2+dev
Namespaces | Macros | Functions
scrollbar_container.cpp File Reference
#include "gui/widgets/scrollbar_container_private.hpp"
#include "gui/auxiliary/find_widget.hpp"
#include "gui/core/event/message.hpp"
#include "gui/core/layout_exception.hpp"
#include "gui/core/log.hpp"
#include "gui/widgets/clickable_item.hpp"
#include "gui/widgets/spacer.hpp"
#include "gui/widgets/window.hpp"
#include "sdl/rect.hpp"
#include <algorithm>
#include "utils/functional.hpp"
Include dependency graph for scrollbar_container.cpp:

Go to the source code of this file.

Namespaces

 gui2
 Generic file dialog.
 

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 (grid *scrollbar_grid, scrollbar_base *scrollbar, scrollbar_container::scrollbar_mode &scrollbar_mode, const unsigned items, const unsigned visible_items, grid *content_grid)
 
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 (grid *scrollbar_grid, scrollbar_base *scrollbar, scrollbar_container::scrollbar_mode &scrollbar_mode, const unsigned items_before, const unsigned items_after, const int insertion_pos, const unsigned visible_items)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file scrollbar_container.cpp.

◆ LOG_HEADER

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'

◆ LOG_SCOPE_HEADER

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