summaryrefslogtreecommitdiffstats
path: root/ppapi/api/pp_rect.idl
blob: 1e82998d9c57a26ec0f0d93a3b6d4e9de165a68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* This file defines the APIs for creating a 2-dimensional rectangle. */

/* The PP_Rect struct contains the size and location of a 2D rectangle. */
struct PP_Rect {
  /* The x and y coordinates of the upper-left corner of the rectangle. */
  PP_Point point;
  /* The width and height of the rectangle. */
  PP_Size size;
};