The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Private Attributes | List of all members
theme::slider Class Reference

#include <theme.hpp>

Inheritance diagram for theme::slider:
Inheritance graph

Public Member Functions

 slider ()
 
 slider (const config &cfg)
 
const std::string & title () const
 
const std::string & tooltip () const
 
const std::string & image () const
 
const std::string & overlay () const
 
bool black_line () const
 
void set_title (const std::string &new_title)
 
- Public Member Functions inherited from theme::object
 object ()
 
 object (const config &cfg)
 
virtual ~object ()
 
virtual SDL_Rect & location (const SDL_Rect &screen) const
 
const SDL_Rect & get_location () const
 
const std::string & get_id () const
 
void modify_location (const _rect &rect)
 
void modify_location (std::string rect_str, SDL_Rect rect_ref)
 

Private Attributes

std::string title_
 
std::string tooltip_
 
std::string image_
 
std::string overlay_
 
bool black_line_
 

Additional Inherited Members

- Public Types inherited from theme::object
enum  ANCHORING { FIXED, TOP_ANCHORED, PROPORTIONAL, BOTTOM_ANCHORED }
 

Detailed Description

Definition at line 187 of file theme.hpp.

Constructor & Destructor Documentation

◆ slider() [1/2]

theme::slider::slider ( )

Definition at line 470 of file theme.cpp.

◆ slider() [2/2]

theme::slider::slider ( const config cfg)
explicit

Definition at line 479 of file theme.cpp.

Member Function Documentation

◆ black_line()

bool theme::slider::black_line ( ) const
inline

Definition at line 203 of file theme.hpp.

◆ image()

const std::string& theme::slider::image ( ) const
inline

Definition at line 199 of file theme.hpp.

◆ overlay()

const std::string& theme::slider::overlay ( ) const
inline

Definition at line 201 of file theme.hpp.

◆ set_title()

void theme::slider::set_title ( const std::string &  new_title)
inline

Definition at line 205 of file theme.hpp.

◆ title()

const std::string& theme::slider::title ( ) const
inline

Definition at line 195 of file theme.hpp.

◆ tooltip()

const std::string& theme::slider::tooltip ( ) const
inline

Definition at line 197 of file theme.hpp.

Member Data Documentation

◆ black_line_

bool theme::slider::black_line_
private

Definition at line 208 of file theme.hpp.

◆ image_

std::string theme::slider::image_
private

Definition at line 207 of file theme.hpp.

◆ overlay_

std::string theme::slider::overlay_
private

Definition at line 207 of file theme.hpp.

◆ title_

std::string theme::slider::title_
private

Definition at line 207 of file theme.hpp.

◆ tooltip_

std::string theme::slider::tooltip_
private

Definition at line 207 of file theme.hpp.


The documentation for this class was generated from the following files: