00001 #ifndef _MBUTIL_H_
00002 #define _MBUTIL_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <stdio.h>
00024 #include <unistd.h>
00025 #include <stdlib.h>
00026 #include <string.h>
00027 #include <sys/types.h>
00028 #include <sys/stat.h>
00029 #include <dirent.h>
00030 #include <signal.h>
00031 #include <errno.h>
00032 #include <sys/wait.h>
00033
00034 #include <X11/Xlib.h>
00035 #include <X11/Xutil.h>
00036 #include <X11/Xatom.h>
00037
00038 #include "libmb/mbconfig.h"
00039
00047 #ifdef __cplusplus
00048 extern "C" {
00049 #endif
00050
00057 int mb_exec (const char *cmd);
00058
00066 Window mb_single_instance_get_window(Display *dpy, const char *bin_name);
00067
00075 Bool mb_single_instance_is_starting(Display *dpy, const char *bin_name);
00076
00083 char*
00084 mb_util_get_homedir(void);
00085
00092 void mb_util_window_activate(Display *dpy, Window win);
00093
00100 Pixmap mb_util_get_root_pixmap(Display *dpy);
00101
00109 char *mb_util_get_theme_full_path(const char *theme_name);
00110
00112 void
00113 mb_util_animate_startup(Display *dpy,
00114 int x,
00115 int y,
00116 int width,
00117 int height);
00118
00119
00120 int
00121 mb_want_warnings ();
00122
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126
00127
00131 #endif