Lines Matching refs:flags

74 	uint32 flags = B_IS_CONTROL;
77 flags |= B_DISABLED;
81 flags |= B_FOCUSED;
86 flags |= B_ACTIVATED;
89 flags |= B_PARTIALLY_ACTIVATED;
97 flags |= B_BLEND_FRAME;
100 return flags;
109 const rgb_color& base, const rgb_color& background, uint32 flags,
113 background, 1.0, 1.0, flags, borders);
119 float radius, const rgb_color& base, const rgb_color& background, uint32 flags,
123 base, background, 1.0, 1.0, flags, borders);
131 const rgb_color& background, uint32 flags,
136 1.0, 1.0, flags, borders);
142 const BRect& updateRect, const rgb_color& base, uint32 flags,
146 base, false, flags, borders, orientation);
152 const BRect& updateRect, float radius, const rgb_color& base, uint32 flags,
156 radius, base, false, flags, borders, orientation);
164 uint32 flags, uint32 borders, orientation orientation)
167 rightTopRadius, leftBottomRadius, rightBottomRadius, base, false, flags,
174 const BRect& updateRect, const rgb_color& base, uint32 flags,
186 if ((flags & B_ACTIVATED) != 0) {
221 const rgb_color& background, uint32 flags, uint32 borders)
224 background, 0.6, 1.0, flags, borders);
231 const rgb_color& background, uint32 flags, uint32 borders)
234 base, background, 0.6, 1.0, flags, borders);
243 const rgb_color& background, uint32 flags, uint32 borders)
247 flags, borders);
254 uint32 flags)
257 0.0f, 0.0f, 0.0f, 0.0f, base, popupIndicator, flags);
263 const BRect& updateRect, const rgb_color& base, uint32 flags,
267 0.0f, 0.0f, 0.0f, 0.0f, base, flags, borders);
274 bool popupIndicator, uint32 flags)
277 radius, radius, base, popupIndicator, flags);
285 bool popupIndicator, uint32 flags)
289 popupIndicator, flags);
295 const BRect& updateRect, const rgb_color& base, uint32 flags,
305 if ((flags & B_DISABLED) != 0) {
327 const BRect& updateRect, const rgb_color& base, uint32 flags,
338 if ((flags & B_ACTIVATED) != 0) {
341 } else if ((flags & B_DISABLED) != 0) {
420 const rgb_color& base, uint32 flags)
429 if ((flags & B_DISABLED) != 0) {
430 _DrawOuterResessedFrame(view, rect, base, 0.0, 1.0, flags);
434 } else if ((flags & B_CLICKED) != 0) {
444 _DrawOuterResessedFrame(view, rect, base, 0.6, 1.0, flags);
450 if ((flags & B_FOCUSED) != 0) {
459 if ((flags & B_DISABLED) != 0)
465 if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
492 const rgb_color& base, uint32 flags)
502 if ((flags & B_DISABLED) != 0) {
506 } else if ((flags & B_CLICKED) != 0) {
516 if ((flags & B_FOCUSED) != 0) {
537 if ((flags & B_DISABLED) != 0) {
550 if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
563 const BRect& updateRect, const rgb_color& base, uint32 flags,
574 bool isEnabled = (flags & B_DISABLED) == 0;
575 bool isFocused = (flags & B_FOCUSED) != 0;
618 const BRect& updateRect, const rgb_color& base, uint32 flags,
629 bool isEnabled = (flags & B_DISABLED) == 0;
633 DrawButtonBackground(view, rect, updateRect, buttonColor, flags,
637 DrawArrowShape(view, rect, updateRect, base, direction, flags, 1.9f);
646 BRect& rect2, const BRect& updateRect, const rgb_color& base, uint32 flags,
649 DrawScrollBarBackground(view, rect1, updateRect, base, flags, orientation);
650 DrawScrollBarBackground(view, rect2, updateRect, base, flags, orientation);
656 const BRect& updateRect, const rgb_color& base, uint32 flags,
667 bool isEnabled = (flags & B_DISABLED) == 0;
752 const BRect& updateRect, const rgb_color& base, uint32 flags,
763 // flags
764 bool isEnabled = (flags & B_DISABLED) == 0;
943 border_style borderStyle, uint32 flags, uint32 _borders)
977 _DrawOuterResessedFrame(view, rect, base, 1.0, 1.0, flags, borders);
979 if ((flags & B_FOCUSED) != 0) {
995 1.0, 1.0, flags, borders);
1006 1.0, 1.0, flags, borders);
1026 uint32 flags, float tint)
1086 if ((flags & B_DISABLED) != 0)
1115 float sliderScale, uint32 flags, orientation orientation)
1140 DrawSliderBar(view, rect, updateRect, base, leftFillColor, flags,
1146 DrawSliderBar(view, rect, updateRect, base, rightFillColor, flags,
1154 const rgb_color& base, rgb_color fillColor, uint32 flags,
1182 if ((flags & B_BLEND_FRAME) == 0) {
1199 if ((flags & B_DISABLED) != 0) {
1236 if ((flags & B_BLEND_FRAME) != 0) {
1269 if ((flags & B_BLEND_FRAME) != 0)
1307 const rgb_color& base, uint32 flags, orientation orientation)
1317 if ((flags & B_FOCUSED) != 0) {
1326 if ((flags & B_DISABLED) != 0) {
1346 flags &= ~B_ACTIVATED;
1347 DrawButtonBackground(view, rect, updateRect, base, flags);
1391 const BRect& updateRect, const rgb_color& base, uint32 flags,
1394 DrawSliderTriangle(view, rect, updateRect, base, base, flags, orientation);
1401 uint32 flags, orientation orientation)
1416 if ((flags & B_DISABLED) != 0) {
1421 } else if ((flags & B_HOVER) != 0) {
1428 if ((flags & B_FOCUSED) != 0) {
1437 if ((flags & B_DISABLED) != 0) {
1503 if ((flags & B_DISABLED) != 0) {
1519 hash_mark_location location, uint32 flags, orientation orientation)
1527 if ((flags & B_DISABLED) != 0) {
1608 const BRect& updateRect, const rgb_color& base, uint32 flags,
1642 const BRect& updateRect, const rgb_color& base, uint32 flags,
1670 if ((flags & B_DISABLED) != 0) {
1824 const BRect& updateRect, const rgb_color& base, uint32 flags,
1840 if ((flags & B_DISABLED) != 0) {
1926 const rgb_color& base, orientation orientation, uint32 flags,
1933 if ((flags & (B_CLICKED | B_ACTIVATED)) != 0)
1943 DrawRaisedBorder(view, rect, updateRect, background, flags, borders);
2041 const rgb_color& base, border_style borderStyle, uint32 flags,
2052 if ((flags & B_FOCUSED) != 0)
2056 _DrawOuterResessedFrame(view, rect, base, 1.0, 1.0, flags, borders);
2065 const BRect& updateRect, const rgb_color& base, uint32 flags,
2071 if ((flags & B_DISABLED) != 0) {
2086 const BRect& updateRect, const rgb_color& base, uint32 flags,
2097 if ((flags & B_DISABLED) != 0) {
2098 _DrawOuterResessedFrame(view, rect, base, 0.0, 1.0, flags, borders);
2100 if ((flags & B_BLEND_FRAME) != 0)
2105 } else if ((flags & B_CLICKED) != 0) {
2116 _DrawOuterResessedFrame(view, rect, base, 0.6, 1.0, flags, borders);
2118 if ((flags & B_BLEND_FRAME) != 0) {
2127 if ((flags & B_DISABLED) == 0 && (flags & B_FOCUSED) != 0) {
2132 if ((flags & B_DISABLED) == 0 && (flags & B_INVALID) != 0) {
2137 if ((flags & B_BLEND_FRAME) != 0) {
2175 const BRect& updateRect, const rgb_color& base, uint32 flags,
2178 DrawLabel(view, label, NULL, rect, updateRect, base, flags,
2185 const BRect& updateRect, const rgb_color& base, uint32 flags,
2188 DrawLabel(view, label, NULL, rect, updateRect, base, flags, alignment,
2195 uint32 flags, const BPoint& where, const rgb_color* textColor)
2205 && (flags & B_IGNORE_OUTLINE) == 0;
2213 else if ((flags & B_IS_CONTROL) != 0)
2225 if ((flags & B_DISABLED) != 0) {
2317 BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags,
2384 DrawLabel(view, truncatedLabel.String(), base, flags, location, textColor);
2389 HaikuControlLook::GetFrameInsets(frame_type frameType, uint32 flags, float& _left,
2397 inset = (flags & B_DEFAULT_BUTTON) != 0 ? 5 : 2;
2420 uint32 flags, float& _left, float& _top, float& _right, float& _bottom)
2462 const BRect& updateRect, const rgb_color& base, uint32 flags,
2466 base, true, flags, borders, orientation);
2472 const BRect& updateRect, float radius, const rgb_color& base, uint32 flags,
2476 radius, base, true, flags, borders, orientation);
2484 uint32 flags, uint32 borders, orientation orientation)
2487 rightTopRadius, leftBottomRadius, rightBottomRadius, base, true, flags,
2500 uint32 flags, uint32 borders)
2513 if ((flags & B_FLAT) != 0
2514 && (flags & (B_ACTIVATED | B_PARTIALLY_ACTIVATED)) == 0
2515 && ((flags & (B_HOVER | B_FOCUSED)) == 0
2516 || (flags & B_DISABLED) != 0)) {
2533 if ((flags & B_DISABLED) != 0) {
2540 if ((flags & B_DEFAULT_BUTTON) != 0) {
2543 contrast * ((flags & B_DISABLED) != 0 ? 0.3 : 0.8),
2544 brightness * ((flags & B_DISABLED) != 0 ? 1.0 : 0.9), flags);
2546 contrast * ((flags & B_DISABLED) != 0 ? 0.3 : 0.8),
2547 brightness * ((flags & B_DISABLED) != 0 ? 1.0 : 0.9), flags);
2561 if ((flags & B_BLEND_FRAME) != 0) {
2569 contrast * ((flags & B_DISABLED) != 0 ? 0.0 : 1.0),
2570 brightness * 1.0, flags);
2572 contrast * (flags & B_DISABLED) != 0 ? 0.0 : 1.0,
2573 brightness * 1.0, flags);
2577 rgb_color frameLightColor = _FrameLightColor(base, flags);
2578 rgb_color frameShadowColor = _FrameShadowColor(base, flags);
2633 if ((flags & B_DEFAULT_BUTTON) != 0) {
2635 contrast * ((flags & B_DISABLED) != 0 ? 0.3 : 0.8),
2636 brightness * ((flags & B_DISABLED) != 0 ? 1.0 : 0.9),
2637 flags, borders);
2640 contrast * ((flags & B_DISABLED) != 0 ? 0.0 : 1.0),
2641 brightness * 1.0, flags, borders);
2647 if ((flags & B_BLEND_FRAME) != 0) {
2667 const rgb_color& base, float contrast, float brightness, uint32 flags,
2671 brightness, flags);
2673 brightness, flags);
2675 if ((flags & B_BLEND_FRAME) != 0) {
2782 bool popupIndicator, uint32 flags, uint32 borders, orientation orientation)
2795 if ((flags & B_FLAT) != 0
2796 && (flags & (B_ACTIVATED | B_PARTIALLY_ACTIVATED)) == 0
2797 && ((flags & (B_HOVER | B_FOCUSED)) == 0
2798 || (flags & B_DISABLED) != 0)) {
2800 flags, borders, orientation);
2805 base, popupIndicator, flags, borders, orientation);
2816 uint32 flags, uint32 borders, orientation orientation)
2833 _DrawPopUpMarker(view, indicatorRect, base, flags);
2842 const rgb_color& base, bool popupIndicator, uint32 flags, uint32 borders,
2846 rgb_color bevelLightColor = _BevelLightColor(base, flags);
2847 rgb_color bevelShadowColor = _BevelShadowColor(base, flags);
2851 if ((flags & B_DISABLED) != 0)
2858 _MakeButtonGradient(fillGradient, rect, base, flags, orientation);
2917 if ((flags & B_ACTIVATED) != 0) {
2960 if ((flags & B_ACTIVATED) != 0)
2965 if ((flags & B_ACTIVATED) != 0)
2969 (flags & B_DISABLED) != 0 ? 0.7 : 1.0, 1.0, flags);
2971 (flags & B_DISABLED) != 0 ? 0.7 : 1.0, 1.0, flags);
2986 0.0f, rightTopRadius, 0.0f, rightBottomRadius, base, flags, 0);
2988 if ((flags & B_ACTIVATED) != 0)
2991 _DrawPopUpMarker(view, indicatorRect, base, flags);
3001 const rgb_color& base, uint32 flags)
3016 if ((flags & B_DISABLED) != 0)
3032 bool popupIndicator, uint32 flags)
3048 leftTopRadius, 0.0f, leftBottomRadius, 0.0f, base, flags,
3052 0.0f, rightTopRadius, 0.0f, rightBottomRadius, base, flags,
3055 _DrawPopUpMarker(view, rightRect, base, flags);
3058 rgb_color bevelShadowColor = _BevelShadowColor(base, flags);
3072 rightTopRadius, leftBottomRadius, rightBottomRadius, base, flags);
3081 uint32 flags, uint32 borders)
3093 rgb_color frameLightColor = _FrameLightColor(base, flags);
3094 rgb_color frameShadowColor = _FrameShadowColor(base, flags);
3101 if ((flags & B_DISABLED) != 0)
3113 if ((flags & B_DISABLED) != 0) {
3127 _MakeButtonGradient(fillGradient, rect, indicatorBase, flags);
3680 float brightness, uint32 flags)
3684 if ((flags & B_BLEND_FRAME) != 0) {
3713 float brightness, uint32 flags)
3717 if ((flags & B_BLEND_FRAME) != 0) {
3742 HaikuControlLook::_FrameLightColor(const rgb_color& base, uint32 flags)
3744 if ((flags & B_FOCUSED) != 0)
3747 if ((flags & B_ACTIVATED) != 0)
3748 return _FrameShadowColor(base, flags & ~B_ACTIVATED);
3752 if ((flags & B_DISABLED) != 0) {
3756 if ((flags & B_DEFAULT_BUTTON) != 0)
3759 if ((flags & B_BLEND_FRAME) != 0)
3764 if ((flags & B_DEFAULT_BUTTON) != 0)
3773 HaikuControlLook::_FrameShadowColor(const rgb_color& base, uint32 flags)
3775 if ((flags & B_FOCUSED) != 0)
3778 if ((flags & B_ACTIVATED) != 0)
3779 return _FrameLightColor(base, flags & ~B_ACTIVATED);
3783 if ((flags & B_DISABLED) != 0) {
3787 if ((flags & B_DEFAULT_BUTTON) != 0) {
3792 if ((flags & B_DEFAULT_BUTTON) != 0) {
3793 if ((flags & B_BLEND_FRAME) != 0)
3800 if ((flags & B_BLEND_FRAME) != 0)
3812 HaikuControlLook::_BevelLightColor(const rgb_color& base, uint32 flags)
3816 if ((flags & B_DISABLED) != 0)
3819 if ((flags & B_ACTIVATED) != 0)
3827 HaikuControlLook::_BevelShadowColor(const rgb_color& base, uint32 flags)
3831 if ((flags & B_DISABLED) != 0)
3834 if ((flags & B_ACTIVATED) != 0)
3899 const rgb_color& base, uint32 flags, orientation orientation) const
3906 if ((flags & B_ACTIVATED) != 0) {
3911 if ((flags & B_DISABLED) != 0) {
3916 } else if ((flags & B_HOVER) != 0) {
3923 if ((flags & B_ACTIVATED) != 0) {
3934 rgb_color& color, uint32 flags) const
3936 if ((flags & (B_ACTIVATED | B_PARTIALLY_ACTIVATED | B_CLICKED)) == 0) {
3945 if ((flags & B_DISABLED) != 0) {
3948 } else if ((flags & B_CLICKED) != 0) {
3949 if ((flags & B_ACTIVATED) != 0) {
3956 } else if ((flags & B_PARTIALLY_ACTIVATED) != 0) {