Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pango-engine.h File Reference

Go to the source code of this file.

Data Structures

struct  _PangoEngine
 
struct  _PangoEngineClass
 
struct  _PangoEngineLang
 
struct  _PangoEngineLangClass
 
struct  _PangoEngineShape
 
struct  _PangoEngineShapeClass
 
struct  _PangoEngineScriptInfo
 
struct  _PangoEngineInfo
 

Macros

#define PANGO_RENDER_TYPE_NONE   "PangoRenderNone"
 
#define PANGO_TYPE_ENGINE   (pango_engine_get_type ())
 
#define PANGO_ENGINE(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE, PangoEngine))
 
#define PANGO_IS_ENGINE(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE))
 
#define PANGO_ENGINE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE, PangoEngineClass))
 
#define PANGO_IS_ENGINE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE))
 
#define PANGO_ENGINE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE, PangoEngineClass))
 
#define PANGO_ENGINE_TYPE_LANG   "PangoEngineLang"
 
#define PANGO_TYPE_ENGINE_LANG   (pango_engine_lang_get_type ())
 
#define PANGO_ENGINE_LANG(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_LANG, PangoEngineLang))
 
#define PANGO_IS_ENGINE_LANG(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_LANG))
 
#define PANGO_ENGINE_LANG_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass))
 
#define PANGO_IS_ENGINE_LANG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_LANG))
 
#define PANGO_ENGINE_LANG_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass))
 
#define PANGO_ENGINE_TYPE_SHAPE   "PangoEngineShape"
 
#define PANGO_TYPE_ENGINE_SHAPE   (pango_engine_shape_get_type ())
 
#define PANGO_ENGINE_SHAPE(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShape))
 
#define PANGO_IS_ENGINE_SHAPE(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_SHAPE))
 
#define PANGO_ENGINE_SHAPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShapeClass))
 
#define PANGO_IS_ENGINE_SHAPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_SHAPE))
 
#define PANGO_ENGINE_SHAPE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShapeClass))
 
#define PANGO_ENGINE_DEFINE_TYPE(name, prefix, class_init, instance_init, parent_type)
 
: Name of the the type to register (for example:, ArabicEngineFc)

PANGO_ENGINE_SHAPE_DEFINE_TYPE:

@prefix: Prefix for symbols that will be defined (for example:, arabic_engine_fc) @class_init: (nullable): Class initialization function for the new type @instance_init: (nullable): Instance initialization function for the new type

Outputs the necessary code for GObject type registration for a PangoEngineShape class defined in a module. Two static symbols are defined.

<programlisting> static GType prefix_type; static void prefix_register_type (GTypeModule module); </programlisting>

The prefix_register_type() function should be called in your script_engine_init() function for each type that your module implements, and then your script_engine_create() function can create instances of the object as follows:

PangoEngine *engine = g_object_new (prefix_type, NULL);
#define NULL
Definition gmacros.h:924
GOBJECT_AVAILABLE_IN_ALL gpointer g_object_new(GType object_type, const gchar *first_property_name,...)

Deprecated: 1.38

#define PANGO_ENGINE_LANG_DEFINE_TYPE(name, prefix, class_init, instance_init)
 
#define PANGO_ENGINE_SHAPE_DEFINE_TYPE(name, prefix, class_init, instance_init)
 
#define PANGO_MODULE_ENTRY(func)   script_engine_##func
 

Typedefs

typedef struct _PangoEngine PangoEngine
 
typedef struct _PangoEngineClass PangoEngineClass
 
typedef struct _PangoEngineLangClass PangoEngineLangClass
 
typedef struct _PangoEngineShapeClass PangoEngineShapeClass
 
typedef struct _PangoEngineInfo PangoEngineInfo
 
typedef struct _PangoEngineScriptInfo PangoEngineScriptInfo
 

Functions

PANGO_DEPRECATED_IN_1_38 GType pango_engine_get_type (void) G_GNUC_CONST
 
PANGO_DEPRECATED_IN_1_38 GType pango_engine_lang_get_type (void) G_GNUC_CONST
 
PANGO_DEPRECATED_IN_1_38 GType pango_engine_shape_get_type (void) G_GNUC_CONST
 
PANGO_DEPRECATED_IN_1_38 void script_engine_list (PangoEngineInfo **engines, int *n_engines)
 
PANGO_DEPRECATED_IN_1_38 void script_engine_init (GTypeModule *module)
 
PANGO_DEPRECATED_IN_1_38 void script_engine_exit (void)
 
PANGO_DEPRECATED_IN_1_38 PangoEnginescript_engine_create (const char *id)
 

Macro Definition Documentation

◆ PANGO_ENGINE

#define PANGO_ENGINE ( object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE, PangoEngine))

Definition at line 51 of file pango-engine.h.

◆ PANGO_ENGINE_CLASS

#define PANGO_ENGINE_CLASS ( klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE, PangoEngineClass))

Definition at line 53 of file pango-engine.h.

◆ PANGO_ENGINE_DEFINE_TYPE

