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

Functions | |
| void | ewl_popup_cb_child_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o) |
| void | ewl_popup_cb_child_show (Ewl_Container *c, Ewl_Widget *w) |
| void | ewl_popup_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_popup_cb_follow_configure (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_popup_cb_follow_destroy (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_popup_cb_mouse_move (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_popup_cb_show (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| int | ewl_popup_fit_to_follow_get (Ewl_Popup *p) |
| void | ewl_popup_fit_to_follow_set (Ewl_Popup *p, int fit) |
| Ewl_Widget * | ewl_popup_follow_get (Ewl_Popup *p) |
| void | ewl_popup_follow_set (Ewl_Popup *p, Ewl_Widget *w) |
| Set the follow widget of the popup. | |
| int | ewl_popup_init (Ewl_Popup *p) |
| Initialize the popup and inherited fields. | |
| void | ewl_popup_mouse_position_set (Ewl_Popup *p, int x, int y) |
| This is to set the mouse coordinates to the popup, where it get placed relative to. | |
| Ewl_Widget * | ewl_popup_new (void) |
| Allocate a new popup widget. | |
| void | ewl_popup_offset_set (Ewl_Popup *p, int x, int y) |
| This is to set the offset to where the popup will be placed. | |
| Ewl_Popup_Type | ewl_popup_type_get (Ewl_Popup *p) |
| This is to get the type of the popup. The type defines how the popup will handle the positioning. | |
| void | ewl_popup_type_set (Ewl_Popup *p, Ewl_Popup_Type type) |
| This is to set the type of the popup. The type defines how the popup will handle the positioning. | |
Function Documentation
| void ewl_popup_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_CALLBACK_CONFIGURE, ewl_callback_del_with_data(), EWL_CALLBACK_DESTROY, EWL_POPUP, ewl_popup_cb_follow_configure(), ewl_popup_cb_follow_destroy(), EWL_POPUP_TYPE, and Ewl_Popup::follow.
Referenced by ewl_popup_init().
| void ewl_popup_cb_follow_configure | ( | Ewl_Widget *w | __UNUSED__, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_POPUP, and EWL_POPUP_TYPE.
Referenced by ewl_popup_cb_destroy(), and ewl_popup_follow_set().
| void ewl_popup_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_POPUP, EWL_POPUP_TYPE, EWL_POPUP_TYPE_NONE, EWL_WIDGET, ewl_widget_hide(), Ewl_Popup::follow, and Ewl_Popup::type.
Referenced by ewl_popup_cb_destroy(), and ewl_popup_follow_set().
| void ewl_popup_cb_mouse_move | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_POPUP, EWL_POPUP_TYPE, and Ewl_Popup::moving.
Referenced by ewl_popup_init().
| void ewl_popup_cb_show | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Embed::canvas_window, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Window::ewl, ewl_embed_widget_find(), EWL_POPUP, EWL_POPUP_TYPE, EWL_WINDOW, EWL_WINDOW_IS, ewl_window_keyboard_grab_get(), ewl_window_keyboard_grab_set(), ewl_window_pointer_grab_get(), ewl_window_pointer_grab_set(), EWL_WINDOW_TRANSIENT, ewl_window_transient_for_foreign(), EWL_WINDOW_TRANSIENT_FOREIGN, Ewl_Window::flags, Ewl_Window::foreign, Ewl_Window::transient, and Ewl_Window::window.
Referenced by ewl_popup_init().