roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::internal::TileBase Class Reference

#include <tile.h>

Inheritance diagram for roo_display::internal::TileBase:
[legend]
Collaboration diagram for roo_display::internal::TileBase:
[legend]

Public Member Functions

 TileBase (const Drawable &interior, Box extents, Alignment alignment, Color bgcolor=color::Background)
 
void setBgColor (Color bgcolor)
 
void setBackground (const Rasterizable *background)
 
Box extents () const override
 Return the bounding box encompassing all pixels that need to be drawn.
 
- Public Member Functions inherited from roo_display::Drawable
virtual ~Drawable ()
 
virtual Box anchorExtents () const
 Return the bounds used for alignment.
 

Protected Member Functions

void draw (const Surface &s, const Drawable &interior) const
 
void drawInternal (const Surface &s, const Drawable &interior) const
 

Additional Inherited Members

- Static Public Member Functions inherited from roo_display::Drawable
static const DrawableEmpty ()
 A singleton representing a no-op drawable with no bounding box.
 

Detailed Description

Definition at line 39 of file tile.h.

Constructor & Destructor Documentation

◆ TileBase()

roo_display::internal::TileBase::TileBase ( const Drawable interior,
Box  extents,
Alignment  alignment,
Color  bgcolor = color::Background 
)
inline

Definition at line 41 of file tile.h.

Member Function Documentation

◆ draw()

void roo_display::internal::TileBase::draw ( const Surface s,
const Drawable interior 
) const
protected

Definition at line 11 of file tile.cpp.

References drawInternal().

◆ drawInternal()

◆ extents()

Box roo_display::internal::TileBase::extents ( ) const
inlineoverridevirtual

Return the bounding box encompassing all pixels that need to be drawn.

This method is called during a transaction and must not block or perform I/O.

Implements roo_display::Drawable.

Definition at line 58 of file tile.h.

References roo_display::internal::SolidBorder::extents().

Referenced by drawInternal().

◆ setBackground()

void roo_display::internal::TileBase::setBackground ( const Rasterizable background)
inline

Definition at line 53 of file tile.h.

◆ setBgColor()

void roo_display::internal::TileBase::setBgColor ( Color  bgcolor)
inline

Definition at line 48 of file tile.h.

References bgcolor.


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