mdeutils/mimview/mimview.h

44 lines
747 B
C
Raw Normal View History

2025-11-30 08:00:44 +09:00
#ifndef __MIMVIEW_H__
#define __MIMVIEW_H__
#define VERSION "0.0.0"
#include "config.h"
/* Milsko */
#include <MDE/Foundation.h>
#include <Mw/Milsko.h>
/* External */
/* Standard */
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
2025-12-01 23:10:19 +09:00
typedef struct image {
char* path;
unsigned char* data;
int width;
int height;
int x;
int y;
double scale;
} image_t;
2025-11-30 08:00:44 +09:00
/* main.c */
2025-12-01 23:10:19 +09:00
extern MwWidget window, menu, image;
extern MwLLPixmap pxprojector, pxdata;
extern MwWidget bprev, bnext, bzoomin, bzoomout;
2025-11-30 08:00:44 +09:00
/* ui.c */
2025-12-01 23:10:19 +09:00
extern int current;
void ui_init(void);
/* image.c */
extern image_t* images;
void image_init(void);
void image_add(const char* path);
void image_render(void);
2025-11-30 08:00:44 +09:00
#endif