Ignore:
Timestamp:
2020-07-03T23:41:46Z (4 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd11144
Parents:
edb57bc6 (diff), ddb844e (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.
git-author:
jxsvoboda <5887334+jxsvoboda@…> (2020-07-03 23:41:46)
git-committer:
GitHub <noreply@…> (2020-07-03 23:41:46)
Message:

Merge pull request #200 from jxsvoboda/gfx

Display server

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/include/types/gfx/coord.h

    redb57bc6 re79a025  
    11/*
    2  * Copyright (c) 2012 Petr Koupy
     2 * Copyright (c) 2019 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup compositor
     29/** @addtogroup libgfx
    3030 * @{
    3131 */
    32 /** @file
     32/**
     33 * @file Graphic coordinates
    3334 */
    3435
    35 #ifndef COMPOSITOR_COMPOSITOR_H_
    36 #define COMPOSITOR_COMPOSITOR_H_
     36#ifndef _GFX_TYPES_COORD_H
     37#define _GFX_TYPES_COORD_H
    3738
    38 typedef native_t desktop_coord_t;
     39#include <errno.h>
     40#include <stdint.h>
     41
     42typedef int gfx_coord_t;
    3943
    4044typedef 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;
    4648
    4749typedef 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;
    6153
    6254#endif
Note: See TracChangeset for help on using the changeset viewer.