YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
平台扩展命名空间。 更多...
命名空间 | |
Android | |
Android 平台扩展接口。 | |
Windows | |
Windows 平台扩展接口。 | |
类 | |
class | COM |
COM 全局状态。 更多... | |
class | COMException |
COM 异常基类。 更多... | |
class | COMPtr |
class | Exception |
宿主异常。 更多... | |
类型定义 | |
using | NativeWindowHandle = ::ANativeWindow * |
函数 | |
char16_t | FS_IsRoot (const char16_t *) |
YF_API const platform::KeyInput & | FetchKeyState () |
取按键状态。 更多... | |
YF_API const platform::KeyInput & | FetchOldKeyState () |
取上一次更新的按键状态。 更多... | |
YF_API platform::KeyInput | FetchKeyDownState () |
取键按下状态。 更多... | |
YF_API platform::KeyInput | FetchKeyUpState () |
取键释放状态。 更多... | |
YF_API void | ClearKeyStates () |
清除按键缓冲。 更多... | |
YF_API void | UpdateKeyStates () |
更新按键状态。 更多... | |
inline::HRESULT | CheckHResult (::HRESULT h) ythrow(COMException) |
检查 ::HRESULT 值,若表示失败则抛出 COMException 。 更多... | |
void | EnsureNonNull (void *p) ythrow(COMException) |
检查指针值,若为空则抛出 COMException 。 更多... | |
template<class _iCOM1 , class _iCOM2 > | |
bool | operator== (const COMPtr< _iCOM1 > &x, const COMPtr< _iCOM2 > &y) ynothrow |
template<class _iCOM > | |
bool | operator== (const COMPtr< _iCOM > &x, std::nullptr_t) ynothrow |
template<class _iCOM > | |
bool | operator== (std::nullptr_t, const COMPtr< _iCOM > &x) ynothrow |
template<class _iCOM1 , class _iCOM2 > | |
bool | operator!= (const COMPtr< _iCOM1 > &x, const COMPtr< _iCOM2 > &y) ynothrow |
template<class _iCOM > | |
bool | operator!= (const COMPtr< _iCOM > &x, std::nullptr_t) ynothrow |
template<class _iCOM > | |
bool | operator!= (std::nullptr_t, const COMPtr< _iCOM > &x) ynothrow |
template<class _iCOM1 , class _iCOM2 > | |
bool | operator< (const COMPtr< _iCOM1 > &x, const COMPtr< _iCOM2 > &y) ynothrow |
template<class _iCOM > | |
void | Attach (COMPtr< _iCOM > &ptr, typename COMPtr< _iCOM >::InterfaceType *p) ynothrow |
template<class _iCOM > | |
_iCOM * | Detach (COMPtr< _iCOM > &ptr) ynothrow |
template<class _iCOM > | |
unsigned long | Reset (COMPtr< _iCOM > &ptr) ynothrow |
平台扩展命名空间。
禁止使用 GetObject 宏。
typedef::HWND platform_ex::NativeWindowHandle |
void platform_ex::Attach | ( | COMPtr< _iCOM > & | ptr, |
typename COMPtr< _iCOM >::InterfaceType * | p | ||
) |
在文件 include/YCLib/COM.h 第 382 行定义.
|
inline |
检查 ::HRESULT 值,若表示失败则抛出 COMException 。
在文件 include/YCLib/COM.h 第 85 行定义.
参考自 platform_ex::COMPtr< _iCOM >::As(), platform_ex::COMPtr< _iCOM >::Copy() , 以及 platform_ex::COMPtr< _iCOM >::DefGetter().
void platform_ex::ClearKeyStates | ( | ) |
_iCOM * platform_ex::Detach | ( | COMPtr< _iCOM > & | ptr | ) |
在文件 include/YCLib/COM.h 第 396 行定义.
|
inline |
检查指针值,若为空则抛出 COMException 。
在文件 include/YCLib/COM.h 第 96 行定义.
platform::KeyInput platform_ex::FetchKeyDownState | ( | ) |
取键按下状态。
参考自 YSLib::Devices::InputManager::DispatchInput() , 以及 platform::WaitForInput().
const platform::KeyInput & platform_ex::FetchKeyState | ( | ) |
取按键状态。
参考自 YSLib::Devices::InputManager::DispatchInput(), YSLib::Devices::InputManager::Update() , 以及 YSLib::DS::ShlDS::WrapForSwapScreens().
platform::KeyInput platform_ex::FetchKeyUpState | ( | ) |
const platform::KeyInput & platform_ex::FetchOldKeyState | ( | ) |
char16_t platform_ex::FS_IsRoot | ( | const char16_t * | str | ) |
在文件 YCLib/FileSystem.cpp 第 587 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 351 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 357 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 364 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 371 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 328 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 338 行定义.
|
inline |
在文件 include/YCLib/COM.h 第 344 行定义.
unsigned long platform_ex::Reset | ( | COMPtr< _iCOM > & | ptr | ) |
在文件 include/YCLib/COM.h 第 406 行定义.
参考自 YSLib::UI::GSequenceViewer< _tCon >::AdjustForContent().
void platform_ex::UpdateKeyStates | ( | ) |
更新按键状态。
参考 YSLib::Drawing::size_t, ystdex::swap() , 以及 YCL_Def_LockGuard.
参考自 YSLib::Devices::InputManager::Update() , 以及 platform::WaitForInput().