summaryrefslogtreecommitdiff
path: root/include/window.h
blob: ed3576fb1870914ec0eb591be3e74a97e27600f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef POKEDIAMOND_WINDOW_H
#define POKEDIAMOND_WINDOW_H

struct Window
{
    u8 * unk_00;
    u8 unk_04;
    u8 unk_05;
    u8 unk_06;
    u8 width;
    u8 height;
    u8 unk_9;
    u16 unk_A_0:15;
    u16 unk_A_15:1;
    void * unk_C;
};

extern void FillWindowPixelBuffer(struct Window *, u32);
extern void CopyWindowToVram(struct Window *);
extern void FillWindowPixelRect(struct Window *, u32 fillValue, u16 x, u16 y, u16 width, u16 height);
extern void ScrollWindow(struct Window *, u8, u8, u8);
extern u16 GetWindowWidth(struct Window *);
extern u16 GetWindowHeight(struct Window *);
extern void BlitBitmapRectToWindow(struct Window * window, const void * src, u16 srcX, u16 srcY, u16 srcWidth, u16 srcHeight, u16 dstX, u16 dstY, u16 dstWidth, u16 dstHeight);

#endif // POKEDIAMOND_WINDOW_H