/haiku/src/apps/packageinstaller/ |
H A D | PackageImageViewer.cpp | 63 if (image.Width() > (frame.Width() - 100.0f)) in AttachedToWindow() 64 image.right = frame.Width() - 100.0f; in AttachedToWindow() 68 ResizeTo(image.Width(), image.Height()); in AttachedToWindow() 80 DrawString(message, BPoint((Bounds().Width() - width) / 2.0f, 30.0f)); in Draw() 104 ResizeTo(fBackground->Bounds().Width(), fBackground->Bounds().Height()); in PackageImageViewer() 108 MoveTo((frame.Width() - Bounds().Width()) / 2.0f, in PackageImageViewer()
|
/haiku/src/apps/icon-o-matic/generic/gui/ |
H A D | Group.cpp | 33 FrameResized(Bounds().Width(), Bounds().Height()); in AttachedToWindow() 53 *width = r.Width(); in GetPreferredSize() 69 FrameResized(Bounds().Width(), Bounds().Height()); in SetSpacing() 81 r.right = r.left + child->Bounds().Width() + 2 * fSpacing; in _LayoutControls() 105 minWidth += child->Bounds().Width() + 1 + fSpacing; in _MinFrame() 114 child->Bounds().Width() + 1 + fInset * 2.0); in _MinFrame() 131 frame.left = (frame.left + frame.right) / 2.0 - view->Bounds().Width() / 2.0; in _LayoutControl() 133 float width = resizeWidth ? frame.Width() : view->Bounds().Width(); in _LayoutControl()
|
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/components/hardware/ |
H A D | hwvalid.c | 348 UINT32 Width) in AcpiHwReadPort() argument 364 Status = AcpiHwValidateIoRequest (Address, Width); in AcpiHwReadPort() 367 Status = AcpiOsReadPort (Address, Value, Width); in AcpiHwReadPort() 381 for (i = 0, *Value = 0; i < Width; i += 8) in AcpiHwReadPort() 423 UINT32 Width) in AcpiHwWritePort() argument 438 Status = AcpiHwValidateIoRequest (Address, Width); in AcpiHwWritePort() 441 Status = AcpiOsWritePort (Address, Value, Width); in AcpiHwWritePort() 455 for (i = 0; i < Width; i += 8) in AcpiHwWritePort()
|
/haiku/src/kits/tracker/ |
H A D | DraggableContainerIcon.cpp | 61 SetExplicitMinSize(BSize(iconSize.Width() + 5, iconSize.Height())); in DraggableContainerIcon() 62 SetExplicitMaxSize(BSize(iconSize.Width() + 5, B_SIZE_UNSET)); in DraggableContainerIcon() 127 BRect rect(0, 0, std::max(Bounds().Width(), in MouseMoved() 152 float hIconOffset = (rect.Width() - Bounds().Width()) / 2; in MouseMoved() 158 if (view->StringWidth(model->Name()) > rect.Width()) { in MouseMoved() 160 rect.Width() - 5); in MouseMoved() 165 - Bounds().Width()) / 2; in MouseMoved() 213 float iconOffsetX = (Bounds().Width() - fIconSize.Width()) / 2; in Draw()
|
H A D | BackgroundImage.cpp | 212 (viewBounds.Width() - bitmapBounds.Width()) / 2, in Show() 224 viewBounds.Width() + overlap, viewBounds.Height()); in Show() 229 viewBounds.Width(), viewBounds.Height() + overlap); in Show() 243 (viewBounds.Width() - bitmapBounds.Width()) / 2, in Show() 261 return rect.Width() / rect.Height(); in BRectRatio() 268 return ((hostRect.Height() / resizedRect.Height() * resizedRect.Width()) in BRectHorizontalOverlap() 269 - hostRect.Width()) / 2; in BRectHorizontalOverlap() 276 return ((hostRect.Width() / resizedRect.Width() * resizedRect.Height()) in BRectVerticalOverlap() 367 (viewBounds.Width() - bitmapBounds.Width()) / 2, in ScreenChanged()
|
H A D | TextWidget.cpp | 116 return fText->Width(pose); in TextWidth() 138 result.right = result.left + column->Width(); in ColumnRect() 155 viewWidth = std::min(column->Width(), textWidth); in CalcRectCommon() 167 + roundf((column->Width() - viewWidth) / 2); in CalcRectCommon() 175 result.right = poseLoc.x + column->Width(); in CalcRectCommon() 213 return CalcRectCommon(poseLoc, column, view, fText->Width(view)); in CalcRect() 230 if (result.Width() < kWidthMargin) { in CalcClickRect() 233 if (column != NULL && column->Width() < kWidthMargin) in CalcClickRect() 234 result.right = result.left + column->Width(); in CalcClickRect() 349 bool tooWide = textView->TextRect().Width() > maxWidth; in TextViewKeyDownFilter() [all …]
|
/haiku/src/preferences/screen/ |
H A D | RefreshWindow.cpp | 54 fRefreshSlider->ResizeTo(rect.Width(), height); in RefreshWindow() 60 doneButton->MoveTo(Bounds().Width() - doneButton->Bounds().Width() - 8, in RefreshWindow() 68 button->MoveBy(-button->Bounds().Width() - 10, 0); in RefreshWindow() 73 width = stringView->Bounds().Width() + 100; in RefreshWindow() 74 if (width < Bounds().Width()) in RefreshWindow() 75 width = Bounds().Width(); in RefreshWindow()
|
/haiku/src/apps/icon-o-matic/generic/gui/popup_control/ |
H A D | PopupControl.cpp | 88 leftLocation.x -= fPopupWindow->Frame().Width() + 1.0; in ShowPopup() 90 float totalWidth = Bounds().Width() + fPopupWindow->Frame().Width(); in ShowPopup() 101 if (frame.Width() > dest.Width()) in ShowPopup() 102 frame.right = frame.left + dest.Width(); in ShowPopup() 123 fPopupWindow->ResizeTo(frame.Width(), frame.Height()); in ShowPopup()
|
/haiku/src/apps/haikudepot/ui_generic/ |
H A D | BitmapView.cpp | 42 if (bitmapBounds.Width() <= 0.0f || bitmapBounds.Height() <= 0.0f) in Draw() 48 float hScale = bounds.Width() / bitmapBounds.Width(); in Draw() 54 float width = bitmapBounds.Width() * scale; in Draw() 66 + (bounds.Width() - width) / 2.0f); in Draw() 97 size.width = bounds.Width(); in MinSize()
|
/haiku/src/apps/sudoku/ |
H A D | ProgressWindow.cpp | 44 fStatusBar->ResizeTo(rect.Width(), height); in ProgressWindow() 53 button->MoveBy((rect.Width() - button->Bounds().Width()) / 2, 0); in ProgressWindow() 59 ResizeTo(Bounds().Width(), height + 8); in ProgressWindow() 80 MoveTo(frame.left + (frame.Width() - Bounds().Width()) / 2, in _Center()
|
/haiku/src/apps/deskbar/ |
H A D | BarMenuTitle.cpp | 134 float widthOffset = rintf((frame.Width() - iconRect.Width()) / 2); in DrawContent() 145 if (iconRect.Width() > frame.Width()) { in DrawContent() 146 float diff = iconRect.Width() - frame.Width(); in DrawContent()
|
/haiku/src/tests/kits/interface/flatten_picture/ |
H A D | TestResultItem.cpp | 58 owner->MovePenBy(fBitmapSize.Width() + kDistance, 0); in DrawItem() 63 owner->MovePenBy(fBitmapSize.Width() + kDistance, 0); in DrawItem() 68 owner->MovePenBy(fBitmapSize.Width() + kDistance, 0); in DrawItem() 74 owner->MovePenBy(fBitmapSize.Width() + kDistance, 0); in DrawItem() 109 width += 3 * fBitmapSize.Width(); in Update() 117 if (width > Width()) in Update() 168 owner->MovePenTo(itemRect.left + 1 + (fRect.Width() + kDistance) * c, baseLine); in DrawItem() 194 if (width > Width()) in Update()
|
/haiku/src/apps/resedit/ |
H A D | ImageEditor.cpp | 53 r.OffsetBy(r.Width() + 10, 0); in ImageEditor() 62 r.OffsetTo( (Bounds().Width() - r.Width()) / 2, fNameBox->Frame().bottom + 10); in ImageEditor() 80 fOK->MoveTo(Bounds().right - fOK->Bounds().Width() - 10, in ImageEditor() 84 r.OffsetBy(-r.Width() - 10, 0); in ImageEditor() 110 fImageView->ResizeTo(r.Width(), r.Height()); in MessageReceived() 121 fImageView->MoveTo( (w - fImageView->Bounds().Width()) / 2, in FrameResized()
|
/haiku/src/apps/cortex/ParameterView/ |
H A D | ParameterContainerView.cpp | 76 b.Width() + B_V_SCROLL_BAR_WIDTH, in ParameterContainerView() 137 if(width > m_boundsRect.Width()) { in FrameResized() 171 float width = Bounds().Width() - B_V_SCROLL_BAR_WIDTH; in _updateScrollBars() 174 D_INTERNAL((" -> dataRect.Width() = %f scrollView.Width() = %f\n", m_dataRect.Width(), width)); in _updateScrollBars() 175 if (width > m_dataRect.Width()) { in _updateScrollBars() 183 m_hScroll->SetProportion(width / m_dataRect.Width()); in _updateScrollBars()
|
/haiku/src/kits/interface/ |
H A D | ScrollView.cpp | 91 fPreviousWidth = uint16(Bounds().Width()); in BScrollView() 175 fPreviousWidth = uint16(Bounds().Width()); in AllUnarchived() 278 float delta = size.Width() - bounds.Width(), in FrameResized() 279 proportion = bounds.Width() / size.Width(); in FrameResized() 285 bounds.Width()); in FrameResized() 312 fPreviousHeight - fHorizontalScrollBar->Frame().Width(), in FrameResized() 319 if (bounds.Width() > fPreviousWidth) { in FrameResized() 325 } else if (bounds.Width() < fPreviousWidth) { in FrameResized() 347 fPreviousWidth = uint16(bounds.Width()); in FrameResized() 615 target->ResizeTo(innerFrame.Width() - 1, innerFrame.Height() - 1); in SetTarget() [all …]
|
H A D | ColumnTypes.cpp | 50 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawTitle() 68 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawString() 164 BStringField::Width() in Width() function in BStringField 206 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawField() 208 float fieldWidth = field->Width(); in DrawField() 274 BDateField::Width() in Width() function in BDateField 323 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawField() 326 if (field->Width() != rect.Width()) { in DrawField() 424 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawField() 533 float width = rect.Width() - (2 * kTEXT_MARGIN); in DrawField() [all …]
|
/haiku/src/apps/haiku3d/texture/ |
H A D | BitmapTexture.cpp | 41 (int) bitmap->Bounds().Width() + 1, in _Load() 48 fId, (int32) bitmap->Bounds().Width(), in _Load() 50 8 * bitmap->BytesPerRow() / (int)bitmap->Bounds().Width()); in _Load()
|
/haiku/src/preferences/backgrounds/ |
H A D | BackgroundImage.cpp | 275 float x_ratio = viewBounds.Width() / mode.virtual_width; in Show() 294 (viewBounds.Width() - destinationBitmapBounds.Width()) / 2, in Show() 307 viewBounds.Width() + overlap, viewBounds.Height()); in Show() 312 viewBounds.Width(), viewBounds.Height() + overlap); in Show() 329 (viewBounds.Width() - destinationBitmapBounds.Width()) / 2, in Show() 352 return rect.Width() / rect.Height(); in BRectRatio() 359 return ((hostRect.Height() / resizedRect.Height() * resizedRect.Width()) in BRectHorizontalOverlap() 360 - hostRect.Width()) / 2; in BRectHorizontalOverlap() 367 return ((hostRect.Width() / resizedRect.Width() * resizedRect.Height()) in BRectVerticalOverlap()
|
/haiku/src/apps/cortex/RouteApp/ |
H A D | StatusView.cpp | 122 allocBackBitmap(frame.Width(), frame.Height()); in StatusView() 148 allocBackBitmap(Bounds().Width(), Bounds().Height()); in AttachedToWindow() 184 if (be_plain_font->StringWidth(text.String()) > Bounds().Width() - 25.0) { in FrameResized() 186 Bounds().Width() - 25.0); in FrameResized() 261 if ((Bounds().Width() + x) <= 16.0) { in MouseMoved() 265 && ((m_scrollBar->Bounds().Width() - x) <= (6 * B_V_SCROLL_BAR_WIDTH))) { in MouseMoved() 297 D_OPERATION(("StatusView::drawInto(%.1f, %.1f)\n", r.Width(), r.Height())); in drawInto() 378 if (be_plain_font->StringWidth(title.String()) > Bounds().Width() - 25.0) { in setMessage() 380 Bounds().Width() - 25.0); in setMessage() 431 if (be_plain_font->StringWidth(text.String()) > Bounds().Width() - 25.0) { in setErrorMessage() [all …]
|
/haiku/src/preferences/appearance/ |
H A D | CurView.cpp | 99 bmpview->MoveTo( (Bounds().Width()-bmpview->Bounds().Width())/2,30); in CurView() 103 rect.left=(Bounds().Width()-200)/2; in CurView() 129 cvrect.OffsetTo( (Bounds().Width()-200)/2,scrollview->Frame().bottom+20); in CurView() 469 if(bitmap->Bounds().Height() > bitmap->Bounds().Width()) in MessageReceived() 471 drawrect.right=(r.Height()*bitmap->Bounds().Width())/bitmap->Bounds().Height(); in MessageReceived() 478 drawrect.bottom=(r.Width()*bitmap->Bounds().Height())/bitmap->Bounds().Width(); in MessageReceived() 479 drawrect.right=r.Width(); in MessageReceived()
|
/haiku/src/apps/haikudepot/util/ |
H A D | RatingUtils.cpp | 32 return 2.0 * fStarSize.Width() / 16.0; in SpacingBetweenStars() 40 return BPoint(indexf * (fStarSize.Width() + SpacingBetweenStars()), 0.0); in LocationOfStarAtIndex() 47 return BSize((fStarSize.Width() * 5) + (SpacingBetweenStars() * 4), fStarSize.Height()); in Size() 93 shadeOverRect.left = ceilf(rect.right - (1.0 - (value / 5.0f)) * rect.Width()); in Draw()
|
/haiku/src/preferences/screensaver/ |
H A D | Utility.h | 11 return BPoint(area.Width() * x + area.left, area.Height() * y + area.top); in scale_direct() 18 return BRect(area.Width() * x1 + area.left, area.Height() * y1 + area.top, in scale_direct() 19 area.Width()* x2 + area.left, area.Height() * y2 + area.top); in scale_direct()
|
/haiku/src/apps/pulse/ |
H A D | PrefsWindow.cpp | 70 fTabView->ResizeTo(deskbarView->Bounds().Width() + 16.0f, in PrefsWindow() 77 okButton->MoveTo(Bounds().Width() - 8.0f - okButton->Bounds().Width(), in PrefsWindow() 85 defaultsButton->MoveBy(-defaultsButton->Bounds().Width() - 10.0f, 0.0f); in PrefsWindow() 91 ResizeTo(fTabView->Frame().Width(), fTabView->Frame().bottom + 16.0f in PrefsWindow()
|
/haiku/src/apps/processcontroller/ |
H A D | PCWindow.cpp | 52 SetSizeLimits(rect.Width() + 21, rect.Width() + 21, 15 + 21, 15 + 21); in PCWindow() 54 rect.OffsetTo((Bounds().Width() - 16) / 2, (Bounds().Height() - 16) / 2); in PCWindow()
|
/haiku/src/tests/servers/app/transformation/ |
H A D | main.cpp | 106 rect.InsetBy(rect.Width() / 3, rect.Height() / 3); in Draw() 108 rect.left + rect.Width() / 2, in Draw() 149 rect.left = (rect.Width() - fBitmap->Bounds().Width()) / 2; in Draw() 151 rect.right = rect.left + fBitmap->Bounds().Width(); in Draw() 155 rect.left + rect.Width() / 2, in Draw() 197 rect.InsetBy(rect.Width() / 3, rect.Height() / 3); in Draw() 199 rect.left + rect.Width() / 2, in Draw() 215 float radius = std::min(rect.Width() / 5, rect.Height() / 5); in Draw() 316 float width = view->Bounds().Width(); in Draw()
|