#define PANGO_ENGINE_DEFINE_TYPE ( name,
prefix,
class_init,
instance_init,
parent_type )
Value:
static GType prefix ## _type; \
static void \
prefix ## _register_type (GTypeModule *module) \
{ \
const GTypeInfo object_info = \
{ \
sizeof (name ## Class), \
(GClassInitFunc) class_init, \
NULL, /* class_data */ \
sizeof (name), \
0, /* n_prelocs */ \
(GInstanceInitFunc) instance_init, \
NULL /* value_table */ \
}; \
\
prefix ## _type = g_type_module_register_type (module, parent_type, \
# name, \
&object_info, 0); \
}
void(* GBaseFinalizeFunc)(gpointer g_class)
Definition gtype.h:839
void(* GClassInitFunc)(gpointer g_class, gpointer class_data)
Definition gtype.h:943
gsize GType
Definition gtype.h:427
void(* GInstanceInitFunc)(GTypeInstance *instance, gpointer g_class)
Definition gtype.h:982
void(* GBaseInitFunc)(gpointer g_class)
Definition gtype.h:825
void(* GClassFinalizeFunc)(gpointer g_class, gpointer class_data)
Definition gtype.h:960
typedefG_BEGIN_DECLS struct _GTypeModule GTypeModule
Definition gtypemodule.h:31
GOBJECT_AVAILABLE_IN_ALL GType g_type_module_register_type(GTypeModule *module, GType parent_type, const gchar *type_name, const GTypeInfo *type_info, GTypeFlags flags)
const char * name
Definition lsqlite3.c:2154

Definition at line 345 of file pango-engine.h.

345#define PANGO_ENGINE_DEFINE_TYPE(name, prefix, class_init, instance_init, parent_type) \
346static GType prefix ## _type; \
347static void \
348prefix ## _register_type (GTypeModule *module) \
349{ \
350 const GTypeInfo object_info = \
351 { \
352 sizeof (name ## Class), \
353 (GBaseInitFunc) NULL, \
354 (GBaseFinalizeFunc) NULL, \
355 (GClassInitFunc) class_init, \
356 (GClassFinalizeFunc) NULL, \
357 NULL, /* class_data */ \
358 sizeof (name), \
359 0, /* n_prelocs */ \
360 (GInstanceInitFunc) instance_init, \
361 NULL /* value_table */ \
362 }; \
363 \
364 prefix ## _type = g_type_module_register_type (module, parent_type, \
365 # name, \
366 &object_info, 0); \
367}

◆ PANGO_ENGINE_GET_CLASS

#define PANGO_ENGINE_GET_CLASS ( obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE, PangoEngineClass))

Definition at line 55 of file pango-engine.h.

◆ PANGO_ENGINE_LANG

#define PANGO_ENGINE_LANG ( object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_LANG, PangoEngineLang))

Definition at line 101 of file pango-engine.h.

◆ PANGO_ENGINE_LANG_CLASS

#define PANGO_ENGINE_LANG_CLASS ( klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass))

Definition at line 103 of file pango-engine.h.

◆ PANGO_ENGINE_LANG_DEFINE_TYPE

#define PANGO_ENGINE_LANG_DEFINE_TYPE ( name,
prefix,
class_init,
instance_init )
Value:
class_init, instance_init, \
#define PANGO_TYPE_ENGINE_LANG
#define PANGO_ENGINE_DEFINE_TYPE(name, prefix, class_init, instance_init, parent_type)

Definition at line 395 of file pango-engine.h.

395#define PANGO_ENGINE_LANG_DEFINE_TYPE(name, prefix, class_init, instance_init) \
396 PANGO_ENGINE_DEFINE_TYPE (name, prefix, \
397 class_init, instance_init, \
398 PANGO_TYPE_ENGINE_LANG)

◆ PANGO_ENGINE_LANG_GET_CLASS

#define PANGO_ENGINE_LANG_GET_CLASS ( obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_LANG, PangoEngineLangClass))

Definition at line 105 of file pango-engine.h.

◆ PANGO_ENGINE_SHAPE

#define PANGO_ENGINE_SHAPE ( object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShape))

Definition at line 168 of file pango-engine.h.

◆ PANGO_ENGINE_SHAPE_CLASS

#define PANGO_ENGINE_SHAPE_CLASS ( klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShapeClass))

Definition at line 170 of file pango-engine.h.

◆ PANGO_ENGINE_SHAPE_DEFINE_TYPE

#define PANGO_ENGINE_SHAPE_DEFINE_TYPE ( name,
prefix,
class_init,
instance_init )
Value:
class_init, instance_init, \
#define PANGO_TYPE_ENGINE_SHAPE

Definition at line 427 of file pango-engine.h.

427#define PANGO_ENGINE_SHAPE_DEFINE_TYPE(name, prefix, class_init, instance_init) \
428 PANGO_ENGINE_DEFINE_TYPE (name, prefix, \
429 class_init, instance_init, \
430 PANGO_TYPE_ENGINE_SHAPE)

