FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
rdtk_nine_patch.h
1
19#ifndef RDTK_NINE_PATCH_PRIVATE_H
20#define RDTK_NINE_PATCH_PRIVATE_H
21
22#include <stdint.h>
23#include <rdtk/rdtk.h>
24
25#include <winpr/image.h>
26
27#include "rdtk_surface.h"
28
29#include "rdtk_engine.h"
30
32{
33 rdtkEngine* engine;
34
35 wImage* image;
36
37 int width;
38 int height;
39 int scanline;
40 uint8_t* data;
41
42 int scaleLeft;
43 int scaleRight;
44 int scaleWidth;
45 int scaleTop;
46 int scaleBottom;
47 int scaleHeight;
48
49 int fillLeft;
50 int fillRight;
51 int fillWidth;
52 int fillTop;
53 int fillBottom;
54 int fillHeight;
55};
56
57#ifdef __cplusplus
58extern "C"
59{
60#endif
61
62 int rdtk_nine_patch_set_image(rdtkNinePatch* ninePatch, wImage* image);
63 int rdtk_nine_patch_draw(rdtkSurface* surface, int nXDst, int nYDst, int nWidth, int nHeight,
64 rdtkNinePatch* ninePatch);
65
66 int rdtk_nine_patch_engine_init(rdtkEngine* engine);
67 int rdtk_nine_patch_engine_uninit(rdtkEngine* engine);
68
69 rdtkNinePatch* rdtk_nine_patch_new(rdtkEngine* engine);
70 void rdtk_nine_patch_free(rdtkNinePatch* ninePatch);
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* RDTK_NINE_PATCH_PRIVATE_H */