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

#include <theme.hpp>

Inheritance diagram for theme::panel:
Inheritance graph

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 145 of file theme.hpp.

Constructor & Destructor Documentation

◆ panel()

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

Definition at line 464 of file theme.cpp.

Member Function Documentation

◆ image()

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

Definition at line 152 of file theme.hpp.

Referenced by draw_panel().

Member Data Documentation

◆ image_

std::string theme::panel::image_
private

Definition at line 155 of file theme.hpp.


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