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 
标准矩形像素图缓冲区。
Definition: ygdi.h:201
#define implements
Definition: YBaseMacro.h:272
#define YF_API
Definition: Platform.h:64
std::uint16_t SDst
屏幕坐标距离。
Definition: Video.h:39
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
#define EndDecl
Definition: YBaseMacro.h:316
DeclI(YF_API, IResource) EndDeclnamespace Drawing
资源接口。
Definition: yres.h:42
PixelType * BitmapPtr
Definition: Video.h:295
const PixelType * ConstBitmapPtr
Definition: Video.h:296