blob: 1727469add6f3101256ed37e3ed7557ad892cb57 (
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
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
nautilus-region.h: A simple wrapper on GdkRegion with rectangle operations.
Copyright (C) 2000 Eazel, Inc.
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.
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
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.
Author: Ramiro Estrugo <ramiro@eazel.com>
*/
#ifndef NAUTILUS_REGION_H
#define NAUTILUS_REGION_H
#include <libgnome/gnome-defs.h>
#include <libart_lgpl/art_rect.h>
#include <glib.h>
#include <gdk/gdk.h>
/* Opaque NautilusRegion declaration. */
typedef struct NautilusRegion NautilusRegion;
NautilusRegion *nautilus_region_new (void);
void nautilus_region_free (NautilusRegion *region);
void nautilus_region_add_rectangle (NautilusRegion *region,
const ArtIRect *rectangle);
void nautilus_region_subtract_rectangle (NautilusRegion *region,
const ArtIRect *rectangle);
void nautilus_region_set_gc_clip_region (const NautilusRegion *region,
GdkGC *gc);
#endif /* NAUTILUS_REGION_H */
|