YSTest: YGDIBase.h 文件参考

YSTest PreAlpha_b900_20201012 The YSLib Test Project

类 | 命名空间 | 宏定义 | 类型定义 | 枚举 | 函数 | 变量
YGDIBase.h 文件参考
Core

平台无关的基础图形学对象。 更多...

`#include "YModules.h"`
`#include <YSLib/Core/YCoreUtilities.h>`
`#include <limits>`
`#include <ystdex/operators.hpp>`
`#include <ystdex/string.hpp>`
YGDIBase.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

## 类

struct | YSLib::Drawing::ComponentTraits< size_t >
| 分量特征。 更多...
struct | YSLib::Drawing::ComponentTraits< 8 >
struct | YSLib::Drawing::ComponentTraits< 1 >
class | YSLib::Drawing::GBinaryGroup< _type >
| 屏幕二元组。 更多...
class | YSLib::Drawing::Size
| 屏幕区域大小。 更多...
class | YSLib::Drawing::Rect
| 屏幕标准矩形：表示屏幕矩形区域。 更多...

## 命名空间

| YSLib
| YSLib 命名空间。
| YSLib::Drawing
| 图形处理。
| YSLib::Drawing::ColorSpace
| 取不透明像素。

## 宏定义

#define | YSL_Impl_YSL_Impl_DefColorH_(hex, name)
#define | YSL_Impl_0x(hex) 0x##hex
#define | YSL_Impl_DefColorH(hex_, name) YSL_Impl_YSL_Impl_DefColorH_(YSL_Impl_0x(hex_), name)

## 类型定义

using | YSLib::Drawing::MonoType = octet
| 单色分量类型。 更多...
using | YSLib::Drawing::AlphaType = octet
| Alpha 分量类型。 更多...
using | YSLib::Drawing::Point = GBinaryGroup< SPos >
| 屏幕二维点（直角坐标表示）。 更多...
using | YSLib::Drawing::Vec = GBinaryGroup< SPos >
| 屏幕二维向量（直角坐标表示）。 更多...

## 枚举

enum

YSLib::Drawing::ColorSpace::ColorSet : Pixel::IntegerType {
YSLib::Drawing::ColorSpace::Aqua = Pixel::IntegerType(Pixel(Color(MonoType(((0x00FFFF) >> 16) & 0xFF), MonoType(((0x00FFFF) >> 8) & 0xFF), MonoType((0x00FFFF) & 0xFF)))), YSLib::Drawing::ColorSpace::Black = Pixel::IntegerType(Pixel(Color(MonoType(((0x000000) >> 16) & 0xFF), MonoType(((0x000000) >> 8) & 0xFF), MonoType((0x000000) & 0xFF)))), YSLib::Drawing::ColorSpace::Blue = Pixel::IntegerType(Pixel(Color(MonoType(((0x0000FF) >> 16) & 0xFF), MonoType(((0x0000FF) >> 8) & 0xFF), MonoType((0x0000FF) & 0xFF)))), YSLib::Drawing::ColorSpace::Fuchsia = Pixel::IntegerType(Pixel(Color(MonoType(((0xFF00FF) >> 16) & 0xFF), MonoType(((0xFF00FF) >> 8) & 0xFF), MonoType((0xFF00FF) & 0xFF)))),
YSLib::Drawing::ColorSpace::Gray = Pixel::IntegerType(Pixel(Color(MonoType(((0x808080) >> 16) & 0xFF), MonoType(((0x808080) >> 8) & 0xFF), MonoType((0x808080) & 0xFF)))), YSLib::Drawing::ColorSpace::Green = Pixel::IntegerType(Pixel(Color(MonoType(((0x008000) >> 16) & 0xFF), MonoType(((0x008000) >> 8) & 0xFF), MonoType((0x008000) & 0xFF)))), YSLib::Drawing::ColorSpace::Lime = Pixel::IntegerType(Pixel(Color(MonoType(((0x00FF00) >> 16) & 0xFF), MonoType(((0x00FF00) >> 8) & 0xFF), MonoType((0x00FF00) & 0xFF)))), YSLib::Drawing::ColorSpace::Maroon = Pixel::IntegerType(Pixel(Color(MonoType(((0x800000) >> 16) & 0xFF), MonoType(((0x800000) >> 8) & 0xFF), MonoType((0x800000) & 0xFF)))),
YSLib::Drawing::ColorSpace::Navy = Pixel::IntegerType(Pixel(Color(MonoType(((0x000080) >> 16) & 0xFF), MonoType(((0x000080) >> 8) & 0xFF), MonoType((0x000080) & 0xFF)))), YSLib::Drawing::ColorSpace::Olive = Pixel::IntegerType(Pixel(Color(MonoType(((0x808000) >> 16) & 0xFF), MonoType(((0x808000) >> 8) & 0xFF), MonoType((0x808000) & 0xFF)))), YSLib::Drawing::ColorSpace::Purple = Pixel::IntegerType(Pixel(Color(MonoType(((0x800080) >> 16) & 0xFF), MonoType(((0x800080) >> 8) & 0xFF), MonoType((0x800080) & 0xFF)))), YSLib::Drawing::ColorSpace::Red = Pixel::IntegerType(Pixel(Color(MonoType(((0xFF0000) >> 16) & 0xFF), MonoType(((0xFF0000) >> 8) & 0xFF), MonoType((0xFF0000) & 0xFF)))),
YSLib::Drawing::ColorSpace::Silver = Pixel::IntegerType(Pixel(Color(MonoType(((0xC0C0C0) >> 16) & 0xFF), MonoType(((0xC0C0C0) >> 8) & 0xFF), MonoType((0xC0C0C0) & 0xFF)))), YSLib::Drawing::ColorSpace::Teal = Pixel::IntegerType(Pixel(Color(MonoType(((0x008080) >> 16) & 0xFF), MonoType(((0x008080) >> 8) & 0xFF), MonoType((0x008080) & 0xFF)))), YSLib::Drawing::ColorSpace::White = Pixel::IntegerType(Pixel(Color(MonoType(((0xFFFFFF) >> 16) & 0xFF), MonoType(((0xFFFFFF) >> 8) & 0xFF), MonoType((0xFFFFFF) & 0xFF)))), YSLib::Drawing::ColorSpace::Yellow = Pixel::IntegerType(Pixel(Color(MonoType(((0xFFFF00) >> 16) & 0xFF), MonoType(((0xFFFF00) >> 8) & 0xFF), MonoType((0xFFFF00) & 0xFF))))
}

| 默认颜色集。 更多...
enum | YSLib::Drawing::Rotation : yimpl(size_t) { YSLib::Drawing::RDeg0 = 0, YSLib::Drawing::RDeg90 = 1, YSLib::Drawing::RDeg180 = 2, YSLib::Drawing::RDeg270 = 3 }
| 逆时针旋转角度指示输出指向。 更多...

## 函数

template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn bool | YSLib::Drawing::operator== (const GBinaryGroup< _type > &x, const GBinaryGroup< _type > &y) ynothrow
| 比较：屏幕二元组相等关系。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::operator+ (const GBinaryGroup< _type > &x, const GBinaryGroup< _type > &y) ynothrow
| 加法：屏幕二元组。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::operator- (const GBinaryGroup< _type > &x, const GBinaryGroup< _type > &y) ynothrow
| 减法：屏幕二元组。 更多...
template<typename _type , typename _tScalar >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::operator* (const GBinaryGroup< _type > &val, _tScalar l) ynothrow
| 数乘：屏幕二元组。 更多...
template<class _tBinary >
YB_ATTR_nodiscard YB_PURE yconstfn _tBinary | YSLib::Drawing::Transpose (const _tBinary &obj) ynothrow
| 转置。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::TransposeCCW (const GBinaryGroup< _type > &val) ynothrow
| 转置变换：逆时针旋转直角。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::TransposeCW (const GBinaryGroup< _type > &val) ynothrow
| 转置变换：顺时针旋转直角。 更多...
template<size_t _vIdx, typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn _type & | YSLib::Drawing::get (GBinaryGroup< _type > &val)
| 取分量。 更多...
template<size_t _vIdx, typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn const _type & | YSLib::Drawing::get (const GBinaryGroup< _type > &val)
template<typename _type >
YB_ATTR_nodiscard YB_PURE std::string | YSLib::Drawing::to_string (const GBinaryGroup< _type > &val)
| 转换为字符串。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::operator+ (GBinaryGroup< _type > val, const Size &s) ynothrow
| 加法：使用屏幕二元组和屏幕区域大小分量对应相加构造屏幕二元组。 更多...
template<typename _type >
YB_ATTR_nodiscard YB_PURE yconstfn GBinaryGroup< _type > | YSLib::Drawing::operator- (GBinaryGroup< _type > val, const Size &s) ynothrow
| 减法：使用屏幕二元组和屏幕区域大小分量对应相加构造屏幕二元组。 更多...
YB_ATTR_nodiscard YB_PURE yconstfn | YSLib::Drawing::PDefH (Size, Transpose, const Size &s) ynothrow ImplRet(
| 转置。 更多...
template<typename _tScalar = float>
YB_ATTR_nodiscard YB_PURE yconstfn _tScalar | YSLib::Drawing::ScaleMin (const Size &x, const Size &y, _tScalar threshold=1.F)
| 计算两个大小和阈值限定的最小缩放值。 更多...
YB_ATTR_nodiscard YB_STATELESS yconstfn Rotation rot | YSLib::Drawing::ImplRet (Rotation((size_t(rot)+1) % 4)) YB_ATTR_nodiscard YB_STATELESS yconstfn PDefH(Rotation
YB_ATTR_nodiscard YB_STATELESS yconstfn Rotation rot Rotation rot | YSLib::Drawing::ImplRet (Rotation((size_t(rot) - 1) % 4)) enum Orientation
| 二元方向。 更多...

## 变量

YB_ATTR_nodiscard YB_STATELESS yconstfn | YSLib::Drawing::RotateCCW
YB_ATTR_nodiscard YB_STATELESS yconstfn Rotation rot | YSLib::Drawing::RotateCW

## 详细描述

平台无关的基础图形学对象。

版本
  r2568

作者
  FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com

自从
  build 563

创建时间:
  2011-05-03 07:20:51 +0800

修改时间:
  2020-02-04 14:52 +0800

文本编码:
  UTF-8

模块名称:
  YSLib::Core::YGDIBase

在文件 YGDIBase.h 中定义.

## 宏定义说明

## ◆ YSL_Impl_0x

#define YSL_Impl_0x | ( |  | hex | ) | 0x##hex

在文件 YGDIBase.h 第 251 行定义.

## ◆ YSL_Impl_DefColorH

#define YSL_Impl_DefColorH | ( |  | hex_,
|  |  | name
| ) |  | YSL_Impl_YSL_Impl_DefColorH_(YSL_Impl_0x(hex_), name)

在文件 YGDIBase.h 第 252 行定义.

## ◆ YSL_Impl_YSL_Impl_DefColorH_

#define YSL_Impl_YSL_Impl_DefColorH_ | ( |  | hex,
|  |  | name
| ) |  |

值:
name = Pixel::IntegerType(Pixel(Color(MonoType(((hex) >> 16) & 0xFF), \
MonoType(((hex) >> 8) & 0xFF), MonoType((hex) & 0xFF))))

在文件 YGDIBase.h 第 248 行定义.

YSLib::Drawing::MonoType
octet MonoType
单色分量类型。
Definition: YGDIBase.h:47
Color
Pixel Color
Definition: CharRenderer.cpp:59
NPL::A1::name
const char * name
Definition: NPLA1.h:1876