Searched refs:bounds (Results 1 - 25 of 293) sorted by relevance

1234567891011>>

/haiku/src/tests/servers/app/newClipping/
H A DWinBorder.cpp35 void WinBorder::set_decorator_region(BRect bounds) argument
41 fDecRegion.Include(BRect(bounds.left-4, bounds.top-4, bounds.right+4, bounds.top-1));
42 fDecRegion.Include(BRect(bounds.left-4, bounds.bottom+1, bounds.right+4, bounds.bottom+4));
43 fDecRegion.Include(BRect(bounds
[all...]
/haiku/src/tests/kits/interface/layout/widget_layout_test/
H A DTestView.cpp44 BRect bounds(Bounds());
45 StrokeRect(bounds);
46 StrokeLine(bounds.LeftTop(), bounds.RightBottom());
47 StrokeLine(bounds.LeftBottom(), bounds.RightTop());
/haiku/src/tests/add-ons/print/pdf/bezierbounds/
H A DBezierBounds.cpp37 BRect bounds(FLT_MAX, FLT_MAX, -FLT_MIN, -FLT_MIN);
39 bounds.left = min_c(bounds.left, points->x);
40 bounds.right = max_c(bounds.right, points->x);
41 bounds.top = min_c(bounds.top, points->y);
42 bounds.bottom = max_c(bounds.bottom, points->y);
44 return bounds;
81 BRect bounds = BezierBounds(points, numOfPoints); local
[all...]
/haiku/src/apps/haikudepot/ui_generic/
H A DBitmapView.cpp35 BRect bounds(Bounds());
47 float hScale = bounds.Width() / bitmapBounds.Width();
48 float vScale = bounds.Height() / bitmapBounds.Height();
60 bounds.left = floorf(bounds.right - width);
64 bounds.left = floorf(bounds.left
65 + (bounds.Width() - width) / 2.0f);
72 bounds.top = floorf(bounds
95 BRect bounds = fBitmap->Bounds(); local
[all...]
/haiku/headers/private/interface/
H A DShapePrivate.h70 BRect bounds; local
73 return bounds;
76 bounds.left = ptList[0].x;
77 bounds.top = ptList[0].y;
78 bounds.right = ptList[0].x;
79 bounds.bottom = ptList[0].y;
82 if (bounds.left > ptList[i].x)
83 bounds.left = ptList[i].x;
85 if (bounds.top > ptList[i].y)
86 bounds
[all...]
/haiku/src/preferences/appearance/
H A DColorPreview.cpp69 BRect bounds(Bounds());
72 AddLine(BPoint(bounds.left, bounds.bottom),
73 BPoint(bounds.left, bounds.top), shadow);
74 AddLine(BPoint(bounds.left + 1.0, bounds.top),
75 BPoint(bounds.right, bounds.top), shadow);
76 AddLine(BPoint(bounds
[all...]
/haiku/src/apps/terminal/
H A DColorPreview.cpp69 BRect bounds(Bounds());
72 AddLine(BPoint(bounds.left, bounds.bottom),
73 BPoint(bounds.left, bounds.top), shadow);
74 AddLine(BPoint(bounds.left + 1.0, bounds.top),
75 BPoint(bounds.right, bounds.top), shadow);
76 AddLine(BPoint(bounds
[all...]
/haiku/src/apps/pulse/
H A DCPUButton.cpp98 BRect bounds = Bounds(); local
100 bounds.bottom -= 4;
101 bounds.right -= 4;
103 bounds.bottom -= 7;
104 bounds.right -= 7;
106 BRect color_rect(bounds);
112 FillRect(bounds);
120 BPoint end(bounds.right, 0);
122 end.Set(0, bounds.bottom);
131 end.Set(bounds
[all...]
/haiku/src/kits/interface/
H A DSeparatorItem.cpp94 BRect bounds = Frame();
99 const float startLeft = bounds.left + (floor(bounds.Width())) / 2;
101 menu->StrokeLine(BPoint(startLeft, bounds.top + 1.0f),
102 BPoint(startLeft, bounds.bottom - 1.0f));
104 menu->StrokeLine(BPoint(startLeft + 1.0f, bounds.top + 1.0f),
105 BPoint(startLeft + 1.0f, bounds.bottom - 1.0f));
107 const float startTop = bounds.top + (floor(bounds.Height())) / 2;
109 menu->StrokeLine(BPoint(bounds
[all...]
/haiku/src/apps/serialconnect/libvterm/src/
H A Drect.h17 /* Clip the dst to ensure it does not step outside of bounds */
18 static void rect_clip(VTermRect *dst, VTermRect *bounds) argument
20 if(dst->start_row < bounds->start_row) dst->start_row = bounds->start_row;
21 if(dst->start_col < bounds->start_col) dst->start_col = bounds->start_col;
22 if(dst->end_row > bounds->end_row) dst->end_row = bounds->end_row;
23 if(dst->end_col > bounds->end_col) dst->end_col = bounds
[all...]
/haiku/src/apps/icon-o-matic/generic/gui/scrollview/
H A DScrollableView.cpp32 BRect bounds(view->Bounds());
33 view->CopyBits(bounds.OffsetByCopy(newOffset - oldOffset), bounds);
/haiku/src/kits/tracker/
H A DMiniMenuField.cpp98 BRect bounds(Bounds());
99 bounds.OffsetBy(1, 2);
100 bounds.right--;
101 bounds.bottom -= 2;
105 StrokeRect(bounds);
107 bounds.right--;
108 bounds.bottom--;
109 BRect rect(bounds);
125 AddLine(bounds.LeftBottom() + BPoint(2, 0), bounds
[all...]
H A DDialogPane.cpp85 BRect bounds(Bounds());
99 point.x = bounds.right - labelDist - StringWidth(label);
104 point.y = (bounds.top + bounds.bottom
126 AddLine(BPoint(bounds.left + 2, bounds.bottom - 1),
127 BPoint(bounds.right - 2, bounds.bottom - 1), markColor);
128 AddLine(BPoint(bounds.left + 2, bounds
[all...]
/haiku/src/add-ons/accelerants/et6x00/
H A DSetDisplayMode.c30 display_mode bounds, target; local
35 target = bounds = *mode_to_set;
36 if (PROPOSE_DISPLAY_MODE(&target, &bounds, &bounds) != B_OK) /* ==B_ERROR???/// */
/haiku/src/tests/servers/app/text_rendering/
H A Dmain.cpp8 View(BRect bounds) argument
9 : BView(bounds, "test", B_FOLLOW_ALL, B_WILL_DRAW)
18 const BRect bounds = Bounds(); local
24 while (size < 48 && y - size < bounds.bottom) {
/haiku/src/add-ons/screen_savers/spider/
H A DPolygon.h22 Polygon(BRect bounds, BList points);
23 Polygon(BRect bounds, int32 vertices);
H A DPolygon.cpp15 Polygon::Polygon(BRect bounds, int32 vertices) argument
17 fBounds(bounds)
19 float min = bounds.Width() / 64000.0;
20 float max = bounds.Width() / 320.0;
23 pv->point.x = bounds.left + fmod(lrand48(), bounds.Width());
24 pv->point.y = bounds.top + fmod(lrand48(), bounds.Height());
32 Polygon::Polygon(BRect bounds, BList points) argument
34 fBounds(bounds)
[all...]
/haiku/src/tests/servers/app/window_invalidation/
H A DWindowInvalidation.cpp116 BRect bounds; local
118 bounds = Bounds();
119 bounds.right += rand() % 21 - 10;
120 bounds.bottom += rand() % 21 - 10;
121 } while (bounds.Width() > 400 || bounds.Height() > 400
122 || bounds.Width() < 50 || bounds.Height() < 50);
124 ResizeTo(bounds.Width() + 1, bounds
[all...]
/haiku/src/kits/shared/
H A DBitmapButton.cpp75 BRect bounds(Bounds());
80 be_control_look->DrawButtonBackground(this, bounds, updateRect, base,
84 StrokeLine(bounds.LeftBottom(), bounds.RightBottom());
85 bounds.bottom--;
86 be_control_look->DrawMenuBarBackground(this, bounds, updateRect, base,
102 floorf((bounds.left + bounds.right
104 floorf((bounds.top + bounds
[all...]
/haiku/src/apps/networkstatus/
H A DWirelessNetworkMenuItem.cpp92 BRect bounds = Frame(); local
93 bounds.left = bounds.right - 4 - bounds.Height();
94 bounds.right -= 4;
95 bounds.bottom -= 2;
97 RadioView::Draw(Menu(), bounds, fNetwork.signal_strength, local
/haiku/src/apps/icon-o-matic/transformable/
H A DTransformPointsBox.cpp36 BRect bounds(0, 0, -1, -1);
41 // make a copy of the points as they are and calculate bounds
49 bounds = dummy;
51 bounds = bounds | dummy;
55 bounds = bounds | dummy;
58 bounds = bounds | dummy;
65 SetBox(bounds);
[all...]
/haiku/src/add-ons/print/drivers/pcl6/
H A DRasterizer.cpp26 BRect bounds = bitmap->Bounds(); local
28 fBounds.left = (int)bounds.left;
29 fBounds.top = (int)bounds.top;
30 fBounds.right = (int)bounds.right;
31 fBounds.bottom = (int)bounds.bottom;
/haiku/src/apps/showimage/
H A DSelectionBox.cpp41 SelectionBox::SetBounds(ShowImageView* view, BRect bounds) argument
43 view->ConstrainToImage(bounds);
45 if (fBounds == bounds)
50 fBounds = bounds;
85 BRect bounds(fBounds);
87 if (where.x >= bounds.left)
88 bounds.right = where.x;
90 bounds.left = where.x;
92 if (where.y >= bounds.top)
93 bounds
[all...]
/haiku/src/tests/servers/app/benchmark/
H A DTest.cpp28 BRect bounds = view->Bounds(); local
29 fClippingRegion.Set(bounds);
30 BRect grid(bounds.InsetByCopy(40, 40));
/haiku/src/apps/mediaplayer/interface/
H A DSubtitleBitmap.h23 void SetVideoBounds(BRect bounds);
31 void _InsertText(BRect& bounds,

Completed in 325 milliseconds

1234567891011>>