axle OS
x86_32 UNIX-like hobby OS
src
gfx
lib
bmp.h
1
#ifndef BMP_H
2
#define BMP_H
3
4
#include <std/std_base.h>
5
#include <stdint.h>
6
#include "color.h"
7
#include "rect.h"
8
#include "ca_layer.h"
9
10
__BEGIN_DECLS
11
12
typedef
struct
bitmap
{
13
//common
14
Rect
frame;
15
char
needs_redraw;
16
ca_layer* layer;
17
struct
view
* superview;
18
} Bmp;
19
20
Bmp* create_bmp(
Rect
frame, ca_layer* layer);
21
Bmp* load_bmp(
Rect
frame,
char
* filename);
22
void
draw_bmp(ca_layer* dest, Bmp* bmp);
23
24
void
bmp_teardown(Bmp* bmp);
25
26
__END_DECLS
27
28
#endif
bitmap
Definition:
bmp.h:12
rect
Definition:
rect.h:14
view
Definition:
view.h:15
Generated by
1.8.14