Haru Free PDF Library
hpdf_gstate.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library >> -- hpdf_gstate.h
3  *
4  * URL: http://libharu.org
5  *
6  * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7  * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
8  *
9  * Permission to use, copy, modify, distribute and sell this software
10  * and its documentation for any purpose is hereby granted without fee,
11  * provided that the above copyright notice appear in all copies and
12  * that both that copyright notice and this permission notice appear
13  * in supporting documentation.
14  * It is provided "as is" without express or implied warranty.
15  *
16  */
17 
18 #ifndef _HPDF_GSTATE_H
19 #define _HPDF_GSTATE_H
20 
21 #include "hpdf_font.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 /*----------------------------------------------------------------------------*/
29 /*------ graphic state stack -------------------------------------------------*/
30 
31 typedef struct _HPDF_GState_Rec *HPDF_GState;
32 
33 typedef struct _HPDF_GState_Rec {
41 
48 
57 
61 
65 
66 /*----------------------------------------------------------------------------*/
67 /*----------------------------------------------------------------------------*/
68 
71  HPDF_GState current);
72 
73 
76  HPDF_GState gstate);
77 
78 #ifdef __cplusplus
79 }
80 #endif /* __cplusplus */
81 
82 #endif /* _HPDF_GSTATE_H */
83 
HPDF_GState HPDF_GState_Free(HPDF_MMgr mmgr, HPDF_GState gstate)
struct _HPDF_GState_Rec HPDF_GState_Rec
HPDF_GState HPDF_GState_New(HPDF_MMgr mmgr, HPDF_GState current)
struct _HPDF_GState_Rec * HPDF_GState
Definition: hpdf_gstate.h:31
enum _HPDF_LineCap HPDF_LineCap
enum _HPDF_LineJoin HPDF_LineJoin
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
enum _HPDF_TextRenderingMode HPDF_TextRenderingMode
float HPDF_REAL
Definition: hpdf_types.h:79
enum _HPDF_ColorSpace HPDF_ColorSpace
enum _HPDF_WritingMode HPDF_WritingMode
Definition: hpdf_types.h:296
Definition: hpdf_types.h:230
Definition: hpdf_objects.h:421
Definition: hpdf_gstate.h:33
HPDF_REAL text_leading
Definition: hpdf_gstate.h:45
HPDF_LineCap line_cap
Definition: hpdf_gstate.h:36
HPDF_Font font
Definition: hpdf_gstate.h:58
HPDF_DashMode dash_mode
Definition: hpdf_gstate.h:39
HPDF_RGBColor rgb_stroke
Definition: hpdf_gstate.h:52
HPDF_REAL line_width
Definition: hpdf_gstate.h:35
HPDF_WritingMode writing_mode
Definition: hpdf_gstate.h:60
HPDF_REAL miter_limit
Definition: hpdf_gstate.h:38
HPDF_REAL text_rise
Definition: hpdf_gstate.h:47
HPDF_ColorSpace cs_fill
Definition: hpdf_gstate.h:49
HPDF_RGBColor rgb_fill
Definition: hpdf_gstate.h:51
HPDF_TextRenderingMode rendering_mode
Definition: hpdf_gstate.h:46
HPDF_REAL gray_stroke
Definition: hpdf_gstate.h:56
HPDF_REAL h_scalling
Definition: hpdf_gstate.h:44
HPDF_REAL flatness
Definition: hpdf_gstate.h:40
HPDF_REAL word_space
Definition: hpdf_gstate.h:43
HPDF_REAL char_space
Definition: hpdf_gstate.h:42
HPDF_CMYKColor cmyk_stroke
Definition: hpdf_gstate.h:54
HPDF_LineJoin line_join
Definition: hpdf_gstate.h:37
HPDF_ColorSpace cs_stroke
Definition: hpdf_gstate.h:50
HPDF_CMYKColor cmyk_fill
Definition: hpdf_gstate.h:53
HPDF_UINT depth
Definition: hpdf_gstate.h:63
HPDF_REAL font_size
Definition: hpdf_gstate.h:59
HPDF_TransMatrix trans_matrix
Definition: hpdf_gstate.h:34
HPDF_REAL gray_fill
Definition: hpdf_gstate.h:55
HPDF_GState prev
Definition: hpdf_gstate.h:62
Definition: hpdf_mmgr.h:40
Definition: hpdf_types.h:287
Definition: hpdf_types.h:240