Rose
Classes | Namespaces | Functions
Text.h File Reference
#include "Color.h"
#include "Font.h"
#include "GraphicsModel.h"
#include <string>
#include <utility>
#include <regex>
Include dependency graph for Text.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rose::PointSize
 
struct  rose::FontName
 A structure to pass a Font name to a Widget through a manipulator. More...
 
class  rose::Text
 Encapsulation of code for rendering Text. More...
 

Namespaces

 rose
 ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Widget and not a Container (by user observation).
 

Functions

template<class WidgetClass >
std::shared_ptr< WidgetClass > operator<< (std::shared_ptr< WidgetClass > widget, rose::PointSize pointSize)
 Insertion operator to set PointSize on a Text. More...
 
template<class WidgetClass >
std::shared_ptr< WidgetClass > operator<< (std::shared_ptr< WidgetClass > widget, rose::FontName fontName)
 Insertion operator to set Font name on a Text. More...
 

Detailed Description

Author
Richard Buckley richa.nosp@m.rd.b.nosp@m.uckle.nosp@m.y@ie.nosp@m.ee.or.nosp@m.g
Version
1.0
Date
2021-03-09

Function Documentation

◆ operator<<() [1/2]

template<class WidgetClass >
std::shared_ptr<WidgetClass> operator<< ( std::shared_ptr< WidgetClass >  widget,
rose::PointSize  pointSize 
)
inline

Insertion operator to set PointSize on a Text.

Template Parameters
WidgetClassThe class of the Widget.
Parameters
widgetThe Widget.
pointSizeThe PointSize.
Returns
The Widget.

◆ operator<<() [2/2]

template<class WidgetClass >
std::shared_ptr<WidgetClass> operator<< ( std::shared_ptr< WidgetClass >  widget,
rose::FontName  fontName 
)
inline

Insertion operator to set Font name on a Text.

Template Parameters
WidgetClassThe class of the Widget.
Parameters
widgetThe Widget.
pointSizeThe FontName.
Returns
The Widget.