fepgattribute

fepgattribute — Attribute to decorate text

Synopsis

enum                FepGAttrType;
enum                FepGAttrUnderline;
                    FepGAttribute;

Object Hierarchy

  GEnum
   +----FepGAttrType
  GEnum
   +----FepGAttrUnderline
  GBoxed
   +----FepGAttribute

Description

Details

enum FepGAttrType

typedef enum {
  /* compatible with IBusAttrType */
  FEP_G_ATTR_TYPE_UNDERLINE = 0,
  FEP_G_ATTR_TYPE_FOREGROUND = 1,
  FEP_G_ATTR_TYPE_BACKGROUND = 2,

  /* libfep specific */
  FEP_G_ATTR_TYPE_NONE = 3,
  FEP_G_ATTR_TYPE_STANDOUT = 4,
  FEP_G_ATTR_TYPE_BOLD = 5,
  FEP_G_ATTR_TYPE_BLINK = 6
} FepGAttrType;

FEP_G_ATTR_TYPE_UNDERLINE

Decorate with underline

FEP_G_ATTR_TYPE_FOREGROUND

Foreground color

FEP_G_ATTR_TYPE_BACKGROUND

Background color

FEP_G_ATTR_TYPE_NONE

No attribute

FEP_G_ATTR_TYPE_STANDOUT

Reverse video

FEP_G_ATTR_TYPE_BOLD

Bold

FEP_G_ATTR_TYPE_BLINK

Blink

enum FepGAttrUnderline

typedef enum {
    /* compatible with IBusAttrUnderline */
    FEP_G_ATTR_UNDERLINE_NONE = 0,
    FEP_G_ATTR_UNDERLINE_SINGLE = 1,
    FEP_G_ATTR_UNDERLINE_DOUBLE = 2,
    FEP_G_ATTR_UNDERLINE_LOW = 3,
    FEP_G_ATTR_UNDERLINE_ERROR = 4,
} FepGAttrUnderline;

FEP_G_ATTR_UNDERLINE_NONE

No underline

FEP_G_ATTR_UNDERLINE_SINGLE

Single underline

FEP_G_ATTR_UNDERLINE_DOUBLE

Double underline

FEP_G_ATTR_UNDERLINE_LOW

Low underline? FIXME

FEP_G_ATTR_UNDERLINE_ERROR

Error underline

FepGAttribute

typedef struct {
  FepGAttrType type;
  guint value;
  guint start_index;
  guint end_index;
} FepGAttribute;

FepGAttrType type;

type of the attribute

guint value;

value of the attribute

guint start_index;

starting position of the attribute

guint end_index;

end position (exclusive) of the attribute