rofi 1.7.5
rofi-types.h File Reference
#include <glib.h>
#include <stdint.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  RofiDistanceUnit
 
struct  RofiDistance
 
struct  ThemeColor
 
struct  RofiImage
 
struct  RofiPadding
 
struct  RofiHighlightColorStyle
 
union  _PropertyValue
 
struct  Property
 
struct  rofi_range_pair
 
struct  rofi_int_matcher_t
 
struct  _thread_state
 

Typedefs

typedef struct RofiDistanceUnit RofiDistanceUnit
 
typedef union _PropertyValue PropertyValue
 
typedef struct Property Property
 
typedef struct rofi_range_pair rofi_range_pair
 
typedef struct rofi_int_matcher_t rofi_int_matcher
 
typedef struct _thread_state thread_state
 

Enumerations

enum  PropertyType {
  P_INTEGER , P_DOUBLE , P_STRING , P_CHAR ,
  P_BOOLEAN , P_COLOR , P_IMAGE , P_PADDING ,
  P_LINK , P_POSITION , P_HIGHLIGHT , P_LIST ,
  P_ORIENTATION , P_CURSOR , 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_ITALIC = 4 , ROFI_HL_COLOR = 8 , ROFI_HL_UPPERCASE = 32 , ROFI_HL_LOWERCASE = 64 ,
  ROFI_HL_CAPITALIZE = 128
}
 
enum  RofiLineStyle { ROFI_HL_SOLID , ROFI_HL_DASH }
 
enum  RofiPixelUnit {
  ROFI_PU_PX , ROFI_PU_MM , ROFI_PU_EM , ROFI_PU_PERCENT ,
  ROFI_PU_CH
}
 
enum  RofiDistanceModifier {
  ROFI_DISTANCE_MODIFIER_NONE , ROFI_DISTANCE_MODIFIER_ADD , ROFI_DISTANCE_MODIFIER_SUBTRACT , ROFI_DISTANCE_MODIFIER_DIVIDE ,
  ROFI_DISTANCE_MODIFIER_MULTIPLY , ROFI_DISTANCE_MODIFIER_MODULO , ROFI_DISTANCE_MODIFIER_GROUP , ROFI_DISTANCE_MODIFIER_MIN ,
  ROFI_DISTANCE_MODIFIER_MAX , ROFI_DISTANCE_MODIFIER_ROUND , ROFI_DISTANCE_MODIFIER_FLOOR , ROFI_DISTANCE_MODIFIER_CEIL
}
 
enum  RofiOrientation { ROFI_ORIENTATION_VERTICAL , ROFI_ORIENTATION_HORIZONTAL }
 
enum  RofiCursorType { ROFI_CURSOR_DEFAULT , ROFI_CURSOR_POINTER , ROFI_CURSOR_TEXT }
 
enum  RofiImageType { ROFI_IMAGE_URL , ROFI_IMAGE_LINEAR_GRADIENT }
 
enum  RofiDirection {
  ROFI_DIRECTION_LEFT , ROFI_DIRECTION_RIGHT , ROFI_DIRECTION_TOP , ROFI_DIRECTION_BOTTOM ,
  ROFI_DIRECTION_ANGLE
}
 
enum  RofiScaleType { ROFI_SCALE_NONE , ROFI_SCALE_BOTH , ROFI_SCALE_HEIGHT , ROFI_SCALE_WIDTH }
 
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]
 
GThreadPool * tpool
 

Typedef Documentation

◆ Property

typedef struct Property Property

Property structure.

◆ PropertyValue

◆ rofi_int_matcher

Internal structure for matching.

◆ rofi_range_pair

typedef struct rofi_range_pair rofi_range_pair

Structure to hold a range.

◆ RofiDistanceUnit

typedef struct RofiDistanceUnit RofiDistanceUnit

◆ thread_state

typedef struct _thread_state thread_state

Structure with data to process by each worker thread. TODO: Make this more generic wrapper.

Enumeration Type Documentation

◆ PropertyType

Type of property

Enumerator
P_INTEGER 

Integer

P_DOUBLE 

Double

P_STRING 

String

P_CHAR 

Character

P_BOOLEAN 

Boolean

P_COLOR 

Color

P_IMAGE 

Image

P_PADDING 

RofiPadding

P_LINK 

Link to global setting

P_POSITION 

Position

P_HIGHLIGHT 

Highlight

P_LIST 

List

P_ORIENTATION 

Orientation

P_CURSOR 

Cursor

P_INHERIT 

Inherit

P_NUM_TYPES 

Number of types.

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

◆ RofiCursorType

Cursor type.

Enumerator
ROFI_CURSOR_DEFAULT 
ROFI_CURSOR_POINTER 
ROFI_CURSOR_TEXT 

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

◆ RofiDirection

Enumerator
ROFI_DIRECTION_LEFT 
ROFI_DIRECTION_RIGHT 
ROFI_DIRECTION_TOP 
ROFI_DIRECTION_BOTTOM 
ROFI_DIRECTION_ANGLE 

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

◆ RofiDistanceModifier

Structure representing a distance.

Enumerator
ROFI_DISTANCE_MODIFIER_NONE 
ROFI_DISTANCE_MODIFIER_ADD 
ROFI_DISTANCE_MODIFIER_SUBTRACT 
ROFI_DISTANCE_MODIFIER_DIVIDE 
ROFI_DISTANCE_MODIFIER_MULTIPLY 
ROFI_DISTANCE_MODIFIER_MODULO 
ROFI_DISTANCE_MODIFIER_GROUP 
ROFI_DISTANCE_MODIFIER_MIN 
ROFI_DISTANCE_MODIFIER_MAX 
ROFI_DISTANCE_MODIFIER_ROUND 
ROFI_DISTANCE_MODIFIER_FLOOR 
ROFI_DISTANCE_MODIFIER_CEIL 

Definition at line 100 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_ITALIC 

italic

ROFI_HL_COLOR 

color

ROFI_HL_UPPERCASE 

uppercase

ROFI_HL_LOWERCASE 

lowercase

ROFI_HL_CAPITALIZE 

capitalize

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

◆ RofiImageType

Theme Image

Enumerator
ROFI_IMAGE_URL 
ROFI_IMAGE_LINEAR_GRADIENT 

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

◆ RofiLineStyle

Style of line

Enumerator
ROFI_HL_SOLID 

Solid line

ROFI_HL_DASH 

Dashed line

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

◆ RofiOrientation

Type of orientation.

Enumerator
ROFI_ORIENTATION_VERTICAL 
ROFI_ORIENTATION_HORIZONTAL 

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

◆ RofiPixelUnit

Distance unit type.

Enumerator
ROFI_PU_PX 

PixelWidth in pixels.

ROFI_PU_MM 

PixelWidth in millimeters.

ROFI_PU_EM 

PixelWidth in EM.

ROFI_PU_PERCENT 

PixelWidget in percentage

ROFI_PU_CH 

PixelWidth in CH.

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

◆ RofiScaleType

Enumerator
ROFI_SCALE_NONE 
ROFI_SCALE_BOTH 
ROFI_SCALE_HEIGHT 
ROFI_SCALE_WIDTH 

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

Variable Documentation

◆ PropertyTypeName

const char* const PropertyTypeName[P_NUM_TYPES]
extern

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().

◆ tpool

GThreadPool* tpool
extern