i3
Font Struct Reference

Data structure for cached font information: More...

#include <libi3.h>

Data Structures

union  [union].specific

Public Types

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

Data Fields

enum { ... }  type
int height
 The height of the font, built from font_ascent + font_descent.
char * pattern
 The pattern/name used to load the font.
union  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.

Referenced by render_deco_height(), sighandler_draw_dialog(), sighandler_setup(), update_placeholder_contents(), and x_draw_decoration().

◆ pattern

char* Font::pattern

The pattern/name used to load the font.

Definition at line 71 of file libi3.h.

Referenced by load_configuration(), run_binding(), and start_config_error_nagbar().

◆ specific

union Font::[union].specific Font::specific

◆ type


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