summaryrefslogtreecommitdiffstats
path: root/src/settings.h
blob: fec7bffb69364af44bb472f8e9752f06cd333358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2003-2019 Jason Woodward <woodwardj at jaos dot org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef GSLAPT_SETTINGS_HEADER
#define GSLAPT_SETTINGS_HEADER

#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
#include "config.h"

typedef struct {
    gint x;
    gint y;
    gint width;
    gint height;
    gint cl_x;
    gint cl_y;
    gint cl_width;
    gint cl_height;
    gint pref_x;
    gint pref_y;
    gint pref_width;
    gint pref_height;
    gint tran_x;
    gint tran_y;
    gint tran_width;
    gint tran_height;
    gint progress_x;
    gint progress_y;
    gint progress_width;
    gint progress_height;
    gint notify_x;
    gint notify_y;
    gint notify_width;
    gint notify_height;
} GslaptSettings;

char *gslapt_init_rc_dir(void);
GslaptSettings *gslapt_new_rc(void);
GslaptSettings *gslapt_read_rc(void);
int gslapt_write_rc(GslaptSettings *gslapt_settings);
void gslapt_free_rc(GslaptSettings *gslapt_settings);

#endif