Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Menu_Bar


Detailed Description

A menu bar is a horizontal bar that can contain several menu items.

menu_bar.png
The menu bar is a menu shell whose items are packed horizontally. A menu bar is usually packed at the top of a window.
To add or remove items, you have to use the functions provided by the Etk_Menu_Shell: etk_menu_shell_append(), etk_menu_shell_remove(), ...

Object Hierarchy:
  • Etk_Object
    • Etk_Widget
      • Etk_Menu_Shell
        • Etk_Menu_Bar


Data Structures

struct  Etk_Menu_Bar
 [Widget] The structure of a menu bar More...

Defines

#define ETK_MENU_BAR_TYPE   (etk_menu_bar_type_get())
#define ETK_MENU_BAR(obj)   (ETK_OBJECT_CAST((obj), ETK_MENU_BAR_TYPE, Etk_Menu_Bar))
#define ETK_IS_MENU_BAR(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_BAR_TYPE))

Functions

Etk_Widget * etk_menu_bar_new (void)
 Creates a new menu bar.


Define Documentation

#define ETK_MENU_BAR_TYPE   (etk_menu_bar_type_get())

Gets the type of a menu bar

Referenced by etk_menu_bar_new().

#define ETK_MENU_BAR ( obj   )     (ETK_OBJECT_CAST((obj), ETK_MENU_BAR_TYPE, Etk_Menu_Bar))

Casts the object to an Etk_Menu_Bar

#define ETK_IS_MENU_BAR ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_MENU_BAR_TYPE))

Check if the object is an Etk_Menu_Bar


Function Documentation

Etk_Widget * etk_menu_bar_new ( void   ) 

Creates a new menu bar.

Returns:
Returns the new menu bar widget

References ETK_MENU_BAR_TYPE, and etk_widget_new().