GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
org.libsdl.app.SDLSurface Class Reference
Inheritance diagram for org.libsdl.app.SDLSurface:
Collaboration diagram for org.libsdl.app.SDLSurface:

Public Member Functions

 SDLSurface (Context context)
void handlePause ()
void handleResume ()
Surface getNativeSurface ()
void surfaceCreated (SurfaceHolder holder)
void surfaceDestroyed (SurfaceHolder holder)
void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
boolean onKey (View v, int keyCode, KeyEvent event)
boolean onTouch (View v, MotionEvent event)
void enableSensor (int sensortype, boolean enabled)
void onAccuracyChanged (Sensor sensor, int accuracy)
void onSensorChanged (SensorEvent event)
boolean onCapturedPointerEvent (MotionEvent event)
 SDLSurface (Context context)
void handlePause ()
void handleResume ()
Surface getNativeSurface ()
void surfaceCreated (SurfaceHolder holder)
void surfaceDestroyed (SurfaceHolder holder)
void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
boolean onKey (View v, int keyCode, KeyEvent event)
boolean onTouch (View v, MotionEvent event)
void enableSensor (int sensortype, boolean enabled)
void onAccuracyChanged (Sensor sensor, int accuracy)
void onSensorChanged (SensorEvent event)
boolean onCapturedPointerEvent (MotionEvent event)

Public Attributes

boolean mIsSurfaceReady

Protected Attributes

SensorManager mSensorManager
Display mDisplay
float mWidth
float mHeight

Detailed Description

SDLSurface. This is what we draw on, so we need to know when it's created in order to do anything useful.

Because of this, that's where we set up the SDL thread

Constructor & Destructor Documentation

◆ SDLSurface() [1/2]

org.libsdl.app.SDLSurface.SDLSurface ( Context context)
inline

◆ SDLSurface() [2/2]

org.libsdl.app.SDLSurface.SDLSurface ( Context context)
inline

Member Function Documentation

◆ enableSensor() [1/2]

void org.libsdl.app.SDLSurface.enableSensor ( int sensortype,
boolean enabled )
inline
Here is the caller graph for this function:

◆ enableSensor() [2/2]

void org.libsdl.app.SDLSurface.enableSensor ( int sensortype,
boolean enabled )
inline

◆ getNativeSurface() [1/2]

Surface org.libsdl.app.SDLSurface.getNativeSurface ( )
inline
Here is the caller graph for this function:

◆ getNativeSurface() [2/2]

Surface org.libsdl.app.SDLSurface.getNativeSurface ( )
inline

◆ handlePause() [1/2]

void org.libsdl.app.SDLSurface.handlePause ( )
inline

◆ handlePause() [2/2]

void org.libsdl.app.SDLSurface.handlePause ( )
inline

◆ handleResume() [1/2]

void org.libsdl.app.SDLSurface.handleResume ( )
inline

◆ handleResume() [2/2]

void org.libsdl.app.SDLSurface.handleResume ( )
inline

◆ onAccuracyChanged() [1/2]

void org.libsdl.app.SDLSurface.onAccuracyChanged ( Sensor sensor,
int accuracy )
inline

◆ onAccuracyChanged() [2/2]

void org.libsdl.app.SDLSurface.onAccuracyChanged ( Sensor sensor,
int accuracy )
inline

◆ onCapturedPointerEvent() [1/2]

boolean org.libsdl.app.SDLSurface.onCapturedPointerEvent ( MotionEvent event)
inline

◆ onCapturedPointerEvent() [2/2]

boolean org.libsdl.app.SDLSurface.onCapturedPointerEvent ( MotionEvent event)
inline

◆ onKey() [1/2]

boolean org.libsdl.app.SDLSurface.onKey ( View v,
int keyCode,
KeyEvent event )
inline

◆ onKey() [2/2]

boolean org.libsdl.app.SDLSurface.onKey ( View v,
int keyCode,
KeyEvent event )
inline

◆ onSensorChanged() [1/2]

void org.libsdl.app.SDLSurface.onSensorChanged ( SensorEvent event)
inline

◆ onSensorChanged() [2/2]

void org.libsdl.app.SDLSurface.onSensorChanged ( SensorEvent event)
inline

◆ onTouch() [1/2]

boolean org.libsdl.app.SDLSurface.onTouch ( View v,
MotionEvent event )
inline

◆ onTouch() [2/2]

boolean org.libsdl.app.SDLSurface.onTouch ( View v,
MotionEvent event )
inline

◆ surfaceChanged() [1/2]

void org.libsdl.app.SDLSurface.surfaceChanged ( SurfaceHolder holder,
int format,
int width,
int height )
inline

◆ surfaceChanged() [2/2]

void org.libsdl.app.SDLSurface.surfaceChanged ( SurfaceHolder holder,
int format,
int width,
int height )
inline

◆ surfaceCreated() [1/2]

void org.libsdl.app.SDLSurface.surfaceCreated ( SurfaceHolder holder)
inline

◆ surfaceCreated() [2/2]

void org.libsdl.app.SDLSurface.surfaceCreated ( SurfaceHolder holder)
inline

◆ surfaceDestroyed() [1/2]

void org.libsdl.app.SDLSurface.surfaceDestroyed ( SurfaceHolder holder)
inline

◆ surfaceDestroyed() [2/2]

void org.libsdl.app.SDLSurface.surfaceDestroyed ( SurfaceHolder holder)
inline

Member Data Documentation

◆ mDisplay

Display org.libsdl.app.SDLSurface.mDisplay
protected

◆ mHeight

float org.libsdl.app.SDLSurface.mHeight
protected

◆ mIsSurfaceReady

boolean org.libsdl.app.SDLSurface.mIsSurfaceReady

◆ mSensorManager

SensorManager org.libsdl.app.SDLSurface.mSensorManager
protected

◆ mWidth

float org.libsdl.app.SDLSurface.mWidth
protected

The documentation for this class was generated from the following files: