ShishGL  1.0
A simple modular cross-platform graphics library
Sh::TextShape Class Reference

#include <TextShape.hpp>

Inheritance diagram for Sh::TextShape:
Collaboration diagram for Sh::TextShape:

Public Member Functions

 TextShape (const std::string_view &text, IPlatform::Align text_align=IPlatform::Align::LEFT)
 
void draw (const Frame &frame) const override
 
bool contains (const Frame &, const Vector2< double > &) const override
 
- Public Member Functions inherited from Sh::Shape2D
virtual ~Shape2D ()=default
 

Constructor & Destructor Documentation

◆ TextShape()

Sh::TextShape::TextShape ( const std::string_view &  text,
IPlatform::Align  text_align = IPlatform::Align::LEFT 
)
inlineexplicit

Member Function Documentation

◆ contains()

bool Sh::TextShape::contains ( const Frame ,
const Vector2< double > &   
) const
inlineoverridevirtual

Implements Sh::Shape2D.

◆ draw()

void Sh::TextShape::draw ( const Frame frame) const
inlineoverridevirtual

Implements Sh::Shape2D.


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