Download

Support

Ewl_Menubar: A menu bar widget


Detailed Description

Defines a class for displaying menu bars

Remarks:
Inherits from Ewl_Box.

Tutorial


Data Structures

struct  Ewl_Menubar
 Inherits from the Ewl_Box class and extends it to provide for a menubar. More...
struct  Ewl_Menubar_Info
 Provides a simple menu structure for the menubar. More...

Defines

#define EWL_MENUBAR(menubar)   ((Ewl_Menubar *) menubar)
#define EWL_MENUBAR_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENUBAR_TYPE))
#define EWL_MENUBAR_TYPE   "menubar"

Typedefs

typedef struct Ewl_Menubar Ewl_Menubar
typedef struct Ewl_Menubar_Info Ewl_Menubar_Info

Functions

Ewl_Widgetewl_hmenubar_new (void)
 Creates a new Ewl_Menubar in a horizontal orientation.
void ewl_menubar_cb_child_add (Ewl_Container *c, Ewl_Widget *w)
void ewl_menubar_from_info (Ewl_Menubar *mb, Ewl_Menubar_Info *info)
 Sets up the menubar mb with the given info.
int ewl_menubar_init (Ewl_Menubar *mb)
 Initialize a menubar to default values.
Ewl_Widgetewl_menubar_new (void)
 Allocate and initialize a new menubar widget.
Ewl_Orientation ewl_menubar_orientation_get (Ewl_Menubar *mb)
 Gets the orientation of the menubar.
void ewl_menubar_orientation_set (Ewl_Menubar *mb, Ewl_Orientation o)
 Sets the orientation of the menubar.
Ewl_Widgetewl_vmenubar_new (void)
 Creates a new Ewl_Menubar in a vertical orientation.

Define Documentation

#define EWL_MENUBAR ( menubar   )     ((Ewl_Menubar *) menubar)

#define EWL_MENUBAR_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENUBAR_TYPE))

Returns TRUE if the widget is an Ewl_Menubar, FALSE otherwise

#define EWL_MENUBAR_TYPE   "menubar"


Typedef Documentation

typedef struct Ewl_Menubar Ewl_Menubar

The Ewl_Menubar widget


Function Documentation

Ewl_Widget* ewl_hmenubar_new ( void   ) 

Creates a new Ewl_Menubar in a horizontal orientation.

Returns:
Returns NULL on failure or a pointer to a new horizontal menubar on success

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_MENUBAR, ewl_menubar_new(), ewl_menubar_orientation_set(), and EWL_ORIENTATION_HORIZONTAL.

void ewl_menubar_from_info ( Ewl_Menubar mb,
Ewl_Menubar_Info info 
)

Ewl_Widget* ewl_menubar_new ( void   ) 

Allocate and initialize a new menubar widget.

Returns:
Returns NULL on failure, or a pointer to a new menubar on success.

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_menubar_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.

Referenced by ewl_hmenubar_new(), and ewl_vmenubar_new().

Ewl_Orientation ewl_menubar_orientation_get ( Ewl_Menubar mb  ) 

Gets the orientation of the menubar.

Parameters:
mb,: The menubar to get the orientation from
Returns:
Returns the orientation of the menubar

References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_BOX, ewl_box_orientation_get(), EWL_MENUBAR_TYPE, and EWL_ORIENTATION_HORIZONTAL.

Referenced by ewl_toolbar_orientation_get().

void ewl_menubar_orientation_set ( Ewl_Menubar mb,
Ewl_Orientation  o 
)

Sets the orientation of the menubar.

Parameters:
mb,: The menubar to set the orientation on
o,: The orientation to set onto the menubar
Returns:
Returns no value.

References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_BOX, ewl_box_orientation_set(), EWL_FLAG_FILL_HFILL, EWL_FLAG_FILL_VFILL, EWL_MENUBAR_TYPE, EWL_OBJECT, ewl_object_fill_policy_set(), EWL_ORIENTATION_HORIZONTAL, EWL_ORIENTATION_VERTICAL, and inner_box.

Referenced by ewl_hmenubar_new(), ewl_menubar_init(), ewl_toolbar_orientation_set(), and ewl_vmenubar_new().

Ewl_Widget* ewl_vmenubar_new ( void   ) 

Creates a new Ewl_Menubar in a vertical orientation.

Returns:
Returns NULL on failure or a pointer to a new vertical menubar on success

References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_MENUBAR, ewl_menubar_new(), ewl_menubar_orientation_set(), and EWL_ORIENTATION_VERTICAL.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:10 2008