◆ PANGO_ENGINE_SHAPE_GET_CLASS

#define PANGO_ENGINE_SHAPE_GET_CLASS ( obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_ENGINE_SHAPE, PangoEngineShapeClass))

Definition at line 172 of file pango-engine.h.

◆ PANGO_ENGINE_TYPE_LANG

#define PANGO_ENGINE_TYPE_LANG   "PangoEngineLang"

PANGO_ENGINE_TYPE_LANG:

A string constant defining the engine type for language engines. These engines derive from PangoEngineLang.

Deprecated: 1.38

Definition at line 98 of file pango-engine.h.

◆ PANGO_ENGINE_TYPE_SHAPE

#define PANGO_ENGINE_TYPE_SHAPE   "PangoEngineShape"

PANGO_ENGINE_TYPE_SHAPE:

A string constant defining the engine type for shaping engines. These engines derive from PangoEngineShape.

Deprecated: 1.38

Definition at line 165 of file pango-engine.h.

◆ PANGO_IS_ENGINE

#define PANGO_IS_ENGINE ( object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE))

Definition at line 52 of file pango-engine.h.

◆ PANGO_IS_ENGINE_CLASS

#define PANGO_IS_ENGINE_CLASS ( klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE))

Definition at line 54 of file pango-engine.h.

◆ PANGO_IS_ENGINE_LANG

#define PANGO_IS_ENGINE_LANG ( object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_LANG))

Definition at line 102 of file pango-engine.h.

◆ PANGO_IS_ENGINE_LANG_CLASS

#define PANGO_IS_ENGINE_LANG_CLASS ( klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_LANG))

Definition at line 104 of file pango-engine.h.

◆ PANGO_IS_ENGINE_SHAPE

#define PANGO_IS_ENGINE_SHAPE ( object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_ENGINE_SHAPE))

Definition at line 169 of file pango-engine.h.

◆ PANGO_IS_ENGINE_SHAPE_CLASS

#define PANGO_IS_ENGINE_SHAPE_CLASS ( klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_ENGINE_SHAPE))

Definition at line 171 of file pango-engine.h.

◆ PANGO_MODULE_ENTRY

#define PANGO_MODULE_ENTRY ( func)    script_engine_##func

Definition at line 448 of file pango-engine.h.

◆ PANGO_RENDER_TYPE_NONE

#define PANGO_RENDER_TYPE_NONE   "PangoRenderNone"

PANGO_RENDER_TYPE_NONE:

A string constant defining the render type for engines that are not rendering-system specific.

Deprecated: 1.38

Definition at line 48 of file pango-engine.h.

◆ PANGO_TYPE_ENGINE

#define PANGO_TYPE_ENGINE   (pango_engine_get_type ())

Definition at line 50 of file pango-engine.h.

◆ PANGO_TYPE_ENGINE_LANG

#define PANGO_TYPE_ENGINE_LANG   (pango_engine_lang_get_type ())

Definition at line 100 of file pango-engine.h.

◆ PANGO_TYPE_ENGINE_SHAPE

#define PANGO_TYPE_ENGINE_SHAPE   (pango_engine_shape_get_type ())

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

Typedef Documentation

◆ PangoEngine

typedef struct _PangoEngine PangoEngine

Definition at line 57 of file pango-engine.h.

◆ PangoEngineClass

Definition at line 58 of file pango-engine.h.

◆ PangoEngineInfo

Definition at line 245 of file pango-engine.h.

◆ PangoEngineLangClass

Definition at line 107 of file pango-engine.h.

◆ PangoEngineScriptInfo

Definition at line 246 of file pango-engine.h.

◆ PangoEngineShapeClass

Definition at line 174 of file pango-engine.h.

Function Documentation

◆ pango_engine_get_type()

PANGO_DEPRECATED_IN_1_38 GType pango_engine_get_type ( void )

◆ pango_engine_lang_get_type()

PANGO_DEPRECATED_IN_1_38 GType pango_engine_lang_get_type ( void )

◆ pango_engine_shape_get_type()

PANGO_DEPRECATED_IN_1_38 GType pango_engine_shape_get_type ( void )

◆ script_engine_create()

PANGO_DEPRECATED_IN_1_38 PangoEngine * script_engine_create ( const char * id)

script_engine_create: (skip) @id: the ID of an engine as reported by script_engine_list.

Do not use.

Deprecated: 1.38

◆ script_engine_exit()

PANGO_DEPRECATED_IN_1_38 void script_engine_exit ( void )

script_engine_exit: (skip)

Do not use.

Deprecated: 1.38

◆ script_engine_init()

PANGO_DEPRECATED_IN_1_38 void script_engine_init ( GTypeModule * module)

◆ script_engine_list()

PANGO_DEPRECATED_IN_1_38 void script_engine_list ( PangoEngineInfo ** engines,
int * n_engines )

script_engine_list: (skip) @engines: location to store a pointer to an array of engines. @n_engines: location to store the number of elements in @engines.

Do not use.

Deprecated: 1.38