#include <CCDevice.h>
|
| static int | getDPI () |
| | Gets the DPI of device. More...
|
| |
| var | getDPI () |
| | Gets the DPI of device. More...
|
| |
| local | getDPI () |
| | Gets the DPI of device. More...
|
| |
| static void | setAccelerometerEnabled (bool isEnabled) |
| | To enable or disable accelerometer. More...
|
| |
| var | setAccelerometerEnabled ( var isEnabled) |
| | To enable or disable accelerometer. More...
|
| |
| local | setAccelerometerEnabled ( local isEnabled) |
| | To enable or disable accelerometer. More...
|
| |
| static void | setAccelerometerInterval (float interval) |
| | Sets the interval of accelerometer. More...
|
| |
| local | setAccelerometerInterval ( local interval) |
| | Sets the interval of accelerometer. More...
|
| |
| static Data | getTextureDataForText (const char *text, const FontDefinition &textDefinition, TextAlign align, int &width, int &height, bool &hasPremultipliedAlpha) |
| var | getTextureDataForText ( var text, var textDefinition, var align, var width, var height, var hasPremultipliedAlpha) |
| local | getTextureDataForText ( local text, local textDefinition, local align, local width, local height, local hasPremultipliedAlpha) |
| 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.
|
| 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.
|
| 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.
Gets the DPI of device.
- Returns
- The DPI of device.
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 |
| var getTextureDataForText |
( |
var |
text, |
|
|
var |
textDefinition, |
|
|
var |
align, |
|
|
var |
width, |
|
|
var |
height, |
|
|
var |
hasPremultipliedAlpha |
|
) |
| |
|
static |
| local getTextureDataForText |
( |
local |
text, |
|
|
local |
textDefinition, |
|
|
local |
align, |
|
|
local |
width, |
|
|
local |
height, |
|
|
local |
hasPremultipliedAlpha |
|
) |
| |
|
static |
| static void setAccelerometerEnabled |
( |
bool |
isEnabled | ) |
|
|
static |
To enable or disable accelerometer.
| var setAccelerometerEnabled |
( |
var |
isEnabled | ) |
|
|
static |
To enable or disable accelerometer.
| local setAccelerometerEnabled |
( |
local |
isEnabled | ) |
|
|
static |
To enable or disable accelerometer.
static void
setAccelerometerInterval |
( |
float |
interval | ) |
|
|
static |
Sets the interval of accelerometer.
| var setAccelerometerInterval |
( |
var |
interval | ) |
|
|
static |
Sets the interval of accelerometer.
| local setAccelerometerInterval |
( |
local |
interval | ) |
|
|
static |
Sets the interval of accelerometer.
The documentation for this class was generated from the following file:
- /Users/guanghui/cocos2d-x-v3/cocos/platform/CCDevice.h