Back to index

scribus-ng  1.3.4.dfsg+svn20071115
art_render_pattern.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /*
00008  * art_render_pattern.h: 
00009  *
00010  * Libart_LGPL - library of basic graphic primitives
00011  * Copyright (C) 2000 Raph Levien
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Library General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Library General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Library General Public
00024  * License along with this library; if not, write to the
00025  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00026  * Boston, MA 02111-1307, USA.
00027  *
00028  */
00029 
00030 #ifndef __ART_RENDER_PATTERN_H__
00031 #define __ART_RENDER_PATTERN_H__
00032 
00033 #ifdef LIBART_COMPILATION
00034 #include "art_filterlevel.h"
00035 #include "art_render.h"
00036 #else
00037 #include <libart_lgpl/art_filterlevel.h>
00038 #include <libart_lgpl/art_render.h>
00039 #endif
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif /* __cplusplus */
00044 
00045 typedef struct _ArtPattern ArtPattern;
00046 
00047 struct _ArtPattern {
00048   unsigned int twidth;             /* width of tile */
00049   unsigned int theight;            /* height of tile */
00050   art_u8 opacity;                  /* opacity level */
00051   double angle;
00052   art_u8 *buffer;                  /* image source */
00053 };
00054 
00055 void
00056 art_render_pattern (ArtRender *render,
00057                          const ArtPattern *pattern,
00058                          ArtFilterLevel level);
00059 
00060 #ifdef __cplusplus
00061 }
00062 #endif /* __cplusplus */
00063 
00064 #endif /* __ART_RENDER_PATTERN_H__ */