#include <CCDevice.h>
Enumerator |
---|
CENTER |
Horizontal center and vertical center.
|
TOP |
Horizontal center and vertical top.
|
TOP_RIGHT |
Horizontal right and vertical top.
|
RIGHT |
Horizontal right and vertical center.
|
BOTTOM_RIGHT |
Horizontal right and vertical bottom.
|
BOTTOM |
Horizontal center and vertical bottom.
|
BOTTOM_LEFT |
Horizontal left and vertical bottom.
|
LEFT |
Horizontal left and vertical center.
|
TOP_LEFT |
Horizontal left and vertical top.
|
Gets the DPI of device.
- Returns
- The DPI of device.
static Data getTextureDataForText |
( |
const char * |
text, |
|
|
const FontDefinition & |
textDefinition, |
|
|
TextAlign |
align, |
|
|
int & |
width, |
|
|
int & |
height, |
|
|
bool & |
hasPremultipliedAlpha |
|
) |
| |
|
static |
static void setAccelerometerEnabled |
( |
bool |
isEnabled | ) |
|
|
static |
To enable or disable accelerometer.
static void setAccelerometerInterval |
( |
float |
interval | ) |
|
|
static |
Sets the interval of accelerometer.
static void setKeepScreenOn |
( |
bool |
value | ) |
|
|
static |
The documentation for this class was generated from the following file:
- /Users/huihoo/Software/huihoo-code/cocos2d-x/cocos2d-x-3.3/cocos/platform/CCDevice.h