Changeset ddb844e in mainline for uspace/lib/gfx/include/types/gfx/coord.h
- Timestamp:
- 2020-07-03T23:00:34Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e79a025
- Parents:
- edb57bc6 (diff), 1a1c75e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfx/include/types/gfx/coord.h
redb57bc6 rddb844e 1 1 /* 2 * Copyright (c) 201 2 Petr Koupy2 * Copyright (c) 2019 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup compositor29 /** @addtogroup libgfx 30 30 * @{ 31 31 */ 32 /** @file 32 /** 33 * @file Graphic coordinates 33 34 */ 34 35 35 #ifndef COMPOSITOR_COMPOSITOR_H_36 #define COMPOSITOR_COMPOSITOR_H_36 #ifndef _GFX_TYPES_COORD_H 37 #define _GFX_TYPES_COORD_H 37 38 38 typedef native_t desktop_coord_t; 39 #include <errno.h> 40 #include <stdint.h> 41 42 typedef int gfx_coord_t; 39 43 40 44 typedef struct { 41 desktop_coord_t x; 42 desktop_coord_t y; 43 } desktop_point_t; 44 45 typedef desktop_point_t desktop_vector_t; 45 gfx_coord_t x; 46 gfx_coord_t y; 47 } gfx_coord2_t; 46 48 47 49 typedef struct { 48 desktop_coord_t x; 49 desktop_coord_t y; 50 desktop_coord_t w; 51 desktop_coord_t h; 52 } desktop_rect_t; 53 54 /* TODO remove? */ 55 typedef struct { 56 double x; 57 double y; 58 } double_point_t; 59 60 typedef double_point_t double_vector_t; 50 gfx_coord2_t p0; 51 gfx_coord2_t p1; 52 } gfx_rect_t; 61 53 62 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.