diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-05 18:33:57 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-05 18:33:57 +0100 |
commit | 3eb450c37eee98bab34c014899b81964b01caee4 (patch) | |
tree | 2688a209936bebb6d1e91fd6c2f63fe147d1962b /include | |
parent | e6a6d5f8947c1950be2a8354d27040e32f4d49de (diff) |
Add generic container (renamed window widget) put container around message.
Diffstat (limited to 'include')
-rw-r--r-- | include/view-internal.h | 6 | ||||
-rw-r--r-- | include/widgets/container.h | 34 | ||||
-rw-r--r-- | include/widgets/window.h | 34 |
3 files changed, 37 insertions, 37 deletions
diff --git a/include/view-internal.h b/include/view-internal.h index 96dffdb7..0b7e6e5b 100644 --- a/include/view-internal.h +++ b/include/view-internal.h @@ -1,6 +1,6 @@ #ifndef ROFI_VIEW_INTERNAL_H #define ROFI_VIEW_INTERNAL_H -#include "widgets/window.h" +#include "widgets/container.h" #include "widgets/widget.h" #include "widgets/textbox.h" #include "widgets/separator.h" @@ -24,8 +24,8 @@ struct RofiViewState /** Flag indicating if view needs to be refiltered. */ int refilter; - /** Widget representing the main window. */ - window *main_window; + /** Widget representing the main container. */ + container *main_window; /** Main #box widget holding different elements. */ box *main_box; /** #box widget packing the input bar widgets. */ diff --git a/include/widgets/container.h b/include/widgets/container.h new file mode 100644 index 00000000..6b417075 --- /dev/null +++ b/include/widgets/container.h @@ -0,0 +1,34 @@ +#ifndef ROFI_CONTAINER_H +#define ROFI_CONTAINER_H + +#include "widget.h" + +/** + * @defgroup container container + * @ingroup widget + * + * + * @{ + */ + +/** + * Abstract handle to the container widget internal state. + */ +typedef struct _window container; + +/** + * @param name The name of the widget. + * + * @returns a newly created container, free with #widget_free + */ +container * container_create ( const char *name ); + +/** + * @param container Handle to the container widget. + * @param child Handle to the child widget to pack. + * + * Add a widget to the container. + */ +void container_add ( container *container, widget *child ); +/*@}*/ +#endif // ROFI_CONTAINER_H diff --git a/include/widgets/window.h b/include/widgets/window.h deleted file mode 100644 index fe106ea8..00000000 --- a/include/widgets/window.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef ROFI_WINDOW_H -#define ROFI_WINDOW_H - -#include "widget.h" - -/** - * @defgroup window window - * @ingroup widget - * - * - * @{ - */ - -/** - * Abstract handle to the window widget internal state. - */ -typedef struct _window window; - -/** - * @param name The name of the widget. - * - * @returns a newly created window, free with #widget_free - */ -window * window_create ( const char *name ); - -/** - * @param window Handle to the window widget. - * @param child Handle to the child widget to pack. - * - * Add a widget to the window. - */ -void window_add ( window *window, widget *child ); -/*@}*/ -#endif // ROFI_WINDOW_H |