Flutter Engine
The Flutter Engine
rrect.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_LIB_UI_PAINTING_RRECT_H_
6#define FLUTTER_LIB_UI_PAINTING_RRECT_H_
7
8#include "third_party/dart/runtime/include/dart_api.h"
11
12namespace flutter {
13
14class RRect {
15 public:
17 bool is_null;
18};
19
20} // namespace flutter
21
22namespace tonic {
23
24template <>
25struct DartConverter<flutter::RRect> {
28 static constexpr const char* kFfiRepresentation = "Handle";
29 static constexpr const char* kDartRepresentation = "Object";
30 static constexpr bool kAllowedInLeafCall = false;
31
32 static NativeType FromDart(Dart_Handle handle);
33 static NativeType FromArguments(Dart_NativeArguments args,
34 int index,
35 Dart_Handle& exception);
36
37 static NativeType FromFfi(FfiType val) { return FromDart(val); }
38 static const char* GetFfiRepresentation() { return kFfiRepresentation; }
39 static const char* GetDartRepresentation() { return kDartRepresentation; }
40 static bool AllowedInLeafCall() { return kAllowedInLeafCall; }
41};
42
43} // namespace tonic
44
45#endif // FLUTTER_LIB_UI_PAINTING_RRECT_H_
bool is_null
Definition: rrect.h:17
SkRRect sk_rrect
Definition: rrect.h:16
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
struct _Dart_NativeArguments * Dart_NativeArguments
Definition: dart_api.h:3019
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static NativeType FromFfi(FfiType val)
Definition: rrect.h:37
static const char * GetFfiRepresentation()
Definition: rrect.h:38
static const char * GetDartRepresentation()
Definition: rrect.h:39