mirror of
https://github.com/lbonn/rofi
synced 2024-12-21 09:43:12 +00:00
51 lines
967 B
C
51 lines
967 B
C
#ifndef ROFI_SEPARATOR_H
|
|
#define ROFI_SEPARATOR_H
|
|
#include <cairo.h>
|
|
#include "widget.h"
|
|
|
|
/**
|
|
* @defgroup separator separator
|
|
* @ingroup widget
|
|
*
|
|
* Displays a horizontal separator line. The height of the widget determines the line width.
|
|
*
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* Abstract handle to the separator widget internal state.
|
|
*/
|
|
typedef struct _separator separator;
|
|
|
|
/**
|
|
* Direction of the separator.
|
|
*/
|
|
typedef enum
|
|
{
|
|
S_HORIZONTAL = 0,
|
|
S_VERTICAL = 1
|
|
} separator_type;
|
|
|
|
/**
|
|
* The style of the separator line.
|
|
*/
|
|
typedef enum
|
|
{
|
|
S_LINE_NONE,
|
|
S_LINE_SOLID,
|
|
S_LINE_DASH
|
|
} separator_line_style;
|
|
|
|
/**
|
|
* @param name The name of the widget.
|
|
* @param type The type of separator.
|
|
* @param sw The thickness of the separator.
|
|
*
|
|
* Create a horizontal separator with height h.
|
|
*
|
|
* @returns a new separator, free with ::widget_free
|
|
*/
|
|
separator *separator_create ( const char *name, separator_type type, short sw );
|
|
|
|
/*@}*/
|
|
#endif // ROFI_SEPARATOR_H
|