mirror of
https://github.com/davatorium/rofi.git
synced 2024-10-27 05:23:18 -04:00
3c64507f02
* Initial support for using boxes for packing widgets. * Make CapiTalIzation more consistent * Move widgets to subdirectory * Removed nolonger needed resize function. * Small cleanup * When switching mode, reuse view, don't rebuild it. Reduces artifacts. * Needs cleaning up. * Remove separate prompt argument, use display_name * Simplify run-switcher code. * Add notion of parents, and trigger parent update on resize. * Use widget_get_height wrapper, avoid crash * Size separator width based on height. (indent) * TODO add margin to box. * First draft version of listview. * Add scrollbar to listview widget * Add padding option to box * Move access to global config out of widget. (1/2 done) * Remove printf * Make listview not access global config * Add click support, implement on mode buttons. * Re-introduce mouse handling on list-view. * TODO draggin on scrollbar. * Fix multi-select * Fix warnings * Fix include
26 lines
483 B
C
26 lines
483 B
C
#ifndef ROFI_HBOX_H
|
|
#define ROFI_HBOX_H
|
|
|
|
#include "widget.h"
|
|
|
|
/**
|
|
* @defgroup box box
|
|
* @ingroup widgets
|
|
*
|
|
* @{
|
|
*/
|
|
typedef struct _box box;
|
|
typedef enum
|
|
{
|
|
BOX_HORIZONTAL,
|
|
BOX_VERTICAL
|
|
} boxType;
|
|
|
|
box * box_create ( boxType type, short x, short y, short w, short h );
|
|
|
|
void box_add ( box *box, widget *child, gboolean expand, gboolean end );
|
|
|
|
int box_get_fixed_pixels ( box *box );
|
|
void box_set_padding ( box * box, unsigned int padding );
|
|
/*@}*/
|
|
#endif // ROFI_HBOX_H
|