Ewl_Spacer: A Widget to Add Space Between Other Widgets
Detailed Description
Defines an Ewl_Widget to be used for adding space between widgets in a layout.
- Remarks:
- Inherits from Ewl_Widget.
Data Structures | |
struct | Ewl_Spacer |
Inherits from Ewl_Widget and provides as a spacer between widgets. More... | |
Defines | |
#define | EWL_SPACER(spacer) ((Ewl_Spacer *) spacer) |
#define | EWL_SPACER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPACER_TYPE)) |
#define | EWL_SPACER_TYPE "spacer" |
Typedefs | |
typedef struct Ewl_Spacer | Ewl_Spacer |
Functions | |
int | ewl_spacer_init (Ewl_Spacer *s) |
Initialize a spacer to starting values. | |
Ewl_Widget * | ewl_spacer_new (void) |
Allocate and initialize a new spacer. |
Define Documentation
#define EWL_SPACER | ( | spacer | ) | ((Ewl_Spacer *) spacer) |
Typecasts a pointer to an Ewl_Spacer pointer.
#define EWL_SPACER_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPACER_TYPE)) |
Returns TRUE if the widget is an Ewl_Spacer, FALSE otherwise
#define EWL_SPACER_TYPE "spacer" |
- Widget Theme Keys:
- /spacer/file
- Widget Theme Keys:
- /spacer/group
Referenced by ewl_spacer_init().
Typedef Documentation
typedef struct Ewl_Spacer Ewl_Spacer |
The Ewl_Spacer is a simple widget that is used to tweak spacing in an app.
Function Documentation
int ewl_spacer_init | ( | Ewl_Spacer * | s | ) |
Initialize a spacer to starting values.
- Parameters:
-
s,: the spacer to initialize
- Returns:
- Returns TRUE on success or FALSE on failure Initializes a spacer to default values and callbacks.
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_SPACER_TYPE, EWL_WIDGET, ewl_widget_appearance_set(), ewl_widget_focusable_set(), ewl_widget_inherit(), and ewl_widget_init().
Referenced by ewl_spacer_new().
Ewl_Widget* ewl_spacer_new | ( | void | ) |
Allocate and initialize a new spacer.
- Returns:
- Returns NULL on failure, a pointer to a new spacer on success
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_spacer_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.