aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/fontconfig/doc/FcPatternGet-Type.3
blob: 6b0eb55b51af5b4b6f6b9c8095b3f1ca29ad4a41 (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
.\" This manpage has been automatically generated by docbook2man 
.\" from a DocBook document.  This tool can be found at:
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
.\" Please send any bug reports, improvements, comments, patches, 
.\" etc. to Steve Cheng <steve@ggi-project.org>.
.TH "FcPatternGet-Type" "3" "27 April 2005" "" ""

.SH NAME
FcPatternGetInteger, FcPatternGetDouble, FcPatternGetString, FcPatternGetMatrix, FcPatternGetCharSet, FcPatternGetBool \- Return a typed value from a pattern
.SH SYNOPSIS
.sp
\fB#include <fontconfig.h>
.sp
FcResult FcPatternGetInteger (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, int *\fIi\fB);
.sp
FcResult FcPatternGetDouble (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, double *\fId\fB);
.sp
FcResult FcPatternGetString (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, char **const\fIs\fB);
.sp
FcResult FcPatternGetMatrix (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, FcMatrix **\fIs\fB);
.sp
FcResult FcPatternGetCharSet (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, FcCharSet **\fIc\fB);
.sp
FcResult FcPatternGetBool (FcPattern *\fIp\fB, const char *\fIobject\fB, int\fIn\fB, FcBool *\fIb\fB);
\fR
.SH "DESCRIPTION"
.PP
These are convenience functions that call FcPatternGet and verify that the
returned data is of the expected type. They return FcResultTypeMismatch if
this is not the case.  Note that these (like FcPatternGet) do not make a
copy of any data structure referenced by the return value.  Use these
in preference to FcPatternGet to provide compile-time typechecking.
.SH "VERSION"
.PP
Fontconfig version 2.3.2