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

#include <theme.hpp>

Inheritance diagram for theme::panel:

Public Member Functions

 panel (std::size_t sw, std::size_t sh, const config &cfg)
const std::string & image () const
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 image_

Additional Inherited Members

- Public Types inherited from theme::object

Detailed Description

Definition at line 151 of file theme.hpp.

Constructor & Destructor Documentation

◆ panel()

theme::panel::panel ( std::size_t  sw,
std::size_t  sh,
const config cfg 

Definition at line 471 of file theme.cpp.

Member Function Documentation

◆ image()

const std::string& theme::panel::image ( ) const

Definition at line 158 of file theme.hpp.

References image_.

Referenced by display::draw_panel().

◆ location()

rect & theme::object::location

Definition at line 53 of file theme.cpp.

Referenced by display::draw_panel().

Member Data Documentation

◆ image_

std::string theme::panel::image_

Definition at line 161 of file theme.hpp.

Referenced by image().

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