lib/ewl_floater.c File Reference
#include "ewl_base.h"
#include "ewl_floater.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Functions | |
| void | ewl_floater_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_floater_cb_follow_configure (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_floater_cb_follow_destroy (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| Ewl_Widget * | ewl_floater_follow_get (Ewl_Floater *f) |
| Get the widget we are following. | |
| void | ewl_floater_follow_set (Ewl_Floater *f, Ewl_Widget *p) |
| Set the widget to follow. | |
| int | ewl_floater_init (Ewl_Floater *f) |
| Initialize a floater to default values. | |
| Ewl_Widget * | ewl_floater_new (void) |
| Allocate a new floater widget. | |
| void | ewl_floater_position_set (Ewl_Floater *f, int x, int y) |
| Set the start x/y position of the floater. | |
| void | ewl_floater_relative_set (Ewl_Floater *f, Ewl_Widget *w) |
| Set a floater positioned relative to a widget. | |
Function Documentation
| void ewl_floater_cb_destroy | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FLOATER, ewl_floater_follow_set(), and EWL_FLOATER_TYPE.
Referenced by ewl_floater_init().
| void ewl_floater_cb_follow_configure | ( | Ewl_Widget *w | __UNUSED__, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References CURRENT_H, CURRENT_W, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FLAG_ALIGN_BOTTOM, EWL_FLAG_ALIGN_LEFT, EWL_FLAG_ALIGN_RIGHT, EWL_FLAG_ALIGN_TOP, EWL_FLOATER, EWL_FLOATER_TYPE, EWL_OBJECT, ewl_object_alignment_get(), ewl_object_current_x_get(), ewl_object_current_y_get(), ewl_object_position_request(), Ewl_Floater::follows, Ewl_Floater::x, and Ewl_Floater::y.
Referenced by ewl_floater_follow_set(), and ewl_floater_relative_set().
| void ewl_floater_cb_follow_destroy | ( | Ewl_Widget *w | __UNUSED__, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FLOATER, and EWL_FLOATER_TYPE.
Referenced by ewl_floater_follow_set().
| void ewl_floater_relative_set | ( | Ewl_Floater * | f, | |
| Ewl_Widget * | w | |||
| ) |
Set a floater positioned relative to a widget.
- Parameters:
-
f,: the floater to change positioning relation w,: the widget to position the floater relative
- Returns:
- Returns no value. Sets the floater f to be positioned relative to the position of the widget w.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_CALLBACK_CONFIGURE, ewl_callback_del(), ewl_floater_cb_follow_configure(), EWL_FLOATER_TYPE, EWL_WIDGET, ewl_widget_configure(), and Ewl_Floater::follows.