LeechCraft Monocle  0.6.70-18450-gabe19ee3b0
Modular document viewer for LeechCraft
LC::Monocle::Rect< R > Struct Template Reference

#include "coordsbase.h"

+ Inheritance diagram for LC::Monocle::Rect< R >:

Public Types

using Type = QRectF
 

Public Member Functions

 Rect ()=default
 
 Rect (const Type &r)
 
 Rect (Pos< R > topLeft, Pos< R > bottomRight)
 
auto operator (const Rect &) const =default
 
template<typename P >
 requires (P::Relativity==R) P TopLeft() const
 
template<typename P >
 requires (P::Relativity==R) P BottomRight() const
 
void SetLeft (qreal x)
 
void SetRight (qreal x)
 
Type ToRectF () const
 
bool IsEmpty () const
 
template<typename Self >
Self operator| (this const Self &r1, const Self &r2)
 
template<typename Self >
Self operator & (this const Self &r1, const Self &r2)
 

Public Attributes

Type R_ {}
 

Static Public Attributes

static constexpr auto Relativity = R
 

Detailed Description

template<Relativity R>
struct LC::Monocle::Rect< R >

Definition at line 109 of file coordsbase.h.

Member Typedef Documentation

◆ Type

template<Relativity R>
using LC::Monocle::Rect< R >::Type = QRectF

Definition at line 113 of file coordsbase.h.

Constructor & Destructor Documentation

◆ Rect() [1/3]

template<Relativity R>
LC::Monocle::Rect< R >::Rect ( )
default

◆ Rect() [2/3]

template<Relativity R>
LC::Monocle::Rect< R >::Rect ( const Type r)
inlineexplicit

Definition at line 119 of file coordsbase.h.

◆ Rect() [3/3]

template<Relativity R>
LC::Monocle::Rect< R >::Rect ( Pos< R >  topLeft,
Pos< R >  bottomRight 
)
inlineexplicit

Definition at line 124 of file coordsbase.h.

Member Function Documentation

◆ IsEmpty()

template<Relativity R>
bool LC::Monocle::Rect< R >::IsEmpty ( ) const
inline

Definition at line 160 of file coordsbase.h.

◆ operator()

template<Relativity R>
auto LC::Monocle::Rect< R >::operator ( const Rect< R > &  ) const
default

◆ operator &()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Rect< R >::operator& ( this const Self &  r1,
const Self &  r2 
)
inline

Definition at line 172 of file coordsbase.h.

◆ operator|()

template<Relativity R>
template<typename Self >
Self LC::Monocle::Rect< R >::operator| ( this const Self &  r1,
const Self &  r2 
)
inline

Definition at line 166 of file coordsbase.h.

◆ requires() [1/2]

template<Relativity R>
template<typename P >
LC::Monocle::Rect< R >::requires ( P::Relativity  = = R) const
inline

Definition at line 132 of file coordsbase.h.

◆ requires() [2/2]

template<Relativity R>
template<typename P >
LC::Monocle::Rect< R >::requires ( P::Relativity  = = R) const
inline

Definition at line 139 of file coordsbase.h.

◆ SetLeft()

template<Relativity R>
void LC::Monocle::Rect< R >::SetLeft ( qreal  x)
inline

Definition at line 145 of file coordsbase.h.

◆ SetRight()

template<Relativity R>
void LC::Monocle::Rect< R >::SetRight ( qreal  x)
inline

Definition at line 150 of file coordsbase.h.

◆ ToRectF()

template<Relativity R>
Type LC::Monocle::Rect< R >::ToRectF ( ) const
inline

Definition at line 155 of file coordsbase.h.

Member Data Documentation

◆ R_

◆ Relativity

template<Relativity R>
constexpr auto LC::Monocle::Rect< R >::Relativity = R
static

Definition at line 111 of file coordsbase.h.


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