DrawDimension< T > Struct Template Reference

#include <gfx_basictypes.h>

详细描述

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

Size of a window/drawing operation.

公共成员函数

  DrawDimension ()
  DrawDimension (T w, T h)
MAXON_IMPLICIT   DrawDimension (const Vec2 < T, 1 > & src )
String   ToString (const FormatStatement *formatStatement=nullptr) const
  MAXON_OPERATOR_EQUALITY_HASHCODE ( DrawDimension , width , height )

静态公共成员函数

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

Public Attributes

width
height

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

◆  DrawDimension() [1/3]

DrawDimension ( )

◆  DrawDimension() [2/3]

DrawDimension ( w ,
h  
)

◆  DrawDimension() [3/3]

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

成员函数文档编制

◆  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 ( DrawDimension < T >  ,
width   ,
height    
)

◆  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

◆  width

T width

◆  height

T height