Main Page | Modules | Directories | File List

mbutil.h

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 
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 #ifdef __cplusplus
00120 }
00121 #endif
00122 
00123 
00127 #endif

Generated on Tue Jan 11 08:51:10 2005 for LibMB by  doxygen 1.4.0