tint2/src/separator/separator.h

33 lines
615 B
C
Raw Normal View History

2016-08-15 05:12:33 +00:00
// Tint2 : Separator
// Author: Oskari Rauta <oskari.rauta@gmail.com>
#ifndef SEPARATOR_H
#define SEPARATOR_H
#include "common.h"
#include "area.h"
2016-10-02 11:51:10 +00:00
typedef enum SeparatorStyle {
SEPARATOR_EMPTY = 0,
SEPARATOR_LINE,
SEPARATOR_DOTS
} SeparatorStyle;
2016-08-15 05:12:33 +00:00
typedef struct Separator {
Area area;
2016-10-02 11:51:10 +00:00
SeparatorStyle style;
2016-08-15 05:12:33 +00:00
Color color;
2016-10-02 11:51:10 +00:00
int thickness;
int length;
2016-08-15 05:12:33 +00:00
} Separator;
Separator *create_separator();
void destroy_separator(void *obj);
void init_separator();
void init_separator_panel(void *p);
void cleanup_separator();
gboolean resize_separator(void *obj);
void draw_separator(void *obj, cairo_t *c);
#endif