Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
tonic::DartConverter< flutter::Paint > Struct Reference

#include <paint.h>

Static Public Member Functions

static flutter::Paint FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 

Detailed Description

Definition at line 46 of file paint.h.

Member Function Documentation

◆ FromArguments()

flutter::Paint tonic::DartConverter< flutter::Paint >::FromArguments ( Dart_NativeArguments  args,
int  index,
Dart_Handle exception 
)
static

Definition at line 288 of file paint.cc.

291 {
292 Dart_Handle paint_objects = Dart_GetNativeArgument(args, index);
293 FML_DCHECK(!CheckAndHandleError(paint_objects));
294
295 Dart_Handle paint_data = Dart_GetNativeArgument(args, index + 1);
296 FML_DCHECK(!CheckAndHandleError(paint_data));
297
298 return flutter::Paint(paint_objects, paint_data);
299}
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FML_DCHECK(condition)
Definition: logging.h:103
bool CheckAndHandleError(Dart_Handle handle)
Definition: dart_error.cc:33

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