Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
QtSurfaceHolderCallback.java
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
package
org.qtproject.qt.android.multimedia;
5
6
import
android.view.SurfaceHolder;
7
8
class
QtSurfaceHolderCallback
implements
SurfaceHolder.
Callback
9
{
10
private
long
m_id = -1;
11
12
QtSurfaceHolderCallback(
long
id
)
13
{
14
m_id =
id
;
15
}
16
17
@
Override
18
public
void
surfaceChanged(SurfaceHolder holder,
int
format
,
int
width
,
int
height
)
19
{
20
}
21
22
@
Override
23
public
void
surfaceCreated(SurfaceHolder holder)
24
{
25
notifySurfaceCreated(m_id);
26
}
27
28
@
Override
29
public
void
surfaceDestroyed(SurfaceHolder holder)
30
{
31
notifySurfaceDestroyed(m_id);
32
}
33
34
35
private
static
native
void
notifySurfaceCreated(
long
id
);
36
private
static
native
void
notifySurfaceDestroyed(
long
id
);
37
}
QtMocConstants::Override
@ Override
Definition
qtmocconstants.h:43
id
GLenum GLuint id
Definition
qopengldebug.cpp:1029
width
GLint GLsizei width
Definition
qopengles2ext.h:206
Callback
QT_BEGIN_NAMESPACE typedef void(*) Callback(QQmlNotifierEndpoint *, void **)
Definition
qqmlnotifier.cpp:11
format
EGLint EGLint EGLint format
Definition
libhybriseglserverbufferintegration.h:28
height
EGLint height
Definition
libhybriseglserverbufferintegration.h:28
qtmultimedia
src
android
jar
src
org
qtproject
qt
android
multimedia
QtSurfaceHolderCallback.java
Generated on
for Qt by
1.18.0