Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
Menu.h File Reference

BMenu class definition and support structures. More...

Classes

class  BMenu
 Displays a list of menu items including additional menus arranged hierarchically. More...
 
struct  menu_info
 Information about a menu such as font size and family, background color, and flags. More...
 

Namespaces

namespace  BPrivate
 Internal or experimental API.
 

Typedefs

typedef bool(* menu_tracking_hook) (BMenu *menu, void *state)
 Defines the function passed into BMenu::SetTrackingHook().
 

Enumerations

enum  menu_layout {
  B_ITEMS_IN_ROW = 0 ,
  B_ITEMS_IN_COLUMN ,
  B_ITEMS_IN_MATRIX
}
 

Functions

status_t get_menu_info (menu_info *info)
 Fill out the menu_info struct into info.
 
status_t set_menu_info (menu_info *info)
 Set the menu's menu_info struct to info adjusting how the menu will look and work.
 

Detailed Description

BMenu class definition and support structures.

Typedef Documentation

◆ menu_tracking_hook

bool(* menu_tracking_hook)(BMenu *menu, void *state)

Defines the function passed into BMenu::SetTrackingHook().

Since
BeOS R3

Enumeration Type Documentation

◆ menu_layout

Enumerator
B_ITEMS_IN_ROW 

Items are arranged in a row, one next to the other.

Since
BeOS R3
B_ITEMS_IN_COLUMN 

Items are arranged in a column, one on top of the other.

Since
BeOS R3
B_ITEMS_IN_MATRIX 

Items are arranged in a matrix, a free-form arrangement that you create.

Since
BeOS R3

Function Documentation

◆ get_menu_info()

status_t get_menu_info ( menu_info info)

Fill out the menu_info struct into info.

Since
BeOS R3

◆ set_menu_info()

status_t set_menu_info ( menu_info info)

Set the menu's menu_info struct to info adjusting how the menu will look and work.

Since
BeOS R3