новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/src/frameworks/UBPlatformUtils.cpp

46 lines
770 B

#include "UBPlatformUtils.h"
#include "core/memcheck.h"
void UBPlatformUtils::destroy()
{
destroyKeyboardLayouts();
}
UBPlatformUtils::UBPlatformUtils()
{
// NOOP
}
UBPlatformUtils::~UBPlatformUtils()
{
// NOOP
}
bool UBPlatformUtils::hasVirtualKeyboard()
{
return keyboardLayouts!=NULL && nKeyboardLayouts!=0;
}
UBKeyboardLocale::~UBKeyboardLocale()
{
if (varSymbols!=NULL)
{
for(int i=0; i<SYMBOL_KEYS_COUNT; i++)
delete varSymbols[i];
delete [] varSymbols;
}
delete icon;
}
int UBPlatformUtils::nKeyboardLayouts;
UBKeyboardLocale** UBPlatformUtils::keyboardLayouts;
UBKeyboardLocale** UBPlatformUtils::getKeyboardLayouts(int& nCount)
{
nCount = nKeyboardLayouts;
return keyboardLayouts;
}