The Battle for Wesnoth  1.19.21+dev
Protected Member Functions | Protected Attributes | List of all members
gui2::rect_bounded_shape Class Reference

#include <canvas_private.hpp>

Inheritance diagram for gui2::rect_bounded_shape:

Protected Member Functions

 rect_bounded_shape (const rect &bounds)
 
 rect_bounded_shape (const point &origin, const std::string &w_f, const std::string &h_f)
 
 rect_bounded_shape (const config &cfg)
 Constructor. More...
 

Protected Attributes

typed_formula< int > x_
 The x coordinate of the rectangle. More...
 
typed_formula< int > y_
 The y coordinate of the rectangle. More...
 
typed_formula< int > w_
 The width of the rectangle. More...
 
typed_formula< int > h_
 The height of the rectangle. More...
 

Additional Inherited Members

- Public Member Functions inherited from gui2::canvas::shape
 shape ()=default
 
 shape (const config &cfg)
 
virtual ~shape ()
 
virtual void draw (wfl::map_formula_callable &variables)=0
 Draws the canvas. More...
 
bool immutable () const
 

Detailed Description

Definition at line 56 of file canvas_private.hpp.

Constructor & Destructor Documentation

◆ rect_bounded_shape() [1/3]

gui2::rect_bounded_shape::rect_bounded_shape ( const rect bounds)
inlineexplicitprotected

Definition at line 60 of file canvas_private.hpp.

◆ rect_bounded_shape() [2/3]

gui2::rect_bounded_shape::rect_bounded_shape ( const point origin,
const std::string &  w_f,
const std::string &  h_f 
)
inlineexplicitprotected

Definition at line 69 of file canvas_private.hpp.

◆ rect_bounded_shape() [3/3]

gui2::rect_bounded_shape::rect_bounded_shape ( const config cfg)
inlineexplicitprotected

Constructor.

Parameters
cfgThe config object to define the rectangle.

Definition at line 83 of file canvas_private.hpp.

Member Data Documentation

◆ h_

typed_formula<int> gui2::rect_bounded_shape::h_
protected

The height of the rectangle.

Definition at line 95 of file canvas_private.hpp.

Referenced by gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), and gui2::text_shape::draw().

◆ w_

typed_formula<int> gui2::rect_bounded_shape::w_
protected

The width of the rectangle.

Definition at line 94 of file canvas_private.hpp.

Referenced by gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), and gui2::text_shape::draw().

◆ x_

typed_formula<int> gui2::rect_bounded_shape::x_
protected

The x coordinate of the rectangle.

Definition at line 92 of file canvas_private.hpp.

Referenced by gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), and gui2::text_shape::draw().

◆ y_

typed_formula<int> gui2::rect_bounded_shape::y_
protected

The y coordinate of the rectangle.

Definition at line 93 of file canvas_private.hpp.

Referenced by gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), and gui2::text_shape::draw().


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