mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 10:20:38 +02:00
85855ec5ac
- solidify/overlap.c (BORDER, sx, sy), solidify/style.h (OVERLAP_BORDER): moved and renamed - solidify/overlap.c (r_center, scroll_event): moved center radius calculation to separate function - solidify/overlap.c (draw_image): renamed to draw_map - solidify/overlap.c (draw_image): draw an on-screen display (OSD) - solidify/level.c (expose_event, overlap): propagate OSD on/off switch - solidify/overlap.c (osd_proximity, scroll_event, motion_notify_event, overlap): enable OSD when approaching the center circle or a diagonal - solidify/overlap.c (scroll_event): reversed the direction of rotation
31 lines
741 B
C
31 lines
741 B
C
/*
|
|
* style.h - GUI style parameters and items
|
|
*
|
|
* Written 2010 by Werner Almesberger
|
|
* Copyright 2010 by Werner Almesberger
|
|
*
|
|
* 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
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef STYLE_H
|
|
#define STYLE_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
extern GdkGC *gc_osd;
|
|
|
|
|
|
#define OSD_PROXIMITY 20 /* pixels */
|
|
#define LEVEL_CENTER_DIV 5 /* fraction of diagonal */
|
|
#define OVERLAP_BORDER 10 /* pixels around min. drawing area */
|
|
#define OVERLAP_CENTER_DIV 5 /* fraction of diagonal */
|
|
|
|
|
|
void init_style(GdkDrawable *da);
|
|
|
|
#endif /* !STYLE_H */
|