~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to libgimp/gimptile.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LIBGIMP - The GIMP Library
 
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 
3
 *
 
4
 * gimptile.h
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library; if not, write to the
 
18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
 * Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __GIMP_TILE_H__
 
23
#define __GIMP_TILE_H__
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
/* For information look into the C source or the html documentation */
 
28
 
 
29
 
 
30
struct _GimpTile
 
31
{
 
32
  guint         ewidth;     /* the effective width of the tile */
 
33
  guint         eheight;    /* the effective height of the tile */
 
34
  guint         bpp;        /* the bytes per pixel (1, 2, 3 or 4 ) */
 
35
  guint         tile_num;   /* the number of this tile within the drawable */
 
36
  guint16       ref_count;  /* reference count for the tile */
 
37
  guint         dirty : 1;  /* is the tile dirty? has it been modified? */
 
38
  guint         shadow: 1;  /* is this a shadow tile */
 
39
  guchar       *data;       /* the pixel data for the tile */
 
40
  GimpDrawable *drawable;   /* the drawable this tile came from */
 
41
};
 
42
 
 
43
 
 
44
void    gimp_tile_ref          (GimpTile  *tile);
 
45
void    gimp_tile_ref_zero     (GimpTile  *tile);
 
46
void    gimp_tile_unref        (GimpTile  *tile,
 
47
                                gboolean   dirty);
 
48
void    gimp_tile_flush        (GimpTile  *tile);
 
49
 
 
50
void    gimp_tile_cache_size   (gulong     kilobytes);
 
51
void    gimp_tile_cache_ntiles (gulong     ntiles);
 
52
 
 
53
 
 
54
/*  private function  */
 
55
 
 
56
void    _gimp_tile_cache_flush_drawable (GimpDrawable *drawable);
 
57
 
 
58
 
 
59
G_END_DECLS
 
60
 
 
61
#endif /* __GIMP_TILE_H__ */