pixled-lib  1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pixled::box Class Reference

#include <geometry.h>

Inheritance diagram for pixled::box:
Inheritance graph
[legend]
Collaboration diagram for pixled::box:
Collaboration graph
[legend]

Public Member Functions

 box (point position, coordinate width, coordinate height)
 
point position () const
 
coordinate width () const
 
coordinate height () const
 

Protected Member Functions

 box ()
 

Protected Attributes

point _position
 
coordinate _width
 
coordinate _height
 

Detailed Description

A basic box class.

Constructor & Destructor Documentation

◆ box() [1/2]

pixled::box::box ( )
protected

Default box constructor.

The box is initialized at (0, 0), with a null width and height.

◆ box() [2/2]

pixled::box::box ( point  position,
coordinate  width,
coordinate  height 
)

box constructor.

Parameters
positionposition of the bottom left corner of the box
widthbox width
heightbox height

Member Function Documentation

◆ position()

point pixled::box::position ( ) const
inline

Position of the bottom left corner of the box.

◆ width()

coordinate pixled::box::width ( ) const
inline

Box width.

◆ height()

coordinate pixled::box::height ( ) const
inline

Box height.

Member Data Documentation

◆ _position

point pixled::box::_position
protected

Position of the bottom left corner of the box.

◆ _width

coordinate pixled::box::_width
protected

Box width.

◆ _height

coordinate pixled::box::_height
protected

Box height.


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