LibMB
1.9
|
00001 #ifndef _MBUTIL_H_ 00002 #define _MBUTIL_H_ 00003 00004 /* libmb 00005 * Copyright (C) 2002 Matthew Allum 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the 00019 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 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 #include <sys/time.h> 00034 #include <time.h> 00035 00036 #include <X11/Xlib.h> 00037 #include <X11/Xutil.h> 00038 #include <X11/Xatom.h> 00039 00040 #include "libmb/mbconfig.h" 00041 00049 #ifdef __cplusplus 00050 extern "C" { 00051 #endif 00052 00059 int mb_exec (const char *cmd); 00060 00068 Window mb_single_instance_get_window(Display *dpy, const char *bin_name); 00069 00077 Bool mb_single_instance_is_starting(Display *dpy, const char *bin_name); 00078 00085 char* 00086 mb_util_get_homedir(void); 00087 00094 void mb_util_window_activate(Display *dpy, Window win); 00095 00102 Pixmap mb_util_get_root_pixmap(Display *dpy); 00103 00111 char *mb_util_get_theme_full_path(const char *theme_name); 00112 00114 void 00115 mb_util_animate_startup(Display *dpy, 00116 int x, 00117 int y, 00118 int width, 00119 int height); 00120 00121 void 00122 mb_util_frame_animation(Display *dpy, 00123 XRectangle *src, 00124 XRectangle *dst); 00125 void 00126 mb_util_circle_animation(Display *dpy, 00127 XRectangle *src, 00128 XRectangle *dst); 00129 void 00130 mb_util_xor_animation (Display *dpy, 00131 XRectangle *src, 00132 XRectangle *dst, 00133 void (*draw_func) 00134 (Display *dpy, 00135 GC gc, 00136 XRectangle *rect)); 00137 00138 int 00139 mb_want_warnings (); 00140 00141 #ifdef __cplusplus 00142 } 00143 #endif 00144 00145 00149 #endif