本文整理汇总了C++中CCEGLView::setIMEKeyboardAlphabet方法的典型用法代码示例。如果您正苦于以下问题:C++ CCEGLView::setIMEKeyboardAlphabet方法的具体用法?C++ CCEGLView::setIMEKeyboardAlphabet怎么用?C++ CCEGLView::setIMEKeyboardAlphabet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCEGLView
的用法示例。
在下文中一共展示了CCEGLView::setIMEKeyboardAlphabet方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: attachWithIME
bool CATextField::attachWithIME()
{
bool bRet = CAIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if(CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID||CC_TARGET_PLATFORM==CC_PLATFORM_IOS)
if (getKeyboardType() ==KEY_BOARD_TYPE_NORMAL)
{
pGlView->setIMEKeyboardDefault();
}
else if (getKeyboardType() ==KEY_BOARD_TYPE_NUMBER)
{
pGlView->setIMEKeyboardNumber();
}
else if(getKeyboardType() ==KEY_BOARD_TYPE_ALPHABET)
{
pGlView->setIMEKeyboardAlphabet();
}
#endif
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例2: attachWithIME
bool CATextField::attachWithIME()
{
bool bRet = CAIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if(CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM==CC_PLATFORM_IOS)
if (getKeyboardType() ==KEY_BOARD_TYPE_NORMAL)
{
pGlView->setIMEKeyboardDefault();
}
else if (getKeyboardType() ==KEY_BOARD_TYPE_NUMBER)
{
pGlView->setIMEKeyboardNumber();
}
else if(getKeyboardType() ==KEY_BOARD_TYPE_ALPHABET)
{
pGlView->setIMEKeyboardAlphabet();
}
if (getKeyboardReturnType() ==KEY_BOARD_RETURN_SEND)
{
pGlView->setIMEKeyboardReturnSend();
}
else if (getKeyboardReturnType() ==KEY_BOARD_RETURN_SEARCH)
{
pGlView->setIMEKeyboardReturnSearch();
}
else if(getKeyboardReturnType() ==KEY_BOARD_RETURN_DONE)
{
pGlView->setIMEKeyboardReturnDone();
}
#endif
this->showCursorMark();
m_pCursorMark->setCenterOrigin(CCPoint(getCursorX() + m_iHoriMargins, m_obContentSize.height / 2));
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}