i3
Font Struct Reference

Data structure for cached font information: More...

#include <libi3.h>

Public Types

enum  { FONT_TYPE_NONE = 0 , FONT_TYPE_XCB , FONT_TYPE_PANGO }
 The type of font. More...

Data Fields

enum Font:: { ... }  type
 The type of font.
int height
 The height of the font, built from font_ascent + font_descent.
char * pattern
 The pattern/name used to load the font.
union { 
   struct { 
      xcb_font_t   id 
 The xcb-id for the font. More...
      xcb_query_font_reply_t *   info 
 Font information gathered from the server. More...
      xcb_charinfo_t *   table 
 Font table for this font (may be NULL) More...
   }   xcb
   PangoFontDescription *   pango_desc 
 The pango font description. More...
specific

Detailed Description

Data structure for cached font information:

  • font id in X11 (load it once)
  • font height (multiple calls needed to get it)

Definition at line 59 of file libi3.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The type of font.

Enumerator
FONT_TYPE_NONE 
FONT_TYPE_XCB 
FONT_TYPE_PANGO 

Definition at line 61 of file libi3.h.

Field Documentation

◆ height

int Font::height

The height of the font, built from font_ascent + font_descent.

Definition at line 68 of file libi3.h.

◆ id

xcb_font_t Font::id

The xcb-id for the font.

Definition at line 76 of file libi3.h.

◆ info

xcb_query_font_reply_t* Font::info

Font information gathered from the server.

Definition at line 79 of file libi3.h.

◆ pango_desc

PangoFontDescription* Font::pango_desc

The pango font description.

Definition at line 86 of file libi3.h.

◆ pattern

char* Font::pattern

The pattern/name used to load the font.

Definition at line 71 of file libi3.h.

◆ [union]

union { ... } Font::specific

◆ table

xcb_charinfo_t* Font::table

Font table for this font (may be NULL)

Definition at line 82 of file libi3.h.

◆ []

enum { ... } Font::type

The type of font.

◆ [struct]

struct { ... } Font::xcb

The documentation for this struct was generated from the following file: