Declared in: interface/Alert.h
enum button_width {B_WIDTH_AS_USUAL
,B_WIDTH_FROM_LABEL
,B_WIDTH_FROM_WIDEST
These constants name the methods that can be used to determine how wide to make the buttons in an alert panel.
See also:
button_width Constants,
the BAlert
constructor
Declared in: interface/GraphicsDefs.h
typedef struct { int32id
; rgb_colorcolor_list
[256]; uint8inversion_map
[256]; uint8index_map
[32768]; } color_map
This structure contains information about the 8-bit color context for a particular screen. All applications that display on the screen share the same color map.
See also:
BScreen::ColorMap()
Declared in: interface/Font.h
typedef struct { floatleft
; floatright
; } edge_info
This structure records information about the location of a character
outline within the horizontal space allotted to the character. Edges
separate one character from adjacent characters on the left and right.
They're explained under the
GetEdges()
function in
the BFont
class.
See also:
BFont::GetEscapements()
Declared in: interface/Font.h
typedef struct { floatnonspace
; floatspace
; } escapement_delta
This structure contains values that should be added to the width of each character in a string when the string is drawn.
See also:
BView::DrawString(),
BFont::GetEscapements()
Declared in: interface/InterfaceDefs.h
typedef char font_family[B_FONT_FAMILY_LENGTH
+ 1]
This type defines a string long enough to hold the name of a font family—64 characters including the null terminator.
See also:
get_font_family()
Declared in: interface/Font.h
typedef struct { floatascent
; floatdescent
; floatleading
; } font_height
This type combines the three vertical measurements that determine the height of a line of text.
See also:
BFont::GetHeight()
Declared in: interface/InterfaceDefs.h
typedef char font_style[B_FONT_STYLE_LENGTH
+ 1]
This type defines a string long enough to hold the name of a font style—64 characters including the null terminator.
See also:
get_font_style()
Declared in: interface/View.h
typedef struct { uint32modifiers
; uint8key_states
[16]; } key_info
This structure is used to get information about the current state of the
keyboard in the absence of B_KEY_DOWN
messages.
See also:
get_key_info()
Declared in: interface/InterfaceDefs.h
typedef struct { uint32version
; uint32caps_key
; uint32scroll_key
; uint32num_key
; uint32left_shift_key
; uint32right_shift_key
; uint32left_command_key
; uint32right_command_key
; uint32left_control_key
; uint32right_control_key
; uint32left_option_key
; uint32right_option_key
; uint32menu_key
; uint32lock_settings
; int32control_map
[128]; int32option_caps_shift_map
[128]; int32option_caps_map
[128]; int32option_shift_map
[128]; int32option_map
[128]; int32caps_shift_map
[128]; int32caps_map
[128]; int32shift_map
[128]; int32normal_map
[128]; int32acute_dead_key
[32]; int32grave_dead_key
[32]; int32circumflex_dead_key
[32]; int32dieresis_dead_key
[32]; int32tilde_dead_key
[32]; uint32acute_tables
; uint32grave_tables
; uint32circumflex_tables
; uint32dieresis_tables
; uint32tilde_tables
; } key_map
This structure maps the physical keys on the keyboard to their functions in the user interface. It holds the tables that assign characters to key codes, set up dead keys, and determine which keys function as modifiers. There's just one key map shared by all applications running on the same machine.
See also:
get_key_map()
Declared in: interface/MenuBar.h
typedef enum {. . .} menu_bar_border
This type enumerates the ways that a menu bar can be bordered.
See also:
BMenuBar::SetBorder()
,
"menu_bar_border Constants" above
Declared in: interface/Menu.h
typedef struct { floatfont_size
; font_namefont
; rgb_colorbackground_color
; int32separator
; boolclick_to_open
; booltriggers_always_shown
; } menu_info
This structure records the user's menu preferences.
See also:
set_menu_info()
,
the BMenu
class
Declared in: interface/Menu.h
typedef enum {. . .} menu_layout
This type distinguishes the various ways that items can arranged in a menu or menu bar.
See also:
The BMenu
class,
"menu_layout Constants" above
Declared in: interface/InterfaceDefs.h
typedef struct { uint32left
; uint32right
; uint32middle
; } mouse_map
This structure maps mouse buttons to their roles as the
B_PRIMARY_MOUSE_BUTTON
, B_SECONDARY_MOUSE_BUTTON
, or
B_TERTIARY_MOUSE_BUTTON
.
See also:
set_mouse_map()
Declared in: interface/InterfaceDefs.h
typedef enum {. . .} orientation
This type distinguishes between the B_VERTICAL
and B_HORIZONTAL
orientation of scroll bars.
See also:
The BScrollBar
and
BScrollView
classes
Declared in: interface/GraphicsDefs.h
typedef struct {
uchar data
[8];
} pattern
A pattern is a arrangement of two colors—the high color and the low color—in an 8-pixel by 8-pixel square. Pixels are specified in rows, with one byte per row and one bit per pixel. Bits marked 1 designate the high color; those marked 0 designate the low color. An example and an illustration are given under "Patterns" in the "Drawing section of this chapter.
See also: "Pattern Constants" above
Declared in: interface/PrintJob.h
typedef struct { longversion
; longpage_count
; long_reserved_1_
; long_reserved_2_
; long_reserved_3_
; long_reserved_4_
; long_reserved_5_
; } print_file_header
This structure defines the header information for a print job. Although
declared publicly, it currently is used only internally by the
BPrintJob
class.
Declared in: interface/GraphicsDefs.h
typedef struct { uint8red
; uint8green
; uint8blue
; uint8alpha
; } rgb_color
This type specifies a full 32-bit color. Each component can have a value ranging from a minimum of 0 to a maximum of 255.
The alpha component, which is designed to specify the coverage of the
color (how transparent or opaque it is), is currently ignored. However,
an rgb_color can be made completely transparent by assigning it the
special value, B_TRANSPARENT_32_BIT
.
See also:
BView::SetHighColor()
Declared in: interface/Screen.h
typedef struct {
int32 id
;
} screen_id
This type is a unique identifier for a screen. The constant
B_MAIN_SCREEN_ID
is a screen_id
that identifies the main screen.
See also:
The BScreen
class
Declared in: interface/InterfaceDefs.h
typedef struct { color_spacemode
;BRect
frame
; uint32spaces
; floatmin_refresh_rate
; floatmax_refresh_rate
; floatrefresh_rate
; ucharh_position
; ucharv_position
; ucharh_size
; ucharv_size
; } screen_info
This structure holds information about a screen. Its fields are explained
under the
get_screen_info()
global function.
Declared in: interface/InterfaceDefs.h
typedef struct { boolproportional
; booldouble_arrows
; int32knob
; int32min_knob_size
; } scroll_bar_info
This structure captures the user's preferences for how scroll bars should behave and appear.
See also:
set_scroll_bar_info()
,
the BScrollBar
class
Declared in: interface/TextView.h
typedef struct { int32offset
;BFont
font
; rgb_colorcolor
; } text_run
The BTextView
class uses this structure to keep track of a sequence of
characters that are displayed in the same font and color.
See also:
BTextView::SetRunArray()
Declared in: interface/TextView.h
typedef struct { int32count
; text_runruns
[]; } text_run_array
The BTextView
class uses this structure to associate character formats
with the text it displays.
See also:
BTextView::SetRunArray()
Declared in: interface/Font.h
typedef struct { floatsize
; floatshear
; floatrotation
; int32flags
; int16face
; } tuned_font_info
This structure lists the properties of a font that has a counterpart
that's been tuned to improve its appearance on-screen. The tuned
counterpart will be used whenever the font is the
BView
's current font
and DrawString()
draws to the screen.
See also:
BFont::GetTunedInfo()
,
get_font_family()
Declared in: interface/Window.h
typedef enum {. . .} window_type
This type describes the various kinds of windows that can be requested from the Application Server.
See also:
The BWindow
constructor,
"window_type Constants"