Classes | Defines | Typedefs | Enumerations | Functions

hb-common.h File Reference

#include <stdint.h>
Include dependency graph for hb-common.h:
This graph shows which files directly or indirectly include this file:

Classes

union  _hb_var_int_t

Defines

#define HB_BEGIN_DECLS
#define HB_END_DECLS
#define HB_TAG(a, b, c, d)   ((hb_tag_t)(((uint8_t)a<<24)|((uint8_t)b<<16)|((uint8_t)c<<8)|(uint8_t)d))
#define HB_TAG_STR(s)
#define HB_TAG_NONE   HB_TAG(0,0,0,0)
#define HB_DIRECTION_IS_HORIZONTAL(dir)   ((((unsigned int) (dir)) & ~1U) == 0)
#define HB_DIRECTION_IS_VERTICAL(dir)   ((((unsigned int) (dir)) & ~1U) == 2)
#define HB_DIRECTION_IS_FORWARD(dir)   ((((unsigned int) (dir)) & ~2U) == 0)
#define HB_DIRECTION_IS_BACKWARD(dir)   ((((unsigned int) (dir)) & ~2U) == 1)
#define HB_DIRECTION_REVERSE(dir)   ((hb_direction_t) (((unsigned int) (dir)) ^ 1))

Typedefs

typedef int hb_bool_t
typedef uint32_t hb_tag_t
typedef uint32_t hb_codepoint_t
typedef int32_t hb_position_t
typedef uint32_t hb_mask_t
typedef void(* hb_destroy_func_t )(void *user_data)
typedef enum _hb_direction_t hb_direction_t
typedef union _hb_var_int_t hb_var_int_t

Enumerations

enum  _hb_direction_t { HB_DIRECTION_LTR, HB_DIRECTION_RTL, HB_DIRECTION_TTB, HB_DIRECTION_BTT }

Functions

hb_tag_t hb_tag_from_string (const char *s)

Define Documentation

#define HB_BEGIN_DECLS
#define HB_DIRECTION_IS_BACKWARD (   dir  )     ((((unsigned int) (dir)) & ~2U) == 1)
#define HB_DIRECTION_IS_FORWARD (   dir  )     ((((unsigned int) (dir)) & ~2U) == 0)
#define HB_DIRECTION_IS_HORIZONTAL (   dir  )     ((((unsigned int) (dir)) & ~1U) == 0)
#define HB_DIRECTION_IS_VERTICAL (   dir  )     ((((unsigned int) (dir)) & ~1U) == 2)
#define HB_DIRECTION_REVERSE (   dir  )     ((hb_direction_t) (((unsigned int) (dir)) ^ 1))
#define HB_END_DECLS
#define HB_TAG (   a,
  b,
  c,
  d 
)    ((hb_tag_t)(((uint8_t)a<<24)|((uint8_t)b<<16)|((uint8_t)c<<8)|(uint8_t)d))
#define HB_TAG_NONE   HB_TAG(0,0,0,0)
#define HB_TAG_STR (   s  ) 
Value:
(HB_TAG(((const char *) s)[0], \
                ((const char *) s)[1], \
                ((const char *) s)[2], \
                ((const char *) s)[3]))

Typedef Documentation

typedef int hb_bool_t
typedef uint32_t hb_codepoint_t
typedef void(* hb_destroy_func_t)(void *user_data)
typedef uint32_t hb_mask_t
typedef int32_t hb_position_t
typedef uint32_t hb_tag_t
typedef union _hb_var_int_t hb_var_int_t

Enumeration Type Documentation

Enumerator:
HB_DIRECTION_LTR 
HB_DIRECTION_RTL 
HB_DIRECTION_TTB 
HB_DIRECTION_BTT 

Function Documentation

hb_tag_t hb_tag_from_string ( const char *  s  )