3 * DOCKLIB - a simple dockapp library
5 * Copyright (C) 2000-2005 some people...
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program 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
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 #include <sys/types.h>
39 #include <X11/extensions/shape.h>
41 extern Display
*display
;
47 #define MAX_LINE_LEN 512
48 #define MAX_VALUE_LEN 256
50 #define MAX_STRING_LEN 32
57 #define MAX_MOUSE_REGION 8
63 /*-------------------------------------------------------------------------------*/
77 XpmAttributes attributes
;
82 enum { /* don't change the order! */
106 /*-------------------------------------------------------------------------------*/
108 void dcl_open_x_window (int argc
, char *argv
[], char **, char *, int, int);
109 void dcl_redraw_window (void);
110 void dcl_redraw_window_xy (int x
, int y
);
111 void dcl_copy_xpm_area (int x
, int y
, int sx
, int sy
, int dx
, int dy
);
112 void dcl_copy_font_xpm_area (int x
, int y
, int sx
, int sy
, int dx
, int dy
);
113 void dcl_copy_led_xpm_area (int x
, int y
, int sx
, int sy
, int dx
, int dy
);
114 void dcl_copy_xbm_area (int x
, int y
, int sx
, int sy
, int dx
, int dy
);
115 void dcl_set_mask_xy (int x
, int y
);
116 void dcl_get_xpm (XpmIcon
*wmgen
, char **pixmap_bytes
);
117 Pixel
dcl_get_color (char *name
);
118 int dcl_draw_char (int x
, int y
, char z
, int font_type
);
119 int dcl_draw_led (int x
, int y
, int color
);
120 int dcl_draw_string (int x
, int y
, char *string
, int font_type
, int length
);
121 void dcl_add_mouse_region (int index
, int left
, int top
, int right
, int bottom
);
122 int dcl_check_mouse_region (int x
, int y
);
123 char* dcl_getfilename_config (char *config_dir
, char *config_filename
);
124 void* dcl_prefs_openfile (char *filename
, int openmode
);
125 void dcl_prefs_closefile (void);
126 void dcl_prefs_put_int (char *tagname
, int value
);
127 void dcl_prefs_put_float (char *tagname
, float value
);
128 void dcl_prefs_put_string (char *tagname
, char *value
);
129 void dcl_prefs_put_lf (void);
130 void dcl_prefs_put_comment (char *comment
);
131 int dcl_prefs_get_int (char *tagname
);
132 float dcl_prefs_get_float (char *tagname
);
133 char* dcl_prefs_get_string (char *tagname
);
134 char* dcl_strcpy (char *dest
, const char *src
, int maxlength
);
135 char* dcl_strcat (char *dest
, const char *src
, int maxlength
);
136 void dcl_execute_command (char *command
, int flag
);
137 int dcl_check_file (char *filename
);
138 void dcl_draw_point (int x
, int y
, Pixel color
);
139 void dcl_draw_line (int x0
, int y0
, int x1
, int y1
, Pixel color
);
143 * Created: Sat 26 Mar 2005 05:46:11 PM CET
144 * Last Modified: Sat 26 Mar 2005 10:53:50 PM CET