Download

Support

Ewl_Popup: A override window for the convenience use


Detailed Description

Defines the Ewl_Popup class used for override window that need to be placed with some kind of smartness

Remarks:
Inherits from Ewl_Window.


Data Structures

struct  Ewl_Popup
 Inherits from Ewl_Window and extends to provide a popup widget. More...

Defines

#define EWL_POPUP(popup)   ((Ewl_Popup *) popup)
#define EWL_POPUP_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_POPUP_TYPE))
#define EWL_POPUP_TYPE   "popup"

Typedefs

typedef Ewl_Popup Ewl_Popup

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, void *user_data)
void ewl_popup_cb_follow_configure (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_popup_cb_follow_destroy (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_popup_cb_mouse_move (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_popup_cb_show (Ewl_Widget *w, void *ev_data, void *user_data)
int ewl_popup_fit_to_follow_get (Ewl_Popup *p)
void ewl_popup_fit_to_follow_set (Ewl_Popup *p, int fit)
Ewl_Widgetewl_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_Widgetewl_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.

Define Documentation

#define EWL_POPUP ( popup   )     ((Ewl_Popup *) popup)

Typecast a pointer to an Ewl_Popup pointer.

#define EWL_POPUP_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_POPUP_TYPE))

Returns TRUE if the widget is an Ewl_Popup, FALSE otherwise

#define EWL_POPUP_TYPE   "popup"

The type name for the Ewl_Popup widget


Typedef Documentation

typedef struct Ewl_Popup Ewl_Popup

Provides an Ewl_Widget to simply act with override windows


Function Documentation

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,
void *  user_data 
)

void ewl_popup_cb_follow_configure ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_popup_cb_follow_destroy ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_popup_cb_mouse_move ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_popup_cb_show ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

int ewl_popup_fit_to_follow_get ( Ewl_Popup p  ) 

Parameters:
p,: The popup
Returns:
Returns if the popup is set to fit the size of the follow

void ewl_popup_fit_to_follow_set ( Ewl_Popup p,
int  fit 
)

Parameters:
p,: The popup
fit,: TRUE or FALSE
Returns:
Returns no value

Ewl_Widget* ewl_popup_follow_get ( Ewl_Popup p  ) 

Parameters:
p,: The popup to get the follow from
Returns:
Returns the follow of the popup

void ewl_popup_follow_set ( Ewl_Popup p,
Ewl_Widget w 
)

Set the follow widget of the popup.

Parameters:
p,: The popup to set the follow widget
w,: The widget to follow
Returns:
Returns no value

int ewl_popup_init ( Ewl_Popup p  ) 

Initialize the popup and inherited fields.

Parameters:
p,: the popup to initialize
Returns:
Returns TRUE on success, FALSE on failure.
Clears the contents of the popup and stores the default values.

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.

Parameters:
p,: The popup to set the mouse position for
x,: the x coordinate
y,: the y coordinate
Returns:
Returns no value

Ewl_Widget* ewl_popup_new ( void   ) 

Allocate a new popup widget.

Returns:
Returns pointer to new popup widget on success, NULL on failure.

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.

Parameters:
p,: The popup to set the offset for
x,: the x offset
y,: the y offset
Returns:
Returns no value

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.

Parameters:
p,: The popup to get the type from
Returns:
Returns the type of the popup

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.

Parameters:
p,: The popup to set the type for
type,: the new type of the popup
Returns:
Returns no value


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:47 2009