Root/solidify/style.h

Source at commit a7105addcbd924297e077d7203b94139f37224d7 created 8 years 11 months ago.
By Werner Almesberger, Like rotations, shifts can now be accelerated by changing the mouse position.
1/*
2 * style.h - GUI style parameters and items
3 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 by Werner Almesberger
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
13#ifndef STYLE_H
14#define STYLE_H
15
16#include <gtk/gtk.h>
17
18
19extern GdkGC *gc_osd;
20
21
22#define OSD_PROXIMITY 20 /* pixels */
23#define LEVEL_CENTER_DIV 5 /* fraction of diagonal */
24#define OVERLAP_BORDER 10 /* pixels around min. drawing area */
25#define OVERLAP_CENTER_DIV 5 /* fraction of diagonal */
26#define SLOWEST_ROT 3 /* thrice the half-diagonal */
27#define FASTEST_ROT 2 /* one pixel in distance of 2 pixels */
28#define DIST_STEPS 5 /* fastest shift is 5 px/wheel step */
29
30
31void init_style(GdkDrawable *da);
32
33#endif /* !STYLE_H */
34

Archive Download this file

Branches:
master



interactive