mdebase/milkwm/milkwm.h

45 lines
815 B
C
Raw Normal View History

2025-12-04 06:45:45 +09:00
#ifndef __MILKWM_H__
#define __MILKWM_H__
#include "config.h"
/* Milsko */
#include <MDE/Foundation.h>
#include <Mw/Milsko.h>
/* External */
2025-12-05 14:26:13 +09:00
#include <libconfig.h>
2025-12-04 06:45:45 +09:00
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
/* Standard */
2025-12-05 14:26:13 +09:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
2025-12-04 06:45:45 +09:00
#include <pthread.h>
#define TitleBarHeight 16
/* xserver.c */
extern pthread_t xthread;
extern pthread_mutex_t xmutex;
extern Display* xdisplay;
int init_x(void);
void loop_x(void);
/* wm.c */
void loop_wm(void);
MwWidget wm_frame(int w, int h);
2025-12-05 14:26:13 +09:00
void wm_destroy(MwWidget widget);
2025-12-04 06:45:45 +09:00
void wm_set_name(MwWidget widget, const char* name);
2025-12-07 10:42:45 +09:00
void wm_focus(MwWidget widget, int focus);
2025-12-04 06:45:45 +09:00
2025-12-05 14:26:13 +09:00
/* config.c */
extern config_t wm_config;
void wm_config_init(void);
void wm_config_read(void);
2025-12-04 06:45:45 +09:00
#endif