You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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.
19 lines
462 B
C
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);
|