Flutter Engine
 
Loading...
Searching...
No Matches
rsuperellipse.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_RSUPERELLIPSE_H_
6#define FLUTTER_LIB_UI_PAINTING_RSUPERELLIPSE_H_
7
13
14namespace flutter {
15
16class RSuperellipse : public RefCountedDartWrappable<RSuperellipse> {
17 DEFINE_WRAPPERTYPEINFO();
19
20 public:
21 static void Create(Dart_Handle wrapper,
22 double left,
23 double top,
24 double right,
25 double bottom,
26 double tl_radius_x,
27 double tl_radius_y,
28 double tr_radius_x,
29 double tr_radius_y,
30 double br_radius_x,
31 double br_radius_y,
32 double bl_radius_x,
33 double bl_radius_y);
34
35 ~RSuperellipse() override;
36
37 bool contains(double x, double y);
38
41 flutter::DlRect bounds() const { return bounds_; }
42 impeller::RoundingRadii radii() const { return radii_; }
43
44 private:
46
47 flutter::DlScalar scalar_value(int index) const;
48
49 flutter::DlRect bounds_;
51};
52
53} // namespace flutter
54
55#endif // FLUTTER_LIB_UI_PAINTING_RSUPERELLIPSE_H_
flutter::DlRect bounds() const
flutter::DlRoundSuperellipse rsuperellipse() const
static void Create(Dart_Handle wrapper, double left, double top, double right, double bottom, double tl_radius_x, double tl_radius_y, double tr_radius_x, double tr_radius_y, double br_radius_x, double br_radius_y, double bl_radius_x, double bl_radius_y)
impeller::RoundSuperellipseParam param() const
bool contains(double x, double y)
impeller::RoundingRadii radii() const
int32_t x
double y
impeller::Scalar DlScalar
#define FML_FRIEND_MAKE_REF_COUNTED(T)