/haiku/src/apps/packageinstaller/ |
H A D | PackageImageViewer.cpp | 65 if (image.Height() > (frame.Height() - 100.0f)) in AttachedToWindow() 66 image.bottom = frame.Height() - 100.f; in AttachedToWindow() 68 ResizeTo(image.Width(), image.Height()); in AttachedToWindow() 104 ResizeTo(fBackground->Bounds().Width(), fBackground->Bounds().Height()); in PackageImageViewer() 109 (frame.Height() - Bounds().Height()) / 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() 55 *height = r.Height(); in GetPreferredSize() 69 FrameResized(Bounds().Width(), Bounds().Height()); in SetSpacing() 88 r.bottom = r.top + child->Bounds().Height() + 2 * fSpacing; in _LayoutControls() 107 child->Bounds().Height() + 1 + fInset * 2.0); in _MinFrame() 112 minHeight += child->Bounds().Height() + 1 + fSpacing; in _MinFrame() 128 frame.top = (frame.top + frame.bottom) / 2.0 - view->Bounds().Height() / 2.0; in _LayoutControl() 134 float height = resizeHeight ? frame.Height() : view->Bounds().Height(); in _LayoutControl()
|
/haiku/src/kits/tracker/ |
H A D | BackgroundImage.cpp | 213 (viewBounds.Height() - bitmapBounds.Height()) / 2); in Show() 224 viewBounds.Width() + overlap, viewBounds.Height()); in Show() 229 viewBounds.Width(), viewBounds.Height() + overlap); in Show() 244 (viewBounds.Height() - bitmapBounds.Height()) / 2); in Show() 261 return rect.Width() / rect.Height(); in BRectRatio() 268 return ((hostRect.Height() / resizedRect.Height() * resizedRect.Width()) in BRectHorizontalOverlap() 276 return ((hostRect.Width() / resizedRect.Width() * resizedRect.Height()) in BRectVerticalOverlap() 277 - hostRect.Height()) / 2; in BRectVerticalOverlap() 368 (viewBounds.Height() - bitmapBounds.Height()) / 2); in ScreenChanged()
|
/haiku/src/servers/mail/ |
H A D | ErrorLogWindow.cpp | 36 ChildAt(i)->ResizeTo(w, ChildAt(i)->Frame().Height()); in FrameResized() 38 add_next_at += ChildAt(i)->Bounds().Height(); in FrameResized() 84 panel->add_next_at += newError->Bounds().Height(); in AddError() 88 if (panel->add_next_at > Frame().Height()) { in AddError() 91 bar->SetRange(0, panel->add_next_at - Frame().Height()); in AddError() 92 bar->SetSteps(1, Frame().Height()); in AddError() 93 bar->SetProportion(Frame().Height() / panel->add_next_at); in AddError() 133 bar->SetRange(0, panel->add_next_at - Frame().Height()); in FrameResized() 134 bar->SetSteps(1, Frame().Height()); in FrameResized() 135 bar->SetProportion(Frame().Height() / panel->add_next_at); in FrameResized() [all …]
|
/haiku/src/apps/icon-o-matic/generic/gui/popup_control/ |
H A D | PopupControl.cpp | 89 leftLocation.y -= fPopupWindow->Frame().Height() + 1.0; in ShowPopup() 91 float totalHeight = Bounds().Height() + fPopupWindow->Frame().Height(); in ShowPopup() 103 if (frame.Height() > dest.Height()) in ShowPopup() 104 frame.bottom = frame.top + dest.Height(); 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() 49 float vScale = bounds.Height() / bitmapBounds.Height(); in Draw() 55 float height = bitmapBounds.Height() * scale; in Draw() 78 + (bounds.Height() - height) / 2.0f); in Draw() 98 size.height = bounds.Height(); in MinSize()
|
/haiku/src/tests/servers/app/newerClipping/drawing/ |
H A D | RenderingBuffer.h | 22 virtual uint32 Height() const = 0; 25 { return Height() * BytesPerRow(); } in BitsLength() 30 Height() - 1); } in Bounds()
|
/haiku/src/apps/soundrecorder/ |
H A D | UpDownButton.cpp | 42 if((Bounds().top + Bounds().Height()/2) > (fTrackingY + 3)) in Draw() 44 else if((Bounds().top + Bounds().Height()/2) < (fTrackingY - 3)) in Draw() 66 fTrackingY = (Bounds().top + Bounds().Height()/2); in MouseDown() 93 if((Bounds().top + Bounds().Height()/2) > (fTrackingY + 3)) in MouseUp() 95 else if((Bounds().top + Bounds().Height()/2) < (fTrackingY - 3)) in MouseUp()
|
/haiku/src/servers/app/ |
H A D | RenderingBuffer.h | 24 virtual uint32 Height() const = 0; 27 { return Height() * BytesPerRow(); } in BitsLength() 31 Height() - 1); } in Bounds()
|
/haiku/src/apps/mediaplayer/interface/ |
H A D | SeekSlider.cpp | 60 float height = ceilf(frame.Height() * fScale); in ThumbFrame() 134 *_height += scaledThumbFrame.Height() - unscaledThumbFrame.Height(); in GetPreferredSize() 146 size.height += scaledThumbFrame.Height() - unscaledThumbFrame.Height(); in MinSize() 159 size.height += scaledThumbFrame.Height() - unscaledThumbFrame.Height(); in MaxSize()
|
H A D | PlayPauseButton.cpp | 61 float spacing = pauseBounds.Height() / 4; in Draw() 65 offset.y -= pauseBounds.Height() / 2; in Draw() 90 offset.y += playBounds.Height(); in Draw() 99 offset.y -= playBounds.Height(); in Draw() 111 offset.y += playBounds.Height(); in Draw() 132 size.height = ceilf(fPauseSymbol->Bounds().Height() * 2.5f); in MinSize()
|
/haiku/src/tests/kits/interface/bprintjob/ |
H A D | PrintTestView.cpp | 12 font.SetSize(Bounds().Height()/10); in Draw() 13 font.SetShear(Bounds().Height()/10); in Draw() 16 DrawString("Haiku", 8, BPoint(Bounds().Width()/2,Bounds().Height()/2)); in Draw()
|
/haiku/src/apps/midiplayer/ |
H A D | ScopeView.cpp | 152 StrokeLine(BPoint(0, Bounds().Height() / 2), in DrawDisabled() 153 BPoint(Bounds().Width(), Bounds().Height() / 2)); in DrawDisabled() 162 StrokeLine(BPoint(0, Bounds().Height() / 2), in DrawStopped() 163 BPoint(Bounds().Width(), Bounds().Height() / 2)); in DrawStopped() 171 int32 height = (int32) Bounds().Height(); in DrawPlaying() 209 float y = height.ascent + (Bounds().Height() - stringHeight) / 2; in DrawText()
|
/haiku/src/apps/cortex/ParameterView/ |
H A D | ParameterContainerView.cpp | 77 b.Height() + B_H_SCROLL_BAR_HEIGHT); in ParameterContainerView() 132 if(height > m_boundsRect.Height()) { in FrameResized() 155 float height = Bounds().Height() - B_H_SCROLL_BAR_HEIGHT; in _updateScrollBars() 158 …D_INTERNAL((" -> dataRect.Height() = %f scrollView.Height() = %f\n", m_dataRect.Height(), height… in _updateScrollBars() 159 if (height > m_dataRect.Height()) { in _updateScrollBars() 167 m_vScroll->SetProportion(height / m_dataRect.Height()); in _updateScrollBars()
|
/haiku/src/kits/interface/ |
H A D | ScrollView.cpp | 92 fPreviousHeight = uint16(Bounds().Height()); in BScrollView() 176 fPreviousHeight = uint16(Bounds().Height()); in AllUnarchived() 289 float delta = size.Height() - bounds.Height(), in FrameResized() 290 proportion = bounds.Height() / size.Height(); in FrameResized() 296 bounds.Height()); in FrameResized() 309 fPreviousWidth - fVerticalScrollBar->Frame().Height(), in FrameResized() 334 if (bounds.Height() > fPreviousHeight) { in FrameResized() 340 } else if (bounds.Height() < fPreviousHeight) { in FrameResized() 348 fPreviousHeight = uint16(bounds.Height()); in FrameResized() 615 target->ResizeTo(innerFrame.Width() - 1, innerFrame.Height() - 1); in SetTarget() [all …]
|
/haiku/src/preferences/backgrounds/ |
H A D | BackgroundImage.cpp | 276 float y_ratio = viewBounds.Height() / mode.virtual_height; in Show() 295 (viewBounds.Height() - destinationBitmapBounds.Height()) in Show() 307 viewBounds.Width() + overlap, viewBounds.Height()); in Show() 312 viewBounds.Width(), viewBounds.Height() + overlap); in Show() 330 (viewBounds.Height() - destinationBitmapBounds.Height()) / 2); in Show() 352 return rect.Width() / rect.Height(); in BRectRatio() 359 return ((hostRect.Height() / resizedRect.Height() * resizedRect.Width()) in BRectHorizontalOverlap() 367 return ((hostRect.Width() / resizedRect.Width() * resizedRect.Height()) in BRectVerticalOverlap() 368 - hostRect.Height()) / 2; in BRectVerticalOverlap()
|
H A D | ImageFilePanel.cpp | 124 if (bitmap->Bounds().Width() > bitmap->Bounds().Height()) { in SelectionChanged() 125 dest.InsetBy(0, (dest.Height() + 1 in SelectionChanged() 126 - ((bitmap->Bounds().Height() + 1) in SelectionChanged() 132 / (bitmap->Bounds().Height() + 1) in SelectionChanged() 133 * (dest.Height() + 1))) / 2, 0); in SelectionChanged() 141 << "x" << (int)(bitmap->Bounds().Height() + 1); in SelectionChanged()
|
/haiku/src/add-ons/screen_savers/debugnow/ |
H A D | DebugNow.cpp | 62 float viewHeight = view->Bounds().Height(); in StartSaver() 74 float y = ((viewHeight - (stringRect.Height() * 2 + viewHeight / 10)) / 2) in StartSaver() 75 + stringRect.Height(); in StartSaver() 80 y + stringRect.Height() + viewHeight / 10); in StartSaver()
|
/haiku/src/preferences/input/ |
H A D | InputDeviceView.cpp | 71 frame.top + (frame.Height() - InputIcons::sBounds.Height()) / 2.0f); in Render() 90 + (frame.Height() - ceilf(fontInfo.ascent + fontInfo.descent)) in Render() 119 float iconHeight = InputIcons::sBounds.Height() + 1; in Update() 120 if ((Height() < iconHeight + kITEM_MARGIN * 2)) in Update()
|
/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/haikudepot/ui/ |
H A D | FeaturedPackagesView.cpp | 76 fHeight = fmaxf(totalTitleAndMetadataHeight, iconSize.Height()) + 2.0 * padding; in StackedFeaturesPackageBandMetrics() 81 iconSize.Height() + iconInset); in StackedFeaturesPackageBandMetrics() 118 (fHeight - ratingStarsMetrics.Size().Height()) / 2), ratingStarsMetrics.Size()); in StackedFeaturesPackageBandMetrics() 138 float Height() in Height() function in StackedFeaturesPackageBandMetrics 285 ScrollTo(0, fmaxf(0, bounds.top - bounds.Height())); in KeyDown() 291 float height = fPackages.size() * fBandMetrics->Height(); in KeyDown() 292 float maxScrollY = height - bounds.Height(); in KeyDown() 293 float pageDownScrollY = bounds.top + bounds.Height(); in KeyDown() 695 float trailingIconMidY = textRect.top + (textRect.Height() / 2.0); in _DrawPackageTitle() 707 trailingIconMidY - (bitmapBounds.Height() / 2.0)) + 0.5; in _DrawPackageTitle() [all …]
|
/haiku/src/preferences/joysticks/ |
H A D | MessageWin.cpp | 42 ResizeTo(parentFrame.Width(), floor(parentFrame.Height() / 3)); in MessageWin() 43 MoveBy(0, floor(parentFrame.Height() / 2 - (parentFrame.Height()/3) / 2 )); in MessageWin()
|
/haiku/src/tests/servers/app/playground/ |
H A D | ObjectWindow.cpp | 163 scrollBar->SetRange(0.0, fObjectView->Bounds().Height()); in ObjectWindow() 194 b.OffsetBy(0, fNewB->Bounds().Height() + 5.0); in ObjectWindow() 202 b.OffsetBy(0, fClearB->Bounds().Height() + 5.0); in ObjectWindow() 210 b.OffsetBy(0, radioButton->Bounds().Height() + 5.0); in ObjectWindow() 216 b.OffsetBy(0, radioButton->Bounds().Height() + 5.0); in ObjectWindow() 222 b.OffsetBy(0, radioButton->Bounds().Height() + 5.0); in ObjectWindow() 277 b.OffsetBy(0, radioButton->Bounds().Height() + 10.0); in ObjectWindow() 287 b.OffsetBy(0, fDrawingModeMF->Bounds().Height() + 10.0); in ObjectWindow() 293 b.OffsetBy(0, fColorControl-> Bounds().Height() + 5.0); in ObjectWindow() 307 b.OffsetBy(0, fAlphaTC->Bounds().Height() + 5.0); in ObjectWindow() [all …]
|
/haiku/src/apps/terminal/ |
H A D | SmartTabView.cpp | 53 ContainerView()->ResizeTo(frame.Width(), frame.Height()); in SmartTabView() 62 fFullScreenButton->ResizeTo(buttonRect.Width(), buttonRect.Height()); in SmartTabView() 138 ContainerView()->Bounds().Height() - fInsets.top - fInsets.bottom); in Select() 169 if (Window()->DecoratorFrame().Height() + 2 * TabHeight() in AddTab() 170 < screen.Frame().Height()) { in AddTab() 204 if (Window()->DecoratorFrame().Height() + 2 * TabHeight() in RemoveTab() 205 < screen.Frame().Height()) { in RemoveTab()
|
/haiku/src/preferences/screen/ |
H A D | RefreshWindow.cpp | 48 rect.top += stringView->Bounds().Height() + 14; in RefreshWindow() 61 Bounds().Height() - doneButton->Bounds().Height() - 8); in RefreshWindow() 76 height = fRefreshSlider->Frame().bottom + button->Bounds().Height() + 20.0f; in RefreshWindow()
|