Subversion Repositories Kolibri OS

Rev

Rev 5229 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5229 raandoom 1
#ifndef RECT_H
2
#define RECT_H
3
 
4
#include "defines.h"
5
 
6
typedef struct {
7
    short x;
8
    short y;
9
    short width;
10
    short height;
11
} rect;
12
 
13
typedef struct {
14
    short x;
15
    short y;
16
} point;
17
 
18
// Draw rect filled with color
19
void rect_draw(rect* r, __u32 color);
20
 
21
// Make transformation step
22
// Rect 'from' will be changed
23
// Return 'true' if transformation ends ('from' == 'to')
24
__u8 rect_transform(rect* from, rect* to, __u16 step);
25
 
26
// Draw text at the rect center
5238 raandoom 27
void rect_draw_text(rect* r, char* txt, __u32 len, __u32 color, __u32 frame_color);
5229 raandoom 28
 
29
// Draw value as text at the rect center
5238 raandoom 30
void rect_draw_value(rect* r, __u32 v, __u32 color, __u32 frame_color);
5229 raandoom 31
 
32
#endif // RECT_H