Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pango-utils.h File Reference
#include <stdio.h>
#include <glib.h>
#include <pango/pango-font.h>

Go to the source code of this file.

Macros

#define PANGO_VERSION_ENCODE(major, minor, micro)
 
#define PANGO_VERSION
 
#define PANGO_VERSION_CHECK(major, minor, micro)    (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro))
 

Functions

G_BEGIN_DECLS PANGO_DEPRECATED char ** pango_split_file_list (const char *str)
 
PANGO_DEPRECATED char * pango_trim_string (const char *str)
 
PANGO_DEPRECATED gint pango_read_line (FILE *stream, GString *str)
 
PANGO_DEPRECATED gboolean pango_skip_space (const char **pos)
 
PANGO_DEPRECATED gboolean pango_scan_word (const char **pos, GString *out)
 
PANGO_DEPRECATED gboolean pango_scan_string (const char **pos, GString *out)
 
PANGO_DEPRECATED gboolean pango_scan_int (const char **pos, int *out)
 
PANGO_DEPRECATED gboolean pango_parse_enum (GType type, const char *str, int *value, gboolean warn, char **possible_values)
 
PANGO_AVAILABLE_IN_ALL gboolean pango_parse_style (const char *str, PangoStyle *style, gboolean warn)
 
PANGO_AVAILABLE_IN_ALL gboolean pango_parse_variant (const char *str, PangoVariant *variant, gboolean warn)
 
PANGO_AVAILABLE_IN_ALL gboolean pango_parse_weight (const char *str, PangoWeight *weight, gboolean warn)
 
PANGO_AVAILABLE_IN_ALL gboolean pango_parse_stretch (const char *str, PangoStretch *stretch, gboolean warn)
 
PANGO_AVAILABLE_IN_1_12 void pango_quantize_line_geometry (int *thickness, int *position)
 
PANGO_AVAILABLE_IN_1_4 guint8pango_log2vis_get_embedding_levels (const gchar *text, int length, PangoDirection *pbase_dir)
 
PANGO_AVAILABLE_IN_1_10 gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_ALL void pango_find_paragraph_boundary (const char *text, int length, int *paragraph_delimiter_index, int *next_paragraph_start)
 
PANGO_AVAILABLE_IN_1_16 int pango_version (void) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_1_16 const char * pango_version_string (void) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_1_16 const char * pango_version_check (int required_major, int required_minor, int required_micro) G_GNUC_CONST
 

Macro Definition Documentation

◆ PANGO_VERSION

#define PANGO_VERSION
Value:
#define PANGO_VERSION_MINOR
#define PANGO_VERSION_MICRO
#define PANGO_VERSION_MAJOR
#define PANGO_VERSION_ENCODE(major, minor, micro)

PANGO_VERSION:

The version of Pango available at compile-time, encoded using PANGO_VERSION_ENCODE(). PANGO_VERSION_STRING:

A string literal containing the version of Pango available at compile-time. PANGO_VERSION_MAJOR:

The major component of the version of Pango available at compile-time. PANGO_VERSION_MINOR:

The minor component of the version of Pango available at compile-time. PANGO_VERSION_MICRO:

The micro component of the version of Pango available at compile-time.

Definition at line 152 of file pango-utils.h.

152#define PANGO_VERSION PANGO_VERSION_ENCODE( \
153 PANGO_VERSION_MAJOR, \
154 PANGO_VERSION_MINOR, \
155 PANGO_VERSION_MICRO)

◆ PANGO_VERSION_CHECK

#define PANGO_VERSION_CHECK ( major,
minor,
micro )    (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro))

PANGO_VERSION_CHECK: @major: the major component of the version number @minor: the minor component of the version number @micro: the micro component of the version number

Checks that the version of Pango available at compile-time is not older than the provided version number.

Definition at line 167 of file pango-utils.h.

167#define PANGO_VERSION_CHECK(major,minor,micro) \
168 (PANGO_VERSION >= PANGO_VERSION_ENCODE(major,minor,micro))

◆ PANGO_VERSION_ENCODE

#define PANGO_VERSION_ENCODE ( major,
minor,
micro )
Value:
( \
((major) * 10000) \
+ ((minor) * 100) \
+ ((micro) * 1))

PANGO_VERSION_ENCODE: @major: the major component of the version number @minor: the minor component of the version number @micro: the micro component of the version number

This macro encodes the given Pango version into an integer. The numbers returned by PANGO_VERSION and pango_version() are encoded using this macro. Two encoded version numbers can be compared as integers.

Definition at line 121 of file pango-utils.h.

121#define PANGO_VERSION_ENCODE(major, minor, micro) ( \
122 ((major) * 10000) \
123 + ((minor) * 100) \
124 + ((micro) * 1))

Function Documentation

◆ pango_find_paragraph_boundary()

PANGO_AVAILABLE_IN_ALL void pango_find_paragraph_boundary ( const char * text,
int length,
int * paragraph_delimiter_index,
int * next_paragraph_start )

◆ pango_is_zero_width()

PANGO_AVAILABLE_IN_1_10 gboolean pango_is_zero_width ( gunichar ch)

◆ pango_log2vis_get_embedding_levels()

PANGO_AVAILABLE_IN_1_4 guint8 * pango_log2vis_get_embedding_levels ( const gchar * text,
int length,
PangoDirection * pbase_dir )

◆ pango_parse_enum()

PANGO_DEPRECATED gboolean pango_parse_enum ( GType type,
const char * str,
int * value,
gboolean warn,
char ** possible_values )

◆ pango_parse_stretch()

PANGO_AVAILABLE_IN_ALL gboolean pango_parse_stretch ( const char * str,
PangoStretch * stretch,
gboolean warn )

◆ pango_parse_style()

PANGO_AVAILABLE_IN_ALL gboolean pango_parse_style ( const char * str,
PangoStyle * style,
gboolean warn )

◆ pango_parse_variant()

PANGO_AVAILABLE_IN_ALL gboolean pango_parse_variant ( const char * str,
PangoVariant * variant,
gboolean warn )

◆ pango_parse_weight()

PANGO_AVAILABLE_IN_ALL gboolean pango_parse_weight ( const char * str,
PangoWeight * weight,
gboolean warn )

◆ pango_quantize_line_geometry()

PANGO_AVAILABLE_IN_1_12 void pango_quantize_line_geometry ( int * thickness,
int * position )

◆ pango_read_line()

PANGO_DEPRECATED gint pango_read_line ( FILE * stream,
GString * str )

◆ pango_scan_int()

PANGO_DEPRECATED gboolean pango_scan_int ( const char ** pos,
int * out )

◆ pango_scan_string()

PANGO_DEPRECATED gboolean pango_scan_string ( const char ** pos,
GString * out )

◆ pango_scan_word()

PANGO_DEPRECATED gboolean pango_scan_word ( const char ** pos,
GString * out )

◆ pango_skip_space()

PANGO_DEPRECATED gboolean pango_skip_space ( const char ** pos)

◆ pango_split_file_list()

G_BEGIN_DECLS PANGO_DEPRECATED char ** pango_split_file_list ( const char * str)

◆ pango_trim_string()

PANGO_DEPRECATED char * pango_trim_string ( const char * str)

◆ pango_version()

PANGO_AVAILABLE_IN_1_16 int pango_version ( void )

◆ pango_version_check()

PANGO_AVAILABLE_IN_1_16 const char * pango_version_check ( int required_major,
int required_minor,
int required_micro )

◆ pango_version_string()

PANGO_AVAILABLE_IN_1_16 const char * pango_version_string ( void )