本文整理汇总了C++中CSkinSimple::GetConnectingIndicatorImage方法的典型用法代码示例。如果您正苦于以下问题:C++ CSkinSimple::GetConnectingIndicatorImage方法的具体用法?C++ CSkinSimple::GetConnectingIndicatorImage怎么用?C++ CSkinSimple::GetConnectingIndicatorImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSkinSimple
的用法示例。
在下文中一共展示了CSkinSimple::GetConnectingIndicatorImage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetActionState
void ClientStateIndicator::SetActionState(wxString message)
{
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxASSERT(pSkinSimple);
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
Freeze();
stateMessage = message;
if ( clientState != CLIENT_STATE_ACTION ) {
//Delete Previous state
DeletePreviousState();
clientState = CLIENT_STATE_ACTION;
i_indBg = new ImageLoader(this);
i_indBg->Move(wxPoint(42,74));
i_indBg->LoadImage(*(pSkinSimple->GetStateIndicatorBackgroundImage()->GetBitmap()));
for(int x = 0; x < numOfIndic; x++){
ImageLoader *i_connInd = new ImageLoader(this);
i_connInd->Move(wxPoint(rightPosition +(connIndicatorWidth+10) * x,84));
i_connInd->LoadImage(*(pSkinSimple->GetConnectingIndicatorImage()->GetBitmap()));
if(x !=0){
i_connInd->Show(false);
}
m_connIndV.push_back(i_connInd);
}
//set animation timer for interface
if ( !m_connRenderTimer ) {
m_connRenderTimer = new wxTimer(this, ID_ANIMATIONRENDERTIMER);
}
m_connRenderTimer->Start(500);
}
Thaw();
}
示例2: SetPausedState
void ClientStateIndicator::SetPausedState(wxString message)
{
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxASSERT(pSkinSimple);
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
Freeze();
stateMessage = message;
if ( clientState != CLIENT_STATE_PAUSED ) {
//Delete Previous state
DeletePreviousState();
clientState = CLIENT_STATE_PAUSED;
i_indBg = new ImageLoader(this);
i_indBg->Move(wxPoint(42,74));
i_indBg->LoadImage(*(pSkinSimple->GetStateIndicatorBackgroundImage()->GetBitmap()));
for(int x = 0; x < numOfIndic; x++){
ImageLoader *i_connInd = new ImageLoader(this);
i_connInd->Move(wxPoint(rightPosition +(connIndicatorWidth+10) * x,84));
i_connInd->LoadImage(*(pSkinSimple->GetConnectingIndicatorImage()->GetBitmap()));
m_connIndV.push_back(i_connInd);
}
}
Thaw();
}