YSTest: yres.h 源文件

YSTest PreAlpha_b500_20140530 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
yres.h
浏览该文件的文档.
1 /*
2 © 2009-2013 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_Service_yres_h_
29 #define YSL_INC_Service_yres_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_YStorage
33 #include YFM_YSLib_Service_YGDI
34
35 namespace YSLib
36 {
37
42 DeclI(YF_API, IResource)
43 EndDecl
44
45
46 //应用程序资源类型定义。
47
48 namespace Drawing
49 {
50
55 class YF_API Image : public CompactPixmap,
56 implements IResource
57 {
58 public:
62 explicit
63 Image(ConstBitmapPtr = {}, SDst = 0, SDst = 0);
65 Image(const CompactPixmap&);
67 Image(CompactPixmap&&);
68
69 DefGetter(const ynothrow, BitmapPtr, ImagePtr, GetBufferPtr())
70 };
71
72 } // namespace Drawing;
73
74 } // namespace YSLib;
75
76 #endif
77
YSLib::Drawing::CompactPixmap
标准矩形像素图缓冲区。
Definition: ygdi.h:201
implements
#define implements
Definition: YBaseMacro.h:272
YF_API
#define YF_API
Definition: Platform.h:64
platform::SDst
std::uint16_t SDst
屏幕坐标距离。
Definition: Video.h:39
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
ynothrow
#define ynothrow
YSLib 无异常抛出保证：若支持 noexcept 关键字， 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
EndDecl
#define EndDecl
Definition: YBaseMacro.h:316
YSLib::DeclI
DeclI(YF_API, IResource) EndDeclnamespace Drawing
资源接口。
Definition: yres.h:42
platform::BitmapPtr
PixelType * BitmapPtr
Definition: Video.h:295
YModules.h
platform::ConstBitmapPtr
const PixelType * ConstBitmapPtr
Definition: Video.h:296