本文整理汇总了C++中KIWAY_PLAYER::GetName方法的典型用法代码示例。如果您正苦于以下问题:C++ KIWAY_PLAYER::GetName方法的具体用法?C++ KIWAY_PLAYER::GetName怎么用?C++ KIWAY_PLAYER::GetName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KIWAY_PLAYER
的用法示例。
在下文中一共展示了KIWAY_PLAYER::GetName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Player
KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate, KIWAY_PLAYER* aParent )
{
// Since this will be called from python, cannot assume that code will
// not pass a bad aFrameType.
if( unsigned( aFrameType ) >= KIWAY_PLAYER_COUNT )
{
// @todo : throw an exception here for python's benefit, at least that
// way it gets some explanatory text.
wxASSERT_MSG( 0, wxT( "caller has a bug, passed a bad aFrameType" ) );
return NULL;
}
// return the previously opened window
KIWAY_PLAYER* frame = GetPlayerFrame( aFrameType );
if( frame )
return frame;
if( doCreate )
{
FACE_T face_type = KifaceType( aFrameType );
wxASSERT( face_type != FACE_T(-1) );
KIFACE* kiface = KiFACE( face_type );
wxASSERT( kiface );
if( kiface )
{
frame = (KIWAY_PLAYER*) kiface->CreateWindow(
aParent, // Parent window of frame, NULL in non modal mode
aFrameType,
this,
m_ctl // questionable need, these same flags where passed to the KIFACE::OnKifaceStart()
);
wxASSERT( frame );
m_playerFrameName[aFrameType] = frame->GetName();
return frame;
}
}
return NULL;
}