28 #ifndef YSL_INC_Adaptor_yadaptor_h_
29 #define YSL_INC_Adaptor_yadaptor_h_ 1
34 #include YFM_YSLib_Adaptor_YNew
46 #include YFM_YCLib_YCommon
47 #include YFM_YCLib_Debug
48 #include YFM_YCLib_Keys
49 #include YFM_YCLib_Timer
50 #include YFM_YCLib_FileSystem
51 #include YFM_YCLib_Video
67 using u8 = std::uint8_t;
68 using u16 = std::uint16_t;
69 using u32 = std::uint32_t;
70 using u64 = std::uint64_t;
71 using s8 = std::int8_t;
72 using s16 = std::int16_t;
73 using s32 = std::int32_t;
74 using s64 = std::int64_t;
147 using ystdex::ptrdiff_t;
150 using ystdex::wint_t;
158 using namespace platform::Descriptions;
209 using platform::KeyBitsetWidth;
212 namespace KeyCategory = platform::KeyCategory;
213 namespace KeyCodes = platform::KeyCodes;
230 using platform::PixelType;
237 using platform::FetchAlpha;
238 using platform::FetchOpaque;
246 namespace ColorSpace = platform::ColorSpace;
257 using platform::NativePathCharType;
259 using platform::CS_Path;
YF_API void StartTicks()
开始 tick 计时。
char16_t * u16getcwd_n(char16_t *buf, std::size_t size) ynothrow
YF_API bool InitVideo()
初始化视频输出。
YF_API bool IsAbsolute(const char *)
判断指定路径字符串是否表示一个绝对路径。
YF_API bool truncate(std::FILE *, std::size_t) ynothrow
截断文件至指定长度。
YF_API std::size_t GetRootNameLength(const char *)
取指定路径的文件系统根节点名称的长度。
std::size_t KeyIndex
按键索引类型:标识特定的按键在按键集合中的位置。
size_t arrlen(_type(&)[_vN])
计算指定数组类型对象的长度。
YF_API bool ufexists(const char *) ynothrow
判断指定 UTF-8 文件名的文件是否存在。
void unseq_apply(_fCallable &&f, _tParams &&...args)
无序调用。
std::uint16_t SDst
屏幕坐标距离。
union _vA::IntegerType RGBA
void seq_apply(_fCallable &&)
顺序递归调用。
YB_NORETURN YF_API void terminate() ynothrow
异常终止函数。
YF_API bool uchdir(const char *) ynothrow
切换当前工作路径至指定的 UTF-8 字符串。
YF_API bool urmdir(const char *) ynothrow
按 UTF-8 路径删除一个空目录。
不可复制对象:禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
union _vA::IntegerType BGRA
YF_API std::uint64_t GetHighResolutionTicks()
取高精度 tick 数。
YF_API KeyIndex FindFirstKey(const KeyInput &) ynothrow
找到输入缓冲区记录中最小的按键编码。
YF_API std::FILE * ufopen(const char *filename, const char *mode) ynothrow
以 UTF-8 文件名打开文件。
YF_API bool uunlink(const char *) ynothrow
按 UTF-8 路径删除一个非目录文件。
YF_API std::uint32_t GetTicks()
取 tick 数。
ystdex::indirect_input_iterator< HDirectory * > FileIterator
文件迭代器。
YF_API bool uremove(const char *) ynothrow
按 UTF-8 路径删除一个文件。
YF_API bool umkdir(const char *) ynothrow
按 UTF-8 路径以默认权限新建一个目录。
std::string to_string(unsigned char val)
转换为字符串。
YF_API KeyIndex FindNextKey(const KeyInput &, KeyIndex) ynothrow
找到输入缓冲区记录中大于指定编码的最小的按键编码。
const PixelType * ConstBitmapPtr
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。