Files
android_translation_layer/src/api-impl-jni/widgets/android_view_SurfaceView.h
Julian Winkler 4b36bca4c6 refactor SurfaceViewWidget for frame_callback in the Wayland server
SurfaceViewWidget is now always a child of a GtkGraphicsOffload and
handles the GdkTexture on its own. This way the extra GtkPicture is no
longer needed and also the frame_callback of the Wayland server can be
implemented.
2024-11-17 17:11:14 +01:00

19 lines
462 B
C

#include <gtk/gtk.h>
G_DECLARE_FINAL_TYPE (SurfaceViewWidget, surface_view_widget, SURFACE_VIEW, WIDGET, GtkWidget)
struct _SurfaceViewWidget
{
GtkWidget parent_instance;
GdkTexture *texture;
void (*frame_callback)(SurfaceViewWidget *surface_view_widget);
gpointer frame_callback_data;
};
struct _SurfaceViewWidgetClass
{
GtkWidgetClass parent_class;
};
void surface_view_widget_set_texture(SurfaceViewWidget *surface_view_widget, GdkTexture *texture);