Euphoria
eu::Lrud< T > Struct Template Reference

Generic version of a CSS like padding type. More...

#include <lrud.h>

Public Types

using Self = Lrud< T >
 

Public Member Functions

 Lrud (const T &t)
 

Static Public Member Functions

static Self from_lrud (const T &lr, const T &ud)
 Create a new fourway from left-righ and up-down. More...
 
static Self from_lrud (const T &l, const T &r, const T &u, const T &d)
 Create a new fourway from left right up and down. More...
 

Public Attributes

left
 
right
 
up
 
down
 

Detailed Description

template<typename T>
struct eu::Lrud< T >

Generic version of a CSS like padding type.

Definition at line 19 of file lrud.h.

Member Typedef Documentation

◆ Self

template<typename T >
using eu::Lrud< T >::Self = Lrud<T>

Definition at line 21 of file lrud.h.

Constructor & Destructor Documentation

◆ Lrud()

template<typename T >
eu::Lrud< T >::Lrud ( const T &  t)
inlineexplicit

Definition at line 28 of file lrud.h.

Member Function Documentation

◆ from_lrud() [1/2]

template<typename T >
static Self eu::Lrud< T >::from_lrud ( const T &  l,
const T &  r,
const T &  u,
const T &  d 
)
inlinestatic

Create a new fourway from left right up and down.

Definition at line 51 of file lrud.h.

◆ from_lrud() [2/2]

template<typename T >
static Self eu::Lrud< T >::from_lrud ( const T &  lr,
const T &  ud 
)
inlinestatic

Create a new fourway from left-righ and up-down.

Definition at line 41 of file lrud.h.

Member Data Documentation

◆ down

template<typename T >
T eu::Lrud< T >::down

Definition at line 26 of file lrud.h.

◆ left

template<typename T >
T eu::Lrud< T >::left

Definition at line 23 of file lrud.h.

◆ right

template<typename T >
T eu::Lrud< T >::right

Definition at line 24 of file lrud.h.

◆ up

template<typename T >
T eu::Lrud< T >::up

Definition at line 25 of file lrud.h.


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