blob: a14d2be39673393491c264b387765c0828b56f51 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
2*(C) Copyright 2014 Marvell International Ltd.
3* All Rights Reserved
4******************************************************************************/
5/*******************************************************************************
6 *
7 * Filename: Image.h
8 *
9 * Authors: Boaz Sommer
10 *
11 * Description: An Image class
12 *
13 * HISTORY:
14 *
15 *
16 *
17 * Notes:
18 *
19 ******************************************************************************/
20#ifndef __IMAGE_H__
21#define __IMAGE_H__
22
23#include "Object.h"
24#include "mgui_utils.h"
25
26typedef void * IMAGE;
27
28typedef struct _IMAGE_ARRAY_ITEM
29{
30 int key;
31 char *path;
32 void *image_surface;
33 unsigned int image_blitting_flags;
34}IMAGE_ARRAY_ITEM;
35
36#ifdef __cplusplus
37 extern "C" {
38#endif
39IMAGE ImageInit (void *dfb);
40void ImageDeinit (IMAGE pt);
41void ImageSetup (IMAGE pt, int lx, int ly, int w, int h);
42void ImageSetup2 (IMAGE pt, OBJECT_RECT rect);
43void ImageDraw (IMAGE pt);
44void ImageSetArray (IMAGE pt, const IMAGE_ARRAY_ITEM *array, int size);
45void ImageSetFromArray (IMAGE pt, int key);
46void ImageSetFromPath (IMAGE pt, char *resPath);
47void ImageGetGeometry (IMAGE pt, OBJECT_RECT *rect);
48#ifdef __cplusplus
49 }
50#endif
51
52#endif //__IMAGE_H__
53