Debian Codegraph @

src/style.h

raw
1 /*
2 * ConnMan GTK GUI
3 *
4 * Copyright (C) 2015 Intel Corporation. All rights reserved.
5 * Author: Jaakko Hannikainen <[email protected]>
6 *
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.
11 *
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.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef _CONNMAN_GTK_STYLE_H
22 #define _CONNMAN_GTK_STYLE_H
23
24 #include <gtk/gtk.h>
25
26 #define DEFAULT_WIDTH 650
27 #define DEFAULT_HEIGHT 401
28 #define LIST_WIDTH 200
29
30 #define SETTINGS_WIDTH 650
31 #define SETTINGS_HEIGHT 401
32 #define SETTINGS_LIST_WIDTH 150
33
34 #define MARGIN_SMALL 5
35 #define MARGIN_MEDIUM 10
36 #define MARGIN_LARGE 15
37
38 extern GtkCssProvider *css_provider;
39
40 void style_init();
41 void label_align_text(GtkLabel *label, gfloat xalign, gfloat yalign);
42 void style_add_context(GtkWidget *widget);
43 void style_set_margin(GtkWidget *widget, gint margin);
44 void style_set_margin_start(GtkWidget *widget, gint margin);
45 void style_set_margin_end(GtkWidget *widget, gint margin);
46
47 #endif /* _CONNMAN_GTK_STYLE_H */