/haiku/src/system/boot/platform/bios_ia32/ |
H A D | video.cpp | 44 uint16 width, height, bits_per_pixel; member in struct:video_mode 62 int compare = a->width - b->width; 101 If \a height is \c -1, the height is ignored, and only the width 105 find_video_mode(int32 width, int32 height, bool allowPalette) argument 111 if (mode->width == width && (height == -1 || mode->height == height) 122 /*! Returns the VESA mode closest to the one specified, with a width less or 127 closest_video_mode(int32 width, int32 height, int32 depth) argument 135 if (mode->width > widt 313 int32 width = strtol(parameter.values[0], NULL, 0); local 769 platform_blit4(addr_t frameBuffer, const uint8 *data, uint16 width, uint16 height, uint16 imageWidth, uint16 left, uint16 top) argument [all...] |
/haiku/src/apps/charactermap/ |
H A D | CharacterView.cpp | 278 CharacterView::FrameResized(float width, float height) argument 297 PreviewItem(const char* text, float width, float height) argument 299 fWidth(width * 2), 304 void GetContentSize(float* width, float* height) argument 306 *width = fWidth; 347 // Try to have the size right (should be exactly 2x the cell width)
|
/haiku/src/preferences/screen/ |
H A D | ScreenWindow.cpp | 136 mode.width, mode.height); 324 if (mode.width == previousWidth && mode.height == previousHeight) 327 previousWidth = mode.width; 329 if (maxWidth < mode.width) 330 maxWidth = mode.width; 358 if (mode.width == previousWidth && mode.height == previousHeight) 361 previousWidth = mode.width; 365 message->AddInt32("width", mode.width); 371 mode.width, mod [all...] |
H A D | MonitorView.cpp | 28 MonitorView::MonitorView(BRect rect, const char *name, int32 width, int32 height) argument 32 fWidth(width), 113 float width = StringWidth(text); local 114 if (width > innerRect.Width() || height > innerRect.Height()) 120 DrawString(text, BPoint(innerRect.left + (innerRect.Width() - width) / 2, 126 MonitorView::SetResolution(int32 width, int32 height) argument 128 if (fWidth == width && fHeight == height) 131 fWidth = width; 140 MonitorView::SetMaxResolution(int32 width, int32 height) argument 142 if (fMaxWidth == width 164 int32 width, height; local 210 float width = maxWidth * factorX; local [all...] |
H A D | ScreenMode.cpp | 153 return width != other.width || height != other.height 165 width = mode.virtual_width; 172 width /= 2; 404 *_diagonalInches = round(sqrt(info.width * info.width 488 ? mode.width * 2 : mode.width; 539 // For the mode selected by the width, height, and refresh rate, compute 542 compute_display_timing(mode.width, mod [all...] |
/haiku/src/kits/tracker/ |
H A D | WidgetAttributeText.cpp | 86 float width) 98 if (view->StringWidth(buffer.String()) > width) { 116 if (resultWidth <= width) { 123 width, (uint32)B_TRUNCATE_END); 130 const View* view, float width, uint32 truncMode = B_TRUNCATE_MIDDLE) 137 if (view->StringWidth(inString, length) <= width) 149 font.GetTruncatedStrings(source, 1, truncMode, width, results); 159 TruncTimeBase(BString* outString, int64 value, const View* view, float width) argument 161 float resultWidth = width + 1; 182 if (resultWidth <= width) { 85 TruncFileSizeBase(BString* outString, int64 value, const View* view, float width) argument 129 TruncStringBase(BString* outString, const char* inString, int32 length, const View* view, float width, uint32 truncMode = B_TRUNCATE_MIDDLE) argument 336 TruncString(BString* outString, const char* inString, int32 length, const BPoseView* view, float width, uint32 truncMode) argument 344 TruncFileSize(BString* outString, int64 value, const BPoseView* view, float width) argument 352 TruncTime(BString* outString, int64 value, const BPoseView* view, float width) argument 391 AttrAsString(const Model* model, BString* outString, const char* attrName, int32 attrType, float width, BView* view, int64* resultingValue) argument [all...] |
H A D | ContainerWindow.cpp | 3243 int32 type, float width, int32 align, bool editable, bool statField) 3245 return NewAttributeMenuItem(label, name, type, NULL, width, align, 3252 int32 type, const char* displayAs, float width, int32 align, 3259 message->AddFloat("attr_width", width); 3476 int32 width; local 3482 || attrInfo.FindInt32("attr:width", index, &width) != B_OK 3497 displayAs.String(), width, align, editable, false)); 3242 NewAttributeMenuItem(const char* label, const char* name, int32 type, float width, int32 align, bool editable, bool statField) argument 3251 NewAttributeMenuItem(const char* label, const char* name, int32 type, const char* displayAs, float width, int32 align, bool editable, bool statField) argument
|
/haiku/src/apps/stylededit/ |
H A D | StatusView.cpp | 98 *_width = fPreferredSize.width; 108 float width, height; local 109 GetPreferredSize(&width, &height); 111 if (Bounds().Width() > width) 112 width = Bounds().Width(); 114 BView::ResizeTo(width, height); 121 if (fPreferredSize.width <= 0) 248 float orgWidth = fPreferredSize.width; 249 // width 250 fPreferredSize.width 256 float width = ceilf(StringWidth(fCellText[i])); local [all...] |
/haiku/src/apps/softwareupdater/ |
H A D | UpdateManager.cpp | 276 int width = 70; local 282 width = winSize.ws_col - 7; 286 int ipart = (int)(completionValue * width); 287 int fpart = (int)(((completionValue * width) - ipart) * 8); 291 for (position = 0; position < width; position++) {
|
/haiku/src/apps/pulse/ |
H A D | NormalPulseView.cpp | 51 float width = std::max(StringWidth(fProcessor), 48.0f); local 52 fChipRect = BRect(10, (rect.Height() - width - 15) / 2, 25 + width, 53 (rect.Height() + width + 15) / 2); 265 float width = StringWidth(fVendor); local 266 MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 20); 273 float width = StringWidth(fProcessor); local 274 MovePenTo(10 + (fChipRect.Width() - width) / 2, fChipRect.top + 53); 286 width = StringWidth(buffer); 287 MovePenTo(10 + (fChipRect.Width() - width) / [all...] |
/haiku/src/apps/poorman/ |
H A D | PoorManWindow.cpp | 297 PoorManWindow::FrameResized(float width, float height) argument 300 fLastWidth = width; 343 PoorManWindow::Zoom(BPoint origin, float width, float height) argument
|
/haiku/src/apps/mediaplayer/ |
H A D | Controller.cpp | 326 int width; local 328 GetSize(&width, &height); 352 Init(BRect(0, 0, width - 1, height - 1), fVideoFrameRate, 356 FormatChanged(BRect(0, 0, width - 1, height - 1), fVideoFrameRate, 400 Controller::GetSize(int *width, int *height, int* _widthAspect, argument 408 *width = format.u.raw_video.display.line_width; 427 *width = 0;
|
/haiku/src/apps/installer/ |
H A D | InstallerWindow.cpp | 129 float width = 0.0; local 132 width = fLogo->Bounds().Width(); 136 *_width = width;
|
/haiku/src/apps/drivesetup/ |
H A D | DiskView.cpp | 173 // prevent the text from moving when border width changes 196 float width; local 209 width = b.Width(); 214 width = b.Height(); 220 font.TruncateString(&name, B_TRUNCATE_END, width); 536 float width = StringWidth(helpfulMessage); local 540 messageBounds.InsetBy((bounds.Width() - width - fh.ascent * 2) / 2.0,
|
/haiku/src/apps/diskprobe/ |
H A D | ProbeView.cpp | 205 virtual void FrameResized(float width, float height); 1058 TypeView::FrameResized(float width, float height) argument 1717 float width, height; local 1718 fDataView->GetPreferredSize(&width, &height); 1722 fDataView->SetScale(rect.Width() / width);
|
/haiku/src/apps/aboutsystem/ |
H A D | AboutSystem.cpp | 517 if (size.width != B_SIZE_UNSET) 518 size.width -= fCropLeft + fCropRight; 533 if (size.width != B_SIZE_UNSET) 534 size.width -= fCropLeft + fCropRight; 735 // increase min width based on some potentially wide string views 743 // width is fixed, height can grow in Pulse() 957 SysInfoView::_ResizeTo(float width, float height) argument 959 _ResizeBy(width - Bounds().Width(), height - Bounds().Height());
|
/haiku/src/add-ons/translators/ico/ |
H A D | ICOTranslator.cpp | 171 ICOTranslator::DerivedCanHandleImageSize(float width, float height) const argument 173 if (!ICO::is_valid_size((int)width) || !ICO::is_valid_size((int)height))
|
/haiku/src/kits/interface/ |
H A D | ColumnTypes.cpp | 34 BTitledColumn::BTitledColumn(const char* title, float width, float minWidth, argument 37 BColumn(width, minWidth, maxWidth, align), 50 float width = rect.Width() - (2 * kTEXT_MARGIN); local 53 parent->TruncateString(&out_string, B_TRUNCATE_END, width + 2); 68 float width = rect.Width() - (2 * kTEXT_MARGIN); local 86 + ((width - font.StringWidth(string)) / 2), y); 157 BStringField::SetWidth(float width) argument 159 fWidth = width; 194 BStringColumn::BStringColumn(const char* title, float width, float minWidth, argument 197 BTitledColumn(title, width, minWidt 206 float width = rect.Width() - (2 * kTEXT_MARGIN); local 267 SetWidth(float width) argument 311 BDateColumn(const char* title, float width, float minWidth, float maxWidth, alignment align) argument 323 float width = rect.Width() - (2 * kTEXT_MARGIN); local 405 BSizeColumn(const char* title, float width, float minWidth, float maxWidth, alignment align) argument 424 float width = rect.Width() - (2 * kTEXT_MARGIN); local 519 BIntegerColumn(const char* title, float width, float minWidth, float maxWidth, alignment align) argument 533 float width = rect.Width() - (2 * kTEXT_MARGIN); local 549 GraphColumn(const char* name, float width, float minWidth, float maxWidth, alignment align) argument 585 float width = be_plain_font->StringWidth(percentString); local 619 BBitmapColumn(const char* title, float width, float minWidth, float maxWidth, alignment align) argument [all...] |
/haiku/src/add-ons/media/plugins/ffmpeg/ |
H A D | AVFormatReader.cpp | 1175 = codecParams->width; 1178 TRACE(" width/height: %d/%d\n", codecParams->width,
|
H A D | AVCodecDecoder.cpp | 1333 - display.line_width copied to fCodecContext->width 1350 fCodecContext->width = containerProperties.display.line_width; 1579 colorspace_to_pixfmt(fOutputColorSpace), fRawDecodedPicture->width, 1581 fHeader.u.raw_video.display_line_width = fRawDecodedPicture->width; 1585 fRawDecodedPicture->width); 1629 int displayWidth = fRawDecodedPicture->width; 1740 AVCodecDecoder::_InitFilterGraph(enum AVPixelFormat pixfmt, int32 width, argument 1753 "[out]buffersink", width, height, 1780 fLastWidth = width; 1799 enum AVPixelFormat pixfmt, int32 width, int3 1798 _ProcessFilterGraph(AVFrame *dst, const AVFrame *src, enum AVPixelFormat pixfmt, int32 width, int32 height) argument [all...] |
/haiku/src/apps/showimage/ |
H A D | ShowImageWindow.cpp | 163 float menuBarMinWidth = fBar->MinSize().width; 268 float toolBarMinWidth = fToolBar->MinSize().width; 546 float width = r.Width() + be_control_look->GetScrollBarWidth(B_VERTICAL); local 565 if (width < minW) 566 width = minW; 570 if (width > maxWidth) 571 width = maxWidth; 575 ResizeTo(width, height); 632 ShowImageWindow::Zoom(BPoint origin, float width, float height) argument 704 // Set width an 1152 BString frameText, height, width; local 1515 float width; local 1634 int32 width = bounds.IntegerWidth() + 1; local [all...] |
H A D | ShowImageWindow.h | 65 virtual void Zoom(BPoint origin, float width, float height);
|
H A D | ShowImageStatusView.cpp | 59 *_width = fPreferredSize.width; 69 float width, height; local 70 GetPreferredSize(&width, &height); 72 if (Bounds().Width() > width) 73 width = Bounds().Width(); 75 BView::ResizeTo(width, height); 82 if (fPreferredSize.width <= 0) 203 // width 204 fPreferredSize.width = 0.f; 210 float width local [all...] |
/haiku/src/add-ons/kernel/busses/mmc/ |
H A D | sdhci.cpp | 475 SdhciBus::SetBusWidth(int width) argument 478 switch(width) { 804 set_bus_width(void* controller, int width) argument 807 return bus->SetBusWidth(width);
|
H A D | sdhci.h | 47 void SetBusWidth(int width); 272 void SetDataTransferWidth(uint8_t width) argument 274 value = (value & ~kDataTransferWidthMask) | width; 282 // It's convenient to think of this as a single "bit width" setting, 443 void set_bus_width(void* controller, int width);
|