Rose
Classes | Namespaces | Functions
ScreenMetrics.h File Reference
#include <array>
#include <iostream>
#include <iomanip>
#include <tuple>
#include <SDL.h>
#include "Constants.h"
#include "Utilities.h"
Include dependency graph for ScreenMetrics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rose::Size
 A size in integer dimensions. More...
 
class  rose::Position< T >
 A position in integer (x, y) co-ordinates. More...
 
class  rose::Rectangle
 A composite of a Position and a Size. More...
 
class  rose::Padding
 Abstraction of space consumed around an object for space, borders, etc. More...
 
class  rose::Line
 An abstraction of a line defined by two end points. 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<typename T , size_t N>
std::ostream & operator<< (std::ostream &strm, const std::array< T, N > &array)
 An output stream inserter to print ScreenMetrics. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &strm, const std::optional< T > &opt)
 An output stream inserter to print a std::optional Rectangle, Position or Size. 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-01-20

Function Documentation

◆ operator<<() [1/2]

template<typename T , size_t N>
std::ostream& operator<< ( std::ostream &  strm,
const std::array< T, N > &  array 
)
inline

An output stream inserter to print ScreenMetrics.

Template Parameters
TThe underlying type.
NThe size
Parameters
strmThe output stream.
arrayThe ScreenMetric
Returns
The output stream.

◆ operator<<() [2/2]

template<typename T >
std::ostream& operator<< ( std::ostream &  strm,
const std::optional< T > &  opt 
)
inline

An output stream inserter to print a std::optional Rectangle, Position or Size.

Template Parameters
TThe type to print.
Parameters
strmThe output stream.
optThe std::optional
Returns
The output stream.