rofi 1.7.9
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  ThemeMedia
struct  ThemeWidget
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 ThemeMedia ThemeMedia
typedef struct ThemeWidget ThemeWidget
typedef ThemeWidget ConfigEntry
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_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
}
enum  ThemeMediaType {
  THEME_MEDIA_TYPE_MIN_WIDTH , THEME_MEDIA_TYPE_MAX_WIDTH , THEME_MEDIA_TYPE_MIN_HEIGHT , THEME_MEDIA_TYPE_MAX_HEIGHT ,
  THEME_MEDIA_TYPE_MON_ID , THEME_MEDIA_TYPE_MIN_ASPECT_RATIO , THEME_MEDIA_TYPE_MAX_ASPECT_RATIO , THEME_MEDIA_TYPE_BOOLEAN ,
  THEME_MEDIA_TYPE_INVALID
}

Variables

const char *const PropertyTypeName [P_NUM_TYPES]
GThreadPool * tpool

Typedef Documentation

◆ ConfigEntry

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

◆ 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

◆ ThemeMedia

typedef struct ThemeMedia ThemeMedia

Theme Media description.

◆ ThemeWidget

typedef struct ThemeWidget ThemeWidget

◆ 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_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 147 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 172 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 98 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 50 of file rofi-types.h.

◆ RofiImageType

Theme Image

Enumerator
ROFI_IMAGE_URL 
ROFI_IMAGE_LINEAR_GRADIENT 

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

◆ RofiLineStyle

Style of line

Enumerator
ROFI_HL_SOLID 

Solid line

ROFI_HL_DASH 

Dashed line

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

◆ RofiOrientation

Type of orientation.

Enumerator
ROFI_ORIENTATION_VERTICAL 
ROFI_ORIENTATION_HORIZONTAL 

Definition at line 139 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 82 of file rofi-types.h.

◆ RofiScaleType

Enumerator
ROFI_SCALE_NONE 
ROFI_SCALE_BOTH 
ROFI_SCALE_HEIGHT 
ROFI_SCALE_WIDTH 

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

◆ ThemeMediaType

Describe the media constraint type.

Enumerator
THEME_MEDIA_TYPE_MIN_WIDTH 

Minimum width constraint.

THEME_MEDIA_TYPE_MAX_WIDTH 

Maximum width constraint.

THEME_MEDIA_TYPE_MIN_HEIGHT 

Minimum height constraint.

THEME_MEDIA_TYPE_MAX_HEIGHT 

Maximum height constraint.

THEME_MEDIA_TYPE_MON_ID 

Monitor id constraint.

THEME_MEDIA_TYPE_MIN_ASPECT_RATIO 

Minimum aspect ratio constraint.

THEME_MEDIA_TYPE_MAX_ASPECT_RATIO 

Maximum aspect ratio constraint.

THEME_MEDIA_TYPE_BOOLEAN 

Boolean option for use with env.

THEME_MEDIA_TYPE_INVALID 

Invalid entry.

Definition at line 299 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