Searched refs:rect (Results 1 - 25 of 511) sorted by relevance

1234567891011>>

/haiku/src/servers/app/drawing/
H A Ddrawing_support.cpp6 align_rect_to_pixels(BRect* rect) argument
8 // round the rect with the least ammount of distortion
9 rect->OffsetTo(roundf(rect->left), roundf(rect->top));
10 rect->right = roundf(rect->right);
11 rect->bottom = roundf(rect->bottom);
/haiku/headers/private/interface/
H A Dclipping.h45 clipping_rect rect; local
47 rect.left = min_c(r1.left, r2.left);
48 rect.top = min_c(r1.top, r2.top);
49 rect.right = max_c(r1.right, r2.right);
50 rect.bottom = max_c(r1.bottom, r2.bottom);
52 return rect;
57 // The caller should check if the returned rect is valid. If it isn't valid,
62 clipping_rect rect; local
64 rect.left = max_c(r1.left, r2.left);
65 rect
75 offset_rect(clipping_rect &rect, int32 x, int32 y) argument
85 scale_rect(clipping_rect& rect, float x, float y) argument
96 to_BRect(const clipping_rect &rect) argument
105 to_clipping_rect(const BRect &rect) argument
129 point_in(const clipping_rect &rect, int32 px, int32 py) argument
140 point_in(const clipping_rect &rect, const BPoint &pt) argument
150 rect_contains(const clipping_rect &rect, const clipping_rect &testRect) argument
159 valid_rect(const clipping_rect &rect) argument
187 rect_width(const clipping_rect &rect) argument
195 rect_height(const clipping_rect &rect) argument
[all...]
/haiku/src/preferences/filetypes/
H A DDropTargetListView.cpp34 BRect rect = Bounds(); local
37 rect.left++;
38 rect.top++;
40 rect.right--;
41 rect.bottom--;
43 StrokeRect(rect);
79 BRect rect = Bounds(); local
80 rect.right = rect.left + 1;
81 Invalidate(rect);
[all...]
/haiku/src/apps/poorman/
H A DPoorManView.cpp12 PoorManView::PoorManView(BRect rect, const char *name) argument
13 : BView(rect, name, B_FOLLOW_ALL, B_WILL_DRAW)
/haiku/src/tests/kits/interface/
H A DCheckBoxTest.cpp24 DividedBackgroundView(BRect rect);
30 DividedBackgroundView::DividedBackgroundView(BRect rect) argument
31 : BView(rect, NULL, B_FOLLOW_NONE, B_WILL_DRAW)
43 BRect rect = bounds; local
44 rect.right = rect.left + bounds.Width() / 2;
47 FillRect(rect, B_SOLID_LOW);
49 rect.left = rect.right + 1;
50 rect
[all...]
H A DSliderTest.cpp24 downBy(BRect &rect, BView* view) argument
26 rect.bottom = rect.top + view->Bounds().Height() + 10;
27 rect.OffsetBy(0, rect.Height());
32 rightBy(BRect &rect, BView* view) argument
34 rect.right = rect.left + view->Bounds().Width() + 10;
35 rect.OffsetBy(rect
46 BRect rect = Bounds(); local
[all...]
/haiku/src/apps/debuganalyzer/gui/
H A DColorCheckBox.cpp45 BRect rect(Bounds());
46 rect.left += fCheckBox->Frame().right + 5;
47 rect.right = rect.left + 9;
48 rect.top = floorf((rect.top + rect.bottom) / 2);
49 rect.bottom = rect.top + 1;
52 FillRect(rect);
[all...]
/haiku/src/bin/network/ppp_up/
H A DPPPStatusView.cpp33 PPPStatusView::PPPStatusView(BRect rect, ppp_interface_id id) argument
34 : BView(rect, "PPPStatusView", B_FOLLOW_NONE, B_PULSE_NEEDED),
39 rect = Bounds();
40 rect.InsetBy(5, 5);
41 rect.left = rect.right - 80;
42 rect.bottom = rect.top + 25;
43 fButton = new BButton(rect, "DisconnectButton", kLabelDisconnect,
46 rect
[all...]
H A DConnectionView.cpp54 ConnectionView::ConnectionView(BRect rect, const BString& interfaceName) argument
55 : BView(rect, "ConnectionView", B_FOLLOW_NONE, 0),
62 rect = Bounds();
63 rect.InsetBy(5, 5);
64 rect.bottom = rect.top
68 BBox *authenticationBox = new BBox(rect, "Authentication");
70 rect = authenticationBox->Bounds();
71 rect.InsetBy(10, 20);
72 rect
[all...]
H A DPPPUpApplication.cpp39 BRect rect(150, 50, 450, 435);
40 // TODO: center rect on screen
41 (new ConnectionWindow(rect, fInterfaceName))->Run();
/haiku/src/kits/tracker/
H A DMiniMenuField.cpp109 BRect rect(bounds);
110 rect.InsetBy(1, 1);
121 AddLine(rect.RightTop(), rect.RightBottom(), darkest);
122 AddLine(rect.RightBottom(), rect.LeftBottom(), darkest);
123 AddLine(rect.LeftBottom(), rect.LeftTop(), medium);
124 AddLine(rect.LeftTop(), rect
[all...]
/haiku/src/tests/kits/interface/balert/alert_manual_test/
H A DAlertManualTestApp.cpp18 BRect rect(150, 150, 600, 300);
19 fMainWindow = new AlertTestWindow(rect);
/haiku/src/add-ons/print/drivers/gutenprint/
H A DRectangle.h30 Rectangle(const BRect& rect) argument
32 left(static_cast<T>(rect.left)),
33 top(static_cast<T>(rect.top)),
34 right(static_cast<T>(rect.right)),
35 bottom(static_cast<T>(rect.bottom))
50 Rectangle<T>& operator=(const BRect& rect) { argument
51 left = static_cast<T>(rect.left);
52 top = static_cast<T>(rect.top);
53 right = static_cast<T>(rect.right);
54 bottom = static_cast<T>(rect
[all...]
H A DGPBand.cpp23 BRect rect = fValidRect; local
24 rect.OffsetTo(fWhere);
25 return rect;
/haiku/src/add-ons/network_settings/dialup/
H A DTextRequestDialog.cpp37 BRect rect = Bounds(); local
38 BView *backgroundView = new BView(rect, "background", B_FOLLOW_ALL_SIDES, 0);
40 rect.InsetBy(5, 5);
41 rect.bottom = rect.top;
45 BRect textRect(rect);
47 fTextView = new BTextView(rect, "TextView", textRect, B_FOLLOW_NONE,
57 rect.bottom += textHeight + 5;
62 rect.top = rect
[all...]
/haiku/src/kits/interface/
H A DHaikuControlLook.cpp108 HaikuControlLook::DrawButtonFrame(BView* view, BRect& rect, const BRect& updateRect, argument
112 _DrawButtonFrame(view, rect, updateRect, 0.0f, 0.0f, 0.0f, 0.0f, base,
118 HaikuControlLook::DrawButtonFrame(BView* view, BRect& rect, const BRect& updateRect, argument
122 _DrawButtonFrame(view, rect, updateRect, radius, radius, radius, radius,
128 HaikuControlLook::DrawButtonFrame(BView* view, BRect& rect, argument
134 _DrawButtonFrame(view, rect, updateRect, leftTopRadius, rightTopRadius,
141 HaikuControlLook::DrawButtonBackground(BView* view, BRect& rect, argument
145 _DrawButtonBackground(view, rect, updateRect, 0.0f, 0.0f, 0.0f, 0.0f,
151 HaikuControlLook::DrawButtonBackground(BView* view, BRect& rect, argument
155 _DrawButtonBackground(view, rect, updateRec
161 DrawButtonBackground(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, uint32 flags, uint32 borders, orientation orientation) argument
173 DrawMenuBarBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
219 DrawMenuFieldFrame(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, const rgb_color& background, uint32 flags, uint32 borders) argument
229 DrawMenuFieldFrame(BView* view, BRect& rect, const BRect& updateRect, float radius, const rgb_color& base, const rgb_color& background, uint32 flags, uint32 borders) argument
239 DrawMenuFieldFrame(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, const rgb_color& background, uint32 flags, uint32 borders) argument
252 DrawMenuFieldBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, bool popupIndicator, uint32 flags) argument
262 DrawMenuFieldBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
272 DrawMenuFieldBackground(BView* view, BRect& rect, const BRect& updateRect, float radius, const rgb_color& base, bool popupIndicator, uint32 flags) argument
282 DrawMenuFieldBackground(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, bool popupIndicator, uint32 flags) argument
294 DrawMenuBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
329 DrawMenuItemBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
369 DrawStatusBar(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, const rgb_color& barColor, float progressPosition) argument
422 DrawCheckBox(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags) argument
494 DrawRadioButton(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags) argument
575 DrawScrollBarBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, orientation orientation) argument
659 DrawScrollViewFrame(BView* view, BRect& rect, const BRect& updateRect, BRect verticalScrollBarFrame, BRect horizontalScrollBarFrame, const rgb_color& base, border_style borderStyle, uint32 flags, uint32 _borders) argument
743 DrawArrowShape(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 direction, uint32 flags, float tint) argument
831 DrawSliderBar(BView* view, BRect rect, const BRect& updateRect, const rgb_color& base, rgb_color leftFillColor, rgb_color rightFillColor, float sliderScale, uint32 flags, orientation orientation) argument
888 DrawSliderBar(BView* view, BRect rect, const BRect& updateRect, const rgb_color& base, rgb_color fillColor, uint32 flags, orientation orientation) argument
1035 DrawSliderThumb(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, orientation orientation) argument
1119 DrawSliderTriangle(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, orientation orientation) argument
1128 DrawSliderTriangle(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, const rgb_color& fill, uint32 flags, orientation orientation) argument
1246 DrawSliderHashMarks(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, int32 count, hash_mark_location location, uint32 flags, orientation orientation) argument
1336 DrawActiveTab(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders, uint32 side) argument
1515 DrawInactiveTab(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders, uint32 side) argument
1605 DrawSplitter(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, orientation orientation, uint32 flags, uint32 borders) argument
1720 DrawBorder(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, border_style borderStyle, uint32 flags, uint32 borders) argument
1744 DrawRaisedBorder(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
1765 DrawTextControlBorder(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders) argument
1835 DrawGroupFrame(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 borders) argument
1854 DrawLabel(BView* view, const char* label, BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags, const rgb_color* textColor) argument
1864 DrawLabel(BView* view, const char* label, BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags, const BAlignment& alignment, const rgb_color* textColor) argument
1996 DrawLabel(BView* view, const char* label, const BBitmap* icon, BRect rect, const BRect& updateRect, const rgb_color& base, uint32 flags, const BAlignment& alignment, const rgb_color* textColor) argument
2139 DrawButtonWithPopUpBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, uint32 flags, uint32 borders, orientation orientation) argument
2149 DrawButtonWithPopUpBackground(BView* view, BRect& rect, const BRect& updateRect, float radius, const rgb_color& base, uint32 flags, uint32 borders, orientation orientation) argument
2159 DrawButtonWithPopUpBackground(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, uint32 flags, uint32 borders, orientation orientation) argument
2174 _DrawButtonFrame(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, const rgb_color& background, float contrast, float brightness, uint32 flags, uint32 borders) argument
2344 _DrawOuterResessedFrame(BView* view, BRect& rect, const rgb_color& base, float contrast, float brightness, uint32 flags, uint32 borders) argument
2370 _DrawFrame(BView* view, BRect& rect, const rgb_color& left, const rgb_color& top, const rgb_color& right, const rgb_color& bottom, uint32 borders) argument
2406 _DrawFrame(BView* view, BRect& rect, const rgb_color& left, const rgb_color& top, const rgb_color& right, const rgb_color& bottom, const rgb_color& rightTop, const rgb_color& leftBottom, uint32 borders) argument
2457 _DrawButtonBackground(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, bool popupIndicator, uint32 flags, uint32 borders, orientation orientation) argument
2492 _DrawFlatButtonBackground(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& base, bool popupIndicator, uint32 flags, uint32 borders, orientation orientation) argument
2517 _DrawNonFlatButtonBackground(BView* view, BRect& rect, const BRect& updateRect, BRegion& clipping, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, bool popupIndicator, uint32 flags, uint32 borders, orientation orientation) argument
2673 _DrawPopUpMarker(BView* view, const BRect& rect, const rgb_color& base, uint32 flags) argument
2700 _DrawMenuFieldBackgroundOutside(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, bool popupIndicator, uint32 flags) argument
2743 _DrawMenuFieldBackgroundInside(BView* view, BRect& rect, const BRect& updateRect, float leftTopRadius, float rightTopRadius, float leftBottomRadius, float rightBottomRadius, const rgb_color& base, uint32 flags, uint32 borders) argument
3255 _DrawRoundBarCorner(BView* view, BRect& rect, const BRect& updateRect, const rgb_color& edgeLightColor, const rgb_color& edgeShadowColor, const rgb_color& frameLightColor, const rgb_color& frameShadowColor, const rgb_color& fillLightColor, const rgb_color& fillShadowColor, float leftInset, float topInset, float rightInset, float bottomInset, orientation orientation) argument
3475 _FillGradient(BView* view, const BRect& rect, const rgb_color& base, float topTint, float bottomTint, orientation orientation) argument
3486 _FillGlossyGradient(BView* view, const BRect& rect, const rgb_color& base, float topTint, float middle1Tint, float middle2Tint, float bottomTint, orientation orientation) argument
3498 _MakeGradient(BGradientLinear& gradient, const BRect& rect, const rgb_color& base, float topTint, float bottomTint, orientation orientation) const argument
3513 _MakeGlossyGradient(BGradientLinear& gradient, const BRect& rect, const rgb_color& base, float topTint, float middle1Tint, float middle2Tint, float bottomTint, orientation orientation) const argument
3531 _MakeButtonGradient(BGradientLinear& gradient, BRect& rect, const rgb_color& base, uint32 flags, orientation orientation) const argument
[all...]
/haiku/src/apps/pulse/
H A DMiniPulseView.h19 MiniPulseView(BRect rect, const char *name, Prefs *prefs);
20 MiniPulseView(BRect rect, const char *name);
23 void Draw(BRect rect);
/haiku/src/tests/servers/app/hide_and_show/
H A DHideAndShow.cpp38 BRect rect(Bounds());
39 rect.left += 20;
40 rect.right -= 20;
41 rect.top = 100;
42 rect.bottom = 200;
43 BTextView* view = new BTextView(Bounds(), "", rect, B_FOLLOW_ALL,
86 BRect rect = Bounds();
87 rect.left += 20;
88 rect.right -= 20;
89 rect
[all...]
/haiku/src/preferences/printers/
H A DTestPageView.h18 TestPageView(BRect rect, PrinterItem* printer);
21 void DrawAfterChildren(BRect rect);
/haiku/src/tests/kits/game/chart/
H A DChartView.cpp18 ChartView::ChartView(BRect rect) argument
20 BView(rect, "", B_FOLLOW_ALL, B_WILL_DRAW)
27 ChartView::Draw(BRect rect) argument
34 DrawBitmap(window->fOffscreen, rect, rect);
49 InstantView::InstantView(BRect rect) argument
51 BView(rect, "", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW)
61 InstantView::Draw(BRect rect) argument
/haiku/src/apps/debugger/user_interface/gui/value/
H A DTableCellValueRendererUtils.cpp18 TableCellValueRendererUtils::DrawString(BView* view, BRect rect, argument
31 rect.Width() - 2 * kTextMargin + 2);
40 x = rect.left + kTextMargin;
44 x = rect.left + (rect.Width() - view->StringWidth(string)) / 2;
48 x = rect.right - kTextMargin - view->StringWidth(string);
53 float y = rect.top
54 + (rect.Height() - (fontHeight.ascent + fontHeight.descent
/haiku/src/preferences/media/
H A DMedia.cpp27 BRect rect(32, 64, 637, 462);
44 const char* scanString = " rect = %li,%li,%li,%li";
46 if (c - a >= rect.IntegerWidth()) {
47 rect.left = a;
48 rect.right = c;
50 if (d - b >= rect.IntegerHeight()) {
51 rect.top = b;
52 rect.bottom = d;
60 fWindow = new MediaWindow(rect);
/haiku/src/apps/expander/
H A DDirectoryFilePanel.cpp71 BRect rect; local
73 rect = cancel->Frame();
75 rect = background->Bounds();
76 rect.left = rect.right;
77 rect.top = rect.bottom - 35;
78 rect.bottom -= 10;
81 rect.right = rect
[all...]
/haiku/src/tests/servers/app/transformation/
H A Dmain.cpp103 BRect rect(view->Bounds());
104 rect.OffsetTo(B_ORIGIN);
106 rect.InsetBy(rect.Width() / 3, rect.Height() / 3);
108 rect.left + rect.Width() / 2,
109 rect.top + rect.Height() / 2);
117 view->FillRect(rect);
[all...]
/haiku/src/servers/app/drawing/Painter/
H A DPainter.h157 // strokes a one pixel wide solid rect, no blending
165 // fills a solid rect with color c, no blending
169 // fills a rect with a linear gradient, the caller should be
176 // fills a solid rect with color c, no blending, no clipping
191 void AlignEllipseRect(BRect* rect,
248 inline BRect TransformAndClipRect(BRect rect) const;
249 inline BRect ClipRect(BRect rect) const;
250 inline BRect TransformAlignAndClipRect(BRect rect) const;
251 inline BRect AlignAndClipRect(BRect rect) const;
252 inline BRect AlignRect(BRect rect) cons
[all...]

Completed in 270 milliseconds

1234567891011>>