NetSurf
include
netsurf
types.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Vincent Sanders <vince@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/**
20
* \file
21
*
22
* NetSurf types.
23
*
24
* These are convenience types used throughout the browser.
25
*/
26
27
#ifndef NETSURF_TYPES_H
28
#define NETSURF_TYPES_H
29
30
#include <stdint.h>
31
32
/**
33
* Colour type: XBGR
34
*/
35
typedef
uint32_t
colour
;
36
37
/**
38
* Rectangle coordinates
39
*/
40
typedef
struct
rect
{
41
int
x0
,
y0
;
/**< Top left */
42
int
x1
,
y1
;
/**< Bottom right */
43
}
rect
;
44
45
#endif
rect
Rectangle coordinates.
Definition:
types.h:40
rect::x0
int x0
Definition:
types.h:41
rect::y0
int y0
Top left.
Definition:
types.h:41
rect::x1
int x1
Definition:
types.h:42
rect::y1
int y1
Bottom right.
Definition:
types.h:42
colour
uint32_t colour
Colour type: XBGR.
Definition:
types.h:35
rect
struct rect rect
Rectangle coordinates.
Generated on Sun Oct 20 2024 12:52:28 for NetSurf by
1.9.4