The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::stringimage () const
 
- Public Member Functions inherited from theme::object
 object ()
 
 object (const config &cfg)
 
virtual ~object ()
 
SDL_Rect & location (const SDL_Rect &screen) const
 
const SDL_Rect & get_location () const
 
const std::stringget_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 161 of file theme.hpp.

Constructor & Destructor Documentation

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

Definition at line 525 of file theme.cpp.

Member Function Documentation

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

Definition at line 168 of file theme.hpp.

References image_.

Referenced by draw_panel().

Member Data Documentation

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

Definition at line 171 of file theme.hpp.

Referenced by image().


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