DrawRect< T > Struct Template Reference

#include <gfx_basictypes.h>

详细描述

template<typename T>
struct maxon::DrawRect< T >

Definition of a rectangle used for window/draw operations.

公共成员函数

  DrawRect ( Vec2 < T, 1 > positionValue, DrawDimension < T > sizeValue)
  DrawRect (T x, T y, T w, T h)
MAXON_IMPLICIT   DrawRect (const Range < Vec2 < T, 1 >> & src )
  DrawRect ()
Bool   Contains (const Vec2 < T, 1 > &point) const
String   ToString (const FormatStatement *formatStatement=nullptr) const
  MAXON_OPERATOR_EQUALITY_HASHCODE ( DrawRect , position , size )

静态公共成员函数

static Result < void >  DescribeIO (const DataSerializeInterface &stream)

Public Attributes

Vec2 < T, 1 >  position
DrawDimension < T >  size

构造函数 & 析构函数文档编制

◆  DrawRect() [1/4]

DrawRect ( Vec2 < T, 1 >  positionValue ,
DrawDimension < T >  sizeValue  
)

◆  DrawRect() [2/4]

DrawRect ( x ,
y ,
w ,
h  
)

◆  DrawRect() [3/4]

MAXON_IMPLICIT DrawRect ( const Range < Vec2 < T, 1 >> &  src )

◆  DrawRect() [4/4]

DrawRect ( )

成员函数文档编制

◆  Contains()

Bool Contains ( const Vec2 < T, 1 > &  point ) const

◆  ToString()

String ToString ( const FormatStatement formatStatement = nullptr ) const

Returns a readable string of the content.

参数
[in] formatStatement Nullptr or additional formatting instruction. Currently no additional formatting instructions are supported.
返回
The converted result.

◆  MAXON_OPERATOR_EQUALITY_HASHCODE()

MAXON_OPERATOR_EQUALITY_HASHCODE ( DrawRect < T >  ,
position   ,
size    
)

◆  DescribeIO()

static Result <void> DescribeIO ( const DataSerializeInterface stream )
static

Describe all elements of this class for I/O operations.

参数
[in] stream The stream that is used to register the class members.
返回
OK on success.

Member Data Documentation

◆  position

Vec2 <T,1> position

◆  size

DrawDimension <T> size