Flutter Engine
 
Loading...
Searching...
No Matches
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
9#include "third_party/dart/runtime/include/dart_api.h"
10#include "third_party/skia/include/core/SkRRect.h"
12
13namespace flutter {
14
15class RRect {
16 public:
18 bool is_null;
19};
20
21} // namespace flutter
22
23namespace tonic {
24
25template <>
26struct DartConverter<flutter::RRect> {
28 using FfiType = Dart_Handle;
29 static constexpr const char* kFfiRepresentation = "Handle";
30 static constexpr const char* kDartRepresentation = "Object";
31 static constexpr bool kAllowedInLeafCall = false;
32
33 static NativeType FromDart(Dart_Handle handle);
34 static NativeType FromArguments(Dart_NativeArguments args,
35 int index,
36 Dart_Handle& exception);
37
38 static NativeType FromFfi(FfiType val) { return FromDart(val); }
39 static const char* GetFfiRepresentation() { return kFfiRepresentation; }
40 static const char* GetDartRepresentation() { return kDartRepresentation; }
41 static bool AllowedInLeafCall() { return kAllowedInLeafCall; }
42};
43
44} // namespace tonic
45
46#endif // FLUTTER_LIB_UI_PAINTING_RRECT_H_
bool is_null
Definition rrect.h:18
DlRoundRect rrect
Definition rrect.h:17
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static NativeType FromFfi(FfiType val)
Definition rrect.h:38
static const char * GetFfiRepresentation()
Definition rrect.h:39
static const char * GetDartRepresentation()
Definition rrect.h:40