LibMB
1.9
Main Page
Modules
Files
File List
libmb
mbutil.h
1
#ifndef _MBUTIL_H_
2
#define _MBUTIL_H_
3
4
/* libmb
5
* Copyright (C) 2002 Matthew Allum
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
21
*/
22
23
#include <stdio.h>
24
#include <unistd.h>
25
#include <stdlib.h>
26
#include <string.h>
27
#include <sys/types.h>
28
#include <sys/stat.h>
29
#include <dirent.h>
30
#include <signal.h>
31
#include <errno.h>
32
#include <sys/wait.h>
33
#include <sys/time.h>
34
#include <time.h>
35
36
#include <X11/Xlib.h>
37
#include <X11/Xutil.h>
38
#include <X11/Xatom.h>
39
40
#include "libmb/mbconfig.h"
41
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
59
int
mb_exec
(
const
char
*cmd);
60
68
Window
mb_single_instance_get_window
(Display *dpy,
const
char
*bin_name);
69
77
Bool
mb_single_instance_is_starting
(Display *dpy,
const
char
*bin_name);
78
85
char
*
86
mb_util_get_homedir
(
void
);
87
94
void
mb_util_window_activate
(Display *dpy, Window win);
95
102
Pixmap
mb_util_get_root_pixmap
(Display *dpy);
103
111
char
*
mb_util_get_theme_full_path
(
const
char
*theme_name);
112
114
void
115
mb_util_animate_startup
(Display *dpy,
116
int
x,
117
int
y,
118
int
width,
119
int
height);
120
121
void
122
mb_util_frame_animation(Display *dpy,
123
XRectangle *src,
124
XRectangle *dst);
125
void
126
mb_util_circle_animation(Display *dpy,
127
XRectangle *src,
128
XRectangle *dst);
129
void
130
mb_util_xor_animation (Display *dpy,
131
XRectangle *src,
132
XRectangle *dst,
133
void
(*draw_func)
134
(Display *dpy,
135
GC gc,
136
XRectangle *rect));
137
138
int
139
mb_want_warnings ();
140
141
#ifdef __cplusplus
142
}
143
#endif
144
145
149
#endif
Generated on Tue Mar 1 2016 23:18:14 for LibMB by
1.8.4