b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /******************************************************************************
|
| 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 |
|
| 26 | typedef void * IMAGE;
|
| 27 |
|
| 28 | typedef 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
|
| 39 | IMAGE ImageInit (void *dfb);
|
| 40 | void ImageDeinit (IMAGE pt);
|
| 41 | void ImageSetup (IMAGE pt, int lx, int ly, int w, int h);
|
| 42 | void ImageSetup2 (IMAGE pt, OBJECT_RECT rect);
|
| 43 | void ImageDraw (IMAGE pt);
|
| 44 | void ImageSetArray (IMAGE pt, const IMAGE_ARRAY_ITEM *array, int size);
|
| 45 | void ImageSetFromArray (IMAGE pt, int key);
|
| 46 | void ImageSetFromPath (IMAGE pt, char *resPath);
|
| 47 | void ImageGetGeometry (IMAGE pt, OBJECT_RECT *rect);
|
| 48 | #ifdef __cplusplus
|
| 49 | }
|
| 50 | #endif
|
| 51 |
|
| 52 | #endif //__IMAGE_H__
|
| 53 |
|