BView class definition and support data structures. More...
Classes | |
| class | BView |
| View base class. More... | |
Namespaces | |
| namespace | BPrivate |
| Internal or experimental API. | |
Macros | |
| #define | _RESIZE_MASK_ (0xffff) |
| Resize mask. Do not use. | |
| #define | B_MOUSE_BUTTON(n) (1 << ((n) - 1)) |
| Compute mouse button mask for button n. | |
Variables | |
| const uint32 | _B_RESERVED1_ = 0x40000000UL |
| Reserved for future use. | |
| const uint32 | _VIEW_BOTTOM_ = 3UL |
| View bottom mask variable. Do not use. | |
| const uint32 | _VIEW_CENTER_ = 5UL |
| View center mask variable. Do not use. | |
| const uint32 | _VIEW_LEFT_ = 2UL |
| View left mask variable. Do not use. | |
| const uint32 | _VIEW_RIGHT_ = 4UL |
| View right mask variable. Do not use. | |
| const uint32 | _VIEW_TOP_ = 1UL |
| View top mask variable. Do not use. | |
| const uint32 | B_DRAW_ON_CHILDREN = 0x00800000UL |
| Indicates that the view responds to the DrawAfterChildren() hook method. | |
| const uint32 | B_FOLLOW_ALL = B_FOLLOW_ALL_SIDES |
Equivalent to B_FOLLOW_ALL_SIDES. | |
| const uint32 | B_FOLLOW_ALL_SIDES |
Follow all sides resize mask parameter. Equivalent to B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP_BOTTOM. The view will be resized with its parent view both horizontally and vertically. | |
| const uint32 | B_FOLLOW_BOTTOM = _rule_(_VIEW_BOTTOM_, 0, _VIEW_BOTTOM_, 0) |
| The margin between the bottom of the view and the bottom of its parent remains constant. | |
| const uint32 | B_FOLLOW_H_CENTER = _rule_(0, _VIEW_CENTER_, 0, _VIEW_CENTER_) |
| The view maintains a constant relationship to the horizontal center of its parent view. | |
| const uint32 | B_FOLLOW_LEFT = _rule_(0, _VIEW_LEFT_, 0, _VIEW_LEFT_) |
| The margin between the left side of the view and the left side of its parent remains constant. | |
| const uint32 | B_FOLLOW_LEFT_RIGHT = _rule_(0, _VIEW_LEFT_, 0, _VIEW_RIGHT_) |
| The margin between the left and right sides of the view and the left and right sides of its parent both remain constant. | |
| const uint32 | B_FOLLOW_LEFT_TOP = B_FOLLOW_TOP | B_FOLLOW_LEFT |
| The margins between the left and top sides of the view and the left and top sides of its parent remain constant. | |
| const uint32 | B_FOLLOW_NONE = 0 |
Follow none resize mask parameter. Equivalent to B_FOLLOW_LEFT | B_FOLLOW_TOP. The view maintains its position in its parent's coordinate system but not in the screen coordinate system. | |
| const uint32 | B_FOLLOW_RIGHT = _rule_(0, _VIEW_RIGHT_, 0, _VIEW_RIGHT_) |
| The margin between the right side of the view and the right side of its parent remains constant. | |
| const uint32 | B_FOLLOW_TOP = _rule_(_VIEW_TOP_, 0, _VIEW_TOP_, 0) |
| The margin between the top of the view and the top of its parent remains constant. | |
| const uint32 | B_FOLLOW_TOP_BOTTOM = _rule_(_VIEW_TOP_, 0, _VIEW_BOTTOM_, 0) |
| The margin between the top and bottom sides of the view and the top and bottom sides of its parent both remain constant. | |
| const uint32 | B_FOLLOW_V_CENTER = _rule_(_VIEW_CENTER_, 0, _VIEW_CENTER_, 0) |
| The view maintains a constant relationship to the vertical center of its parent view. | |
| const uint32 | B_FRAME_EVENTS = 0x04000000UL |
| View responds to frame move and resize events. | |
| const uint32 | B_FULL_UPDATE_ON_RESIZE = 0x80000000UL |
| Redraw the entire view on resize. | |
| const uint32 | B_INPUT_METHOD_AWARE = 0x00400000UL |
| Indicates the view understands input method add-ons, as used for complex text input in CJK and other languages. | |
| const uint32 | B_INVALIDATE_AFTER_LAYOUT = 0x00080000UL |
| Indicates that the view should be redraw after being added to a layout. | |
| const uint32 | B_NAVIGABLE = 0x02000000UL |
| The view is able to receive focus for keyboard navigation. Typically focus is indicated by drawing a blue rectangle around the view. | |
| const uint32 | B_NAVIGABLE_JUMP = 0x08000000UL |
| Indicates this is the default keyboard navigation view. | |
| const uint32 | B_PULSE_NEEDED = 0x10000000UL |
| Indicates that the view accepts Pulse() messages. | |
| const uint32 | B_SCROLL_VIEW_AWARE = 0x00200000UL |
| Indicates the view will properly manage scrollbars that have been targeted to it, i.e. update their ranges and proportions. | |
| const uint32 | B_SUBPIXEL_PRECISE = 0x01000000UL |
| The view draws with sub-pixel precision. | |
| const uint32 | B_SUPPORTS_LAYOUT = 0x00100000UL |
| The view supports the layout APIs, i.e. it doesn't require an frame rectangle to be specified. | |
| const uint32 | B_WILL_DRAW = 0x20000000UL |
| Indicates that the view will do its own drawing. | |
BView class definition and support data structures.
| _RESIZE_MASK_ (0xffff) |
Resize mask. Do not use.
| B_MOUSE_BUTTON | ( | n | ) | (1 << ((n) - 1)) |
Compute mouse button mask for button n.
Buttons are numbered from 1 to 32.
Some mice may not have more than 2 buttons, so the extra buttons should only be used as shortcuts for actions that can be done in alternative ways.
| anonymous enum |
| Enumerator | |
|---|---|
| B_PRIMARY_MOUSE_BUTTON | Primary mouse button mask parameter. The primary mouse button should be used for main operations (selecting, dragging, or opening objects). This maps to B_MOUSE_BUTTON(1).
|
| B_SECONDARY_MOUSE_BUTTON | Secondary mouse button mask parameter. The secondary button should be used for additional operations on the pointed objects, such as popup menus. This maps to B_MOUSE_BUTTON(2).
|
| B_TERTIARY_MOUSE_BUTTON | Tertiary mouse button mask parameter. The tertiary button should be used for clipboard paste. This maps to B_MOUSE_BUTTON(3).
|
| anonymous enum |
| anonymous enum |
| anonymous enum |
| Enumerator | |
|---|---|
| B_LOCK_WINDOW_FOCUS | Prevents the attached window from losing its focused state while the mouse is held down.
|
| B_SUSPEND_VIEW_FOCUS | Events normally sent to the focus view are suppressed.
|
| B_NO_POINTER_HISTORY | Send only the most recent MouseMoved() event to the view.
|
| B_FULL_POINTER_HISTORY | Send all MouseMoved() events to the view.
|
| enum coordinate_space |
A coordinate or drawing space.
| enum rect_tracking_style |
| enum set_font_mask |
| _B_RESERVED1_ = 0x40000000UL |
Reserved for future use.
| _VIEW_BOTTOM_ = 3UL |
View bottom mask variable. Do not use.
| _VIEW_CENTER_ = 5UL |
View center mask variable. Do not use.
| _VIEW_LEFT_ = 2UL |
View left mask variable. Do not use.
| _VIEW_RIGHT_ = 4UL |
View right mask variable. Do not use.
| _VIEW_TOP_ = 1UL |
View top mask variable. Do not use.
| B_DRAW_ON_CHILDREN = 0x00800000UL |
Indicates that the view responds to the DrawAfterChildren() hook method.
| B_FOLLOW_ALL = B_FOLLOW_ALL_SIDES |
Equivalent to B_FOLLOW_ALL_SIDES.
| B_FOLLOW_ALL_SIDES |
Follow all sides resize mask parameter. Equivalent to B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP_BOTTOM. The view will be resized with its parent view both horizontally and vertically.
| B_FOLLOW_BOTTOM = _rule_(_VIEW_BOTTOM_, 0, _VIEW_BOTTOM_, 0) |
The margin between the bottom of the view and the bottom of its parent remains constant.
| B_FOLLOW_H_CENTER = _rule_(0, _VIEW_CENTER_, 0, _VIEW_CENTER_) |
The view maintains a constant relationship to the horizontal center of its parent view.
| B_FOLLOW_LEFT = _rule_(0, _VIEW_LEFT_, 0, _VIEW_LEFT_) |
The margin between the left side of the view and the left side of its parent remains constant.
| B_FOLLOW_LEFT_RIGHT = _rule_(0, _VIEW_LEFT_, 0, _VIEW_RIGHT_) |
The margin between the left and right sides of the view and the left and right sides of its parent both remain constant.
| B_FOLLOW_LEFT_TOP = B_FOLLOW_TOP | B_FOLLOW_LEFT |
The margins between the left and top sides of the view and the left and top sides of its parent remain constant.
| B_FOLLOW_NONE = 0 |
Follow none resize mask parameter. Equivalent to B_FOLLOW_LEFT | B_FOLLOW_TOP. The view maintains its position in its parent's coordinate system but not in the screen coordinate system.
| B_FOLLOW_RIGHT = _rule_(0, _VIEW_RIGHT_, 0, _VIEW_RIGHT_) |
The margin between the right side of the view and the right side of its parent remains constant.
| B_FOLLOW_TOP = _rule_(_VIEW_TOP_, 0, _VIEW_TOP_, 0) |
The margin between the top of the view and the top of its parent remains constant.
| B_FOLLOW_TOP_BOTTOM = _rule_(_VIEW_TOP_, 0, _VIEW_BOTTOM_, 0) |
The margin between the top and bottom sides of the view and the top and bottom sides of its parent both remain constant.
| B_FOLLOW_V_CENTER = _rule_(_VIEW_CENTER_, 0, _VIEW_CENTER_, 0) |
The view maintains a constant relationship to the vertical center of its parent view.
| B_FRAME_EVENTS = 0x04000000UL |
View responds to frame move and resize events.
| B_FULL_UPDATE_ON_RESIZE = 0x80000000UL |
Redraw the entire view on resize.
| B_INPUT_METHOD_AWARE = 0x00400000UL |
Indicates the view understands input method add-ons, as used for complex text input in CJK and other languages.
| B_INVALIDATE_AFTER_LAYOUT = 0x00080000UL |
Indicates that the view should be redraw after being added to a layout.
| B_NAVIGABLE = 0x02000000UL |
The view is able to receive focus for keyboard navigation. Typically focus is indicated by drawing a blue rectangle around the view.
| B_NAVIGABLE_JUMP = 0x08000000UL |
Indicates this is the default keyboard navigation view.
| B_PULSE_NEEDED = 0x10000000UL |
Indicates that the view accepts Pulse() messages.
| B_SCROLL_VIEW_AWARE = 0x00200000UL |
Indicates the view will properly manage scrollbars that have been targeted to it, i.e. update their ranges and proportions.
| B_SUBPIXEL_PRECISE = 0x01000000UL |
The view draws with sub-pixel precision.
If this flag is not specified, drawing coordinates will be rounded to the nearest integer.
| B_SUPPORTS_LAYOUT = 0x00100000UL |
The view supports the layout APIs, i.e. it doesn't require an frame rectangle to be specified.
| B_WILL_DRAW = 0x20000000UL |
Indicates that the view will do its own drawing.