YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
platform_ex 命名空间参考

平台扩展命名空间。 更多...

命名空间

 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::KeyInputFetchKeyState ()
 取按键状态。 更多...
 
YF_API const platform::KeyInputFetchOldKeyState ()
 取上一次更新的按键状态。 更多...
 
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 宏。

注解
为便于移植,部分平台扩展接口保留至平台中立文件,依赖性按后者处理。
自从
build 412

类型定义说明

自从
build 492
build 389

在文件 Android.h50 行定义.

函数说明

template<class _iCOM >
void platform_ex::Attach ( COMPtr< _iCOM > &  ptr,
typename COMPtr< _iCOM >::InterfaceType *  p 
)

在文件 include/YCLib/COM.h382 行定义.

参考 yassume , 以及 yunused.

HRESULT platform_ex::CheckHResult ( ::HRESULT  h)
inline

检查 ::HRESULT 值,若表示失败则抛出 COMException

返回
表示成功的值。

在文件 include/YCLib/COM.h85 行定义.

参考自 platform_ex::COMPtr< _iCOM >::As(), platform_ex::COMPtr< _iCOM >::Copy() , 以及 platform_ex::COMPtr< _iCOM >::DefGetter().

这是这个函数的调用关系图:

void platform_ex::ClearKeyStates ( )

清除按键缓冲。

自从
build 299

在文件 Input.cpp155 行定义.

参考 YAssertNonnull, YCL_Def_LockGuard , 以及 yunseq.

template<class _iCOM >
_iCOM * platform_ex::Detach ( COMPtr< _iCOM > &  ptr)

在文件 include/YCLib/COM.h396 行定义.

void platform_ex::EnsureNonNull ( void *  p)
inline

检查指针值,若为空则抛出 COMException

在文件 include/YCLib/COM.h96 行定义.

platform::KeyInput platform_ex::FetchKeyDownState ( )

取键按下状态。

自从
build 299

在文件 Input.cpp139 行定义.

参考 YCL_Def_LockGuard.

参考自 YSLib::Devices::InputManager::DispatchInput() , 以及 platform::WaitForInput().

这是这个函数的调用关系图:

const platform::KeyInput & platform_ex::FetchKeyState ( )

取按键状态。

自从
build 321

在文件 Input.cpp123 行定义.

参考 YCL_Def_LockGuard.

参考自 YSLib::Devices::InputManager::DispatchInput(), YSLib::Devices::InputManager::Update() , 以及 YSLib::DS::ShlDS::WrapForSwapScreens().

这是这个函数的调用关系图:

platform::KeyInput platform_ex::FetchKeyUpState ( )

取键释放状态。

自从
build 299

在文件 Input.cpp147 行定义.

参考 YCL_Def_LockGuard.

参考自 YSLib::Devices::InputManager::DispatchInput().

这是这个函数的调用关系图:

const platform::KeyInput & platform_ex::FetchOldKeyState ( )

取上一次更新的按键状态。

自从
build 321

在文件 Input.cpp131 行定义.

参考 YCL_Def_LockGuard.

char16_t platform_ex::FS_IsRoot ( const char16_t *  str)
自从
build 409

在文件 YCLib/FileSystem.cpp587 行定义.

template<class _iCOM1 , class _iCOM2 >
bool platform_ex::operator!= ( const COMPtr< _iCOM1 > &  x,
const COMPtr< _iCOM2 > &  y 
)
inline

在文件 include/YCLib/COM.h351 行定义.

template<class _iCOM >
bool platform_ex::operator!= ( const COMPtr< _iCOM > &  x,
std::nullptr_t   
)
inline

在文件 include/YCLib/COM.h357 行定义.

template<class _iCOM >
bool platform_ex::operator!= ( std::nullptr_t  ,
const COMPtr< _iCOM > &  x 
)
inline

在文件 include/YCLib/COM.h364 行定义.

template<class _iCOM1 , class _iCOM2 >
bool platform_ex::operator< ( const COMPtr< _iCOM1 > &  x,
const COMPtr< _iCOM2 > &  y 
)
inline

在文件 include/YCLib/COM.h371 行定义.

template<class _iCOM1 , class _iCOM2 >
bool platform_ex::operator== ( const COMPtr< _iCOM1 > &  x,
const COMPtr< _iCOM2 > &  y 
)
inline

在文件 include/YCLib/COM.h328 行定义.

template<class _iCOM >
bool platform_ex::operator== ( const COMPtr< _iCOM > &  x,
std::nullptr_t   
)
inline

在文件 include/YCLib/COM.h338 行定义.

template<class _iCOM >
bool platform_ex::operator== ( std::nullptr_t  ,
const COMPtr< _iCOM > &  x 
)
inline

在文件 include/YCLib/COM.h344 行定义.

template<class _iCOM >
unsigned long platform_ex::Reset ( COMPtr< _iCOM > &  ptr)

在文件 include/YCLib/COM.h406 行定义.

参考自 YSLib::UI::GSequenceViewer< _tCon >::AdjustForContent().

这是这个函数的调用关系图:

void platform_ex::UpdateKeyStates ( )

更新按键状态。

自从
build 299

在文件 Input.cpp169 行定义.

参考 YSLib::Drawing::size_t, ystdex::swap() , 以及 YCL_Def_LockGuard.

参考自 YSLib::Devices::InputManager::Update() , 以及 platform::WaitForInput().

函数调用图:

这是这个函数的调用关系图: