rofi  1.5.1
rofi-types.h File Reference
#include <glib.h>
Include dependency graph for rofi-types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RofiDistance
 
struct  ThemeColor
 
struct  RofiPadding
 
struct  RofiHighlightColorStyle
 
union  PropertyValue
 
struct  Property
 
struct  rofi_range_pair
 
struct  rofi_int_matcher_t
 

Typedefs

typedef struct Property Property
 
typedef struct rofi_range_pair rofi_range_pair
 
typedef struct rofi_int_matcher_t rofi_int_matcher
 

Enumerations

enum  PropertyType {
  P_INTEGER, P_DOUBLE, P_STRING, P_BOOLEAN,
  P_COLOR, P_PADDING, P_LINK, P_POSITION,
  P_HIGHLIGHT, P_LIST, P_ORIENTATION, P_INHERIT,
  P_NUM_TYPES
}
 
enum  RofiHighlightStyle {
  ROFI_HL_NONE = 0, ROFI_HL_BOLD = 1, ROFI_HL_UNDERLINE = 2, ROFI_HL_STRIKETHROUGH = 16,
  ROFI_HL_SMALL_CAPS = 32, ROFI_HL_ITALIC = 4, ROFI_HL_COLOR = 8
}
 
enum  RofiLineStyle { ROFI_HL_SOLID, ROFI_HL_DASH }
 
enum  RofiPixelUnit { ROFI_PU_PX, ROFI_PU_EM, ROFI_PU_PERCENT, ROFI_PU_CH }
 
enum  RofiOrientation { ROFI_ORIENTATION_VERTICAL, ROFI_ORIENTATION_HORIZONTAL }
 
enum  WindowLocation {
  WL_CENTER = 0, WL_NORTH = 1, WL_EAST = 2, WL_SOUTH = 4,
  WL_WEST = 8, WL_NORTH_WEST = WL_NORTH | WL_WEST, WL_NORTH_EAST = WL_NORTH | WL_EAST, WL_SOUTH_EAST = WL_SOUTH | WL_EAST,
  WL_SOUTH_WEST = WL_SOUTH | WL_WEST
}
 

Variables

const char *const PropertyTypeName [P_NUM_TYPES]
 

Typedef Documentation

◆ Property

typedef struct Property Property

Property structure.

◆ rofi_int_matcher

Internal structure for matching.

◆ rofi_range_pair

Structure to hold a range.

Enumeration Type Documentation

◆ PropertyType

Type of property

Enumerator
P_INTEGER 

Integer

P_DOUBLE 

Double

P_STRING 

String

P_BOOLEAN 

Boolean

P_COLOR 

Color

P_PADDING 

RofiPadding

P_LINK 

Link to global setting

P_POSITION 

Position

P_HIGHLIGHT 

Highlight

P_LIST 

List

P_ORIENTATION 

Orientation

P_INHERIT 

Inherit

P_NUM_TYPES 

Number of types.

Definition at line 10 of file rofi-types.h.

◆ RofiHighlightStyle

Style of text highlight

Enumerator
ROFI_HL_NONE 

no highlight

ROFI_HL_BOLD 

bold

ROFI_HL_UNDERLINE 

underline

ROFI_HL_STRIKETHROUGH 

strikethrough

ROFI_HL_SMALL_CAPS 

small caps

ROFI_HL_ITALIC 

italic

ROFI_HL_COLOR 

color

Definition at line 47 of file rofi-types.h.

◆ RofiLineStyle

Style of line

Enumerator
ROFI_HL_SOLID 

Solid line

ROFI_HL_DASH 

Dashed line

Definition at line 66 of file rofi-types.h.

◆ RofiOrientation

Type of orientation.

Enumerator
ROFI_ORIENTATION_VERTICAL 
ROFI_ORIENTATION_HORIZONTAL 

Definition at line 105 of file rofi-types.h.

◆ RofiPixelUnit

Distance unit type.

Enumerator
ROFI_PU_PX 

PixelWidth in pixels.

ROFI_PU_EM 

PixelWidth in EM.

ROFI_PU_PERCENT 

PixelWidget in percentage

ROFI_PU_CH 

PixelWidth in CH.

Definition at line 77 of file rofi-types.h.

Variable Documentation

◆ PropertyTypeName

const char* const PropertyTypeName[P_NUM_TYPES]

This array maps PropertyType to a user-readable name. It is important this is kept in sync.

Name of the property type

Definition at line 6 of file rofi-types.c.

Referenced by __config_parser_set_property(), and rofi_theme_find_property().