swayfx/include/swaynag/types.h

40 lines
850 B
C
Raw Normal View History

#ifndef _SWAYNAG_TYPES_H
#define _SWAYNAG_TYPES_H
2018-07-28 23:34:25 +10:00
struct swaynag_type {
2018-07-28 23:34:25 +10:00
char *name;
2018-07-30 12:42:03 +10:00
char *font;
char *output;
uint32_t anchors;
2018-07-28 23:34:25 +10:00
uint32_t button_background;
uint32_t background;
uint32_t text;
uint32_t border;
uint32_t border_bottom;
2018-07-30 12:42:03 +10:00
uint32_t bar_border_thickness;
uint32_t message_padding;
uint32_t details_border_thickness;
uint32_t button_border_thickness;
uint32_t button_gap;
uint32_t button_gap_close;
uint32_t button_margin_right;
uint32_t button_padding;
2018-07-28 23:34:25 +10:00
};
void swaynag_types_add_default(list_t *types);
2018-07-28 23:34:25 +10:00
struct swaynag_type *swaynag_type_get(list_t *types, char *name);
2018-07-28 23:34:25 +10:00
struct swaynag_type *swaynag_type_clone(struct swaynag_type *type);
2018-07-28 23:34:25 +10:00
2018-07-30 12:42:03 +10:00
void swaynag_type_merge(struct swaynag_type *dest, struct swaynag_type *src);
void swaynag_type_free(struct swaynag_type *type);
2018-07-28 23:34:25 +10:00
void swaynag_types_free(list_t *types);
2018-07-28 23:34:25 +10:00
#endif