Flutter Engine
tonic::DartConverter< flutter::Paint > Struct Template Reference

#include <paint.h>

Static Public Member Functions

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

Detailed Description

template<>
struct tonic::DartConverter< flutter::Paint >

Definition at line 38 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 187 of file paint.cc.

References FML_DCHECK, and tonic::LogIfError().

190  {
191  Dart_Handle paint_objects = Dart_GetNativeArgument(args, index);
192  FML_DCHECK(!LogIfError(paint_objects));
193 
194  Dart_Handle paint_data = Dart_GetNativeArgument(args, index + 1);
195  FML_DCHECK(!LogIfError(paint_data));
196 
197  return flutter::Paint(paint_objects, paint_data);
198 }
G_BEGIN_DECLS FlValue * args
#define FML_DCHECK(condition)
Definition: logging.h:86
bool LogIfError(Dart_Handle handle)
Definition: dart_error.cc:15

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