Skip to content

Commit

Permalink
All shape related structs are together (flutter#20665)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Aug 20, 2020
1 parent 2ed30df commit 38a3029
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,29 @@ typedef struct {
uint32_t height;
} FlutterUIntSize;

/// A structure to represent a rectangle.
typedef struct {
double left;
double top;
double right;
double bottom;
} FlutterRect;

/// A structure to represent a 2D point.
typedef struct {
double x;
double y;
} FlutterPoint;

/// A structure to represent a rounded rectangle.
typedef struct {
FlutterRect rect;
FlutterSize upper_left_corner_radius;
FlutterSize upper_right_corner_radius;
FlutterSize lower_right_corner_radius;
FlutterSize lower_left_corner_radius;
} FlutterRoundedRect;

/// This information is passed to the embedder when requesting a frame buffer
/// object.
///
Expand Down Expand Up @@ -532,26 +555,6 @@ typedef void (*FlutterDataCallback)(const uint8_t* /* data */,
size_t /* size */,
void* /* user data */);

typedef struct {
double left;
double top;
double right;
double bottom;
} FlutterRect;

typedef struct {
double x;
double y;
} FlutterPoint;

typedef struct {
FlutterRect rect;
FlutterSize upper_left_corner_radius;
FlutterSize upper_right_corner_radius;
FlutterSize lower_right_corner_radius;
FlutterSize lower_left_corner_radius;
} FlutterRoundedRect;

/// The identifier of the platform view. This identifier is specified by the
/// application when a platform view is added to the scene via the
/// `SceneBuilder.addPlatformView` call.
Expand Down

0 comments on commit 38a3029

Please sign in to comment.