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

#include <theme.hpp>

Inheritance diagram for theme::slider:

Public Member Functions

 slider ()
 
 slider (std::size_t sw, std::size_t sh, 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)
 
virtual rectlocation (const SDL_Rect &screen) const
 
- Public Member Functions inherited from theme::object
 object ()
 
 object (std::size_t sw, std::size_t sh, const config &cfg)
 
virtual ~object ()
 
virtual rectlocation (const SDL_Rect &screen) const
 
const rectget_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 193 of file theme.hpp.

Constructor & Destructor Documentation

◆ slider() [1/2]

theme::slider::slider ( )

Definition at line 477 of file theme.cpp.

◆ slider() [2/2]

theme::slider::slider ( std::size_t  sw,
std::size_t  sh,
const config cfg 
)
explicit

Definition at line 486 of file theme.cpp.

Member Function Documentation

◆ black_line()

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

Definition at line 209 of file theme.hpp.

References black_line_.

◆ image()

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

Definition at line 205 of file theme.hpp.

References image_.

◆ location()

rect & theme::object::location

Definition at line 53 of file theme.cpp.

◆ overlay()

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

Definition at line 207 of file theme.hpp.

References overlay_.

◆ set_title()

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

Definition at line 211 of file theme.hpp.

References title_.

◆ title()

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

Definition at line 201 of file theme.hpp.

References title_.

◆ tooltip()

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

Definition at line 203 of file theme.hpp.

References tooltip_.

Member Data Documentation

◆ black_line_

bool theme::slider::black_line_
private

Definition at line 214 of file theme.hpp.

Referenced by black_line().

◆ image_

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

Definition at line 213 of file theme.hpp.

Referenced by image().

◆ overlay_

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

Definition at line 213 of file theme.hpp.

Referenced by overlay().

◆ title_

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

Definition at line 213 of file theme.hpp.

Referenced by set_title(), and title().

◆ tooltip_

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

Definition at line 213 of file theme.hpp.

Referenced by tooltip().


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