GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_types.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2024 Cyril Hrubis <metan@ucw.cz>
4 */
5
11#ifndef CORE_GP_TYPES_H
12#define CORE_GP_TYPES_H
13
14#include <stdint.h>
15
19typedef int gp_coord;
20
24typedef unsigned int gp_size;
25
26typedef int gp_ssize;
27
33typedef uint32_t gp_pixel;
34
35/* Pixel type description */
37
38/* Bitmap image */
39typedef struct gp_pixmap gp_pixmap;
40
41/* Progress callback */
42typedef struct gp_progress_cb gp_progress_cb;
43
65
69extern const char **gp_symmetry_names;
70
77gp_symmetry gp_symmetry_by_name(const char *symmetry);
78
79#endif /* CORE_GP_TYPES_H */
const char ** gp_symmetry_names
NULL-terminated array of symmetry names (C strings).
uint32_t gp_pixel
Pixel integer value.
Definition gp_types.h:33
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition gp_types.h:19
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
gp_symmetry gp_symmetry_by_name(const char *symmetry)
Rotation by by name (as defined in gp_symmetry_names).
gp_symmetry
Rotation and mirroring flags.
Definition gp_types.h:47
@ GP_ROTATE_90
Rotate 90 degrees clockwise.
Definition gp_types.h:49
@ GP_ROTATE_CCW
Rotate counter clockwise. Alias for GP_ROTATE_270.
Definition gp_types.h:57
@ GP_ROTATE_180
Rotate 180 degrees clockwise.
Definition gp_types.h:53
@ GP_ROTATE_270
Rotate 270 degrees clockwise.
Definition gp_types.h:55
@ GP_MIRROR_H
Mirror horizontally.
Definition gp_types.h:59
@ GP_ROTATE_INVALID
Return value for invalid symmetry.
Definition gp_types.h:63
@ GP_ROTATE_CW
Rotate clockwise. Alias for GP_ROTATE_90.
Definition gp_types.h:51
@ GP_MIRROR_V
Mirror vertically.
Definition gp_types.h:61
A description of a gp_pixel_type Assumes name with at most 15 chars.
Definition gp_pixel.h:80
A pixmap buffer.
Definition gp_pixmap.h:33
Progress callback.