diff options
Diffstat (limited to 'include/rofi-types.h')
-rw-r--r-- | include/rofi-types.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/include/rofi-types.h b/include/rofi-types.h index bb294dad..ced7e321 100644 --- a/include/rofi-types.h +++ b/include/rofi-types.h @@ -89,12 +89,39 @@ typedef enum /** * Structure representing a distance. */ -typedef struct +typedef enum +{ + 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, +} RofiDistanceModifier; + +typedef struct RofiDistanceUnit { /** Distance */ double distance; /** Unit type of the distance */ RofiPixelUnit type; + + /** Type */ + RofiDistanceModifier modtype; + + /** Modifier */ + struct RofiDistanceUnit *left; + + /** Modifier */ + struct RofiDistanceUnit *right; + +} RofiDistanceUnit; + +typedef struct +{ + /** Base */ + RofiDistanceUnit base; /** Style of the line (optional)*/ RofiLineStyle style; } RofiDistance; |