Flutter Engine
_FlRendererClass Struct Reference

#include <fl_renderer.h>

Public Attributes

GObjectClass parent_class
 
gboolean(* setup_window_attr )(FlRenderer *renderer, GtkWidget *widget, EGLDisplay display, EGLConfig config, GdkWindowAttr *window_attributes, gint *mask, GError **error)
 
EGLDisplay(* create_display )(FlRenderer *renderer)
 
gboolean(* create_surfaces )(FlRenderer *renderer, GtkWidget *widget, EGLDisplay display, EGLConfig config, EGLSurface *visible, EGLSurface *resource, GError **error)
 
void(* set_geometry )(FlRenderer *renderer, GdkRectangle *geometry, gint scale)
 

Detailed Description

FlRenderer:

#FlRenderer is an abstract class that allows Flutter to draw pixels.

Definition at line 35 of file fl_renderer.h.

Member Data Documentation

◆ create_display

EGLDisplay(* _FlRendererClass::create_display) (FlRenderer *renderer)

Virtual method to create a new EGL display.

Definition at line 63 of file fl_renderer.h.

◆ create_surfaces

gboolean(* _FlRendererClass::create_surfaces) (FlRenderer *renderer, GtkWidget *widget, EGLDisplay display, EGLConfig config, EGLSurface *visible, EGLSurface *resource, GError **error)

Virtual method called when Flutter needs surfaces to render to. : an #FlRenderer. : the widget being rendered on. : display to create surfaces on. : EGL configuration. : (out): the visible surface that is created. : (out): the resource surface that is created. : (allow-none): #GError location to store the error occurring, or NULL to ignore.

Returns: TRUE if both surfaces were created, FALSE if there was an error.

Definition at line 78 of file fl_renderer.h.

◆ parent_class

GObjectClass _FlRendererClass::parent_class

Definition at line 36 of file fl_renderer.h.

◆ set_geometry

void(* _FlRendererClass::set_geometry) (FlRenderer *renderer, GdkRectangle *geometry, gint scale)

Virtual method called when the EGL window needs to be resized. Does not need to be implemented.

Definition at line 90 of file fl_renderer.h.

◆ setup_window_attr

gboolean(* _FlRendererClass::setup_window_attr) (FlRenderer *renderer, GtkWidget *widget, EGLDisplay display, EGLConfig config, GdkWindowAttr *window_attributes, gint *mask, GError **error)

Virtual method called before creating a GdkWindow for the widget. Does not need to be implemented. : an #FlRenderer. : the widget being rendered on. : display to create surfaces on. : EGL configuration. : window attributes to modify. : (out): the window mask to use. : (allow-none): #GError location to store the error occurring, or NULL to ignore.

Returns: TRUE if the window is successfully set up.

Definition at line 52 of file fl_renderer.h.


The documentation for this struct was generated from the following file: