/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...] |
H A D | ColorConversion.cpp | 595 BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, 633 // Ensure that the width fits 636 if (srcWidth < width) 637 width = srcWidth; 641 if (dstWidth < width) 642 width = dstWidth; 644 if (width < 0) 647 int32 srcLinePad = (srcBitsPerRow - width * srcBitsPerPixel + 7) >> 3; 648 int32 dstLinePad = (dstBitsPerRow - width * dstBitsPerPixel + 7) >> 3; 661 for (int32 j = 0; j < width; 589 ConvertBits64To32(const srcByte *srcBits, dstByte *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, uint32 blueMask, uint32 alphaMask, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, int32 dstBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, read64Func *srcFunc, writeFunc *dstFunc) argument 728 ConvertBits(const srcByte *srcBits, dstByte *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, uint32 blueMask, uint32 alphaMask, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, int32 dstBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, bool dstSwap, readFunc *srcFunc, writeFunc *dstFunc) argument 893 ConvertBits64(const srcByte *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, read64Func *srcFunc) argument 951 ConvertBits(const srcByte *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 redShift, int32 greenShift, int32 blueShift, int32 alphaShift, int32 alphaBits, int32 srcBytesPerRow, int32 dstBytesPerRow, int32 srcBitsPerPixel, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height, bool srcSwap, readFunc *srcFunc) argument 1099 ConvertBits(const void *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 srcBytesPerRow, int32 dstBytesPerRow, color_space srcColorSpace, color_space dstColorSpace, int32 width, int32 height) argument 1128 ConvertBits(const void *srcBits, void *dstBits, int32 srcBitsLength, int32 dstBitsLength, int32 srcBytesPerRow, int32 dstBytesPerRow, color_space srcColorSpace, color_space dstColorSpace, BPoint srcOffset, BPoint dstOffset, int32 width, int32 height) argument [all...] |
/haiku/src/tests/servers/app/bitmap_bounds/ |
H A D | main.cpp | 42 uint32 width = fBitmap->Bounds().IntegerWidth() + 1; local 48 for (uint32 x = 0; x < width; x++) { 59 b[(width - 1) * 4 + 0] = 0; 60 b[(width - 1) * 4 + 1] = 0; 65 for (uint32 x = 0; x < width; x++) {
|
/haiku/headers/private/graphics/ |
H A D | video_overlay.h | 34 uint16 width; /* width in pixels */ member in struct:__anon3 44 uint16 width; member in struct:__anon4 65 uint16 width; /* un-clipped width of the overlay window */ member in struct:__anon7 95 overlay_uint16_minmax width; /* min and max sizes in each axis */ member in struct:__anon10 111 typedef const overlay_buffer *(*allocate_overlay_buffer)(color_space cs, uint16 width, uint16 height);
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_radiotap.c | 281 size_t align, width; member in struct:__anon55 285 .width = sizeof(uint64_t), 289 .width = sizeof(uint8_t), 293 .width = sizeof(uint8_t), 297 .width = 2*sizeof(uint16_t), 301 .width = sizeof(uint16_t), 305 .width = sizeof(uint8_t), 309 .width = sizeof(uint8_t), 313 .width = sizeof(uint16_t), 317 .width [all...] |
/haiku/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamSensor.cpp | 74 CamSensor::AcceptVideoFrame(uint32 &width, uint32 &height) argument 77 if (width < 1) 78 width = MaxWidth(); 81 if (width > (uint32)MaxWidth()) 82 width = MaxWidth();
|
/haiku/src/apps/debuganalyzer/gui/table/ |
H A D | TableColumns.cpp | 19 int32 modelIndex, float width, float minWidth, float maxWidth, 22 TableColumn(modelIndex, width, minWidth, maxWidth, align), 67 float width, float minWidth, float maxWidth, uint32 truncate, 70 DelegateBasedTableColumn(&fColumn, modelIndex, width, minWidth, maxWidth, 72 fColumn(title, width, minWidth, maxWidth, truncate, align), 103 float width, float minWidth, float maxWidth, const BString& trueString, 106 StringTableColumn(modelIndex, title, width, minWidth, maxWidth, truncate, 135 float width, float minWidth, float maxWidth, uint32 truncate, 138 StringTableColumn(modelIndex, title, width, minWidth, maxWidth, truncate, 165 float width, floa 18 DelegateBasedTableColumn(BColumn* columnDelegate, int32 modelIndex, float width, float minWidth, float maxWidth, alignment align) argument 66 StringTableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, uint32 truncate, alignment align) argument 102 BoolStringTableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, const BString& trueString, const BString& falseString, uint32 truncate, alignment align) argument 134 Int32TableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, uint32 truncate, alignment align) argument 164 Int64TableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, uint32 truncate, alignment align) argument 197 BigtimeTableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, bool invalidFirst, uint32 truncate, alignment align) argument 245 NanotimeTableColumn(int32 modelIndex, const char* title, float width, float minWidth, float maxWidth, bool invalidFirst, uint32 truncate, alignment align) argument [all...] |
/haiku/src/tests/kits/interface/flatten_picture/ |
H A D | TestResultItem.cpp | 101 float width = 0.0; local 104 width += font->StringWidth(fName.String()); 105 width += kDistance; 106 width += font->StringWidth(fErrorMessage.String()); 108 width += 3 * kDistance; 109 width += 3 * fBitmapSize.Width(); 114 width += 4; 117 if (width > Width()) 118 SetWidth(width); 179 float width local [all...] |
/haiku/src/system/libroot/posix/glibc/stdio-common/ |
H A D | vfscanf.c | 61 #define WIDTH 0x040 /* width was given */ 272 register int width; /* Maximum field width. */ local 493 /* Oops; that was actually the field width. */ 494 width = argpos; 517 /* We have seen width. */ 521 /* Find the maximum field width. */ 522 width = 0; 525 width *= 10; 526 width [all...] |
H A D | printf_size.c | 186 int width = info->prec > info->width ? info->prec : info->width; local 189 --width; 190 width -= 3; 192 if (!info->left && width > 0) 193 PADN (' ', width); 204 if (info->left && width > 0) 205 PADN (' ', width); 230 fp_info.width [all...] |
H A D | printf_fphex.c | 225 int width = info->width; local 332 int width = info->width; local 335 --width; 336 width -= 3; 338 if (!info->left && width > 0) 339 PADN (' ', width); 350 if (info->left && width > 0) 351 PADN (' ', width); [all...] |
H A D | printf-parse.c | 42 if (width > 0) \ 43 { if (__printf_pad (s, Padchar, width) == -1) \ 44 return -1; else done += width; } 56 if (width > 0) \ 57 { if (__wprintf_pad (s, Padchar, width) == -1) \ 58 return -1; else done += width; } 77 /* If the width is determined by an argument this is an int. */
|
/haiku/src/tests/kits/opengl/direct_mode/ |
H A D | GLDirectMode.cpp | 28 void gReshape(int width, int height); 30 float width; member in class:SampleGLView 124 width = frame.right-frame.left; 134 gReshape(width, height); 146 width = newWidth; 149 gReshape(width,height); 218 void SampleGLView::gReshape(int width, int height) argument 220 glViewport(0, 0, width, height); 224 gluPerspective(45, width / (float) height, 1, 500);
|
/haiku/src/kits/tracker/ |
H A D | OverrideAlert.cpp | 48 button_width width, alert_type type) 50 BAlert(title, text, button1, button2, button3, width, type), 67 button_width width, button_spacing spacing, alert_type type) 69 BAlert(title, text, button1, button2, button3, width, spacing, type), 102 OverrideAlert::OverPosition(float width, float height) argument 122 desirableRect.left = midX - ceilf(width / 2.0f); 123 desirableRect.right = desirableRect.left+width; 133 desirableRect.left = midX - ceilf(width / 2.0f); 134 desirableRect.right = desirableRect.left + width; 44 OverrideAlert(const char* title, const char* text, const char* button1, uint32 modifiers1, const char* button2, uint32 modifiers2, const char* button3, uint32 modifiers3, button_width width, alert_type type) argument 63 OverrideAlert(const char* title, const char* text, const char* button1, uint32 modifiers1, const char* button2, uint32 modifiers2, const char* button3, uint32 modifiers3, button_width width, button_spacing spacing, alert_type type) argument
|
/haiku/src/add-ons/accelerants/ati/ |
H A D | rage128_overlay.cpp | 107 int32 horzInc = (buffer->width << (12 + ecpDiv)) / window->width; 118 int32 x2 = window->h_start + window->width; 149 int32 width = window->width; local 151 OUTREG(R128_OV0_P1_X_START_END, (width - 1) | (left << 16)); 152 width >>= 1; 153 OUTREG(R128_OV0_P2_X_START_END, (width - 1) | (left << 16)); 154 OUTREG(R128_OV0_P3_X_START_END, (width - 1) | (left << 16));
|
H A D | overlay.cpp | 48 AllocateOverlayBuffer(color_space colorSpace, uint16 width, uint16 height) argument 52 TRACE("AllocateOverlayBuffer() width %u, height %u, colorSpace 0x%lx\n", 53 width, height, colorSpace); 58 if (height > 2048 || width > 768 59 || (width > 384 && si.chipType < MACH64_264VTB) 60 || (width > 720 && (si.chipType < MACH64_264GTPRO 83 uint32 buffSize = (width * bytesPerPixel * height + 0x3ff) & ~0x3ff; 143 ovBuff->width = width; 145 ovBuff->bytes_per_row = width * bytesPerPixe [all...] |
/haiku/src/libs/icon/transformer/ |
H A D | ContourTransformer.cpp | 57 if (archive->FindDouble("width", &value) == B_OK) 58 width(value); 80 clone->width(width()); 115 double factor = fabs(width()); 141 ret = into->AddDouble("width", width()); 160 // width 161 object->AddProperty(new FloatProperty(PROPERTY_WIDTH, width())); 190 // width [all...] |
/haiku/src/libs/print/libprint/ |
H A D | Halftone.cpp | 155 int width) 173 (this->*fDither)(destination, source, x, y, width); 202 int width) 209 int widthByte = (width + 7) / 8; 210 int remainder = width % 8; 224 if (width >= 8) { 295 Halftone::SetupErrorBuffer(int x, int y, int width) argument 300 fWidth = width; 303 const int size = width + 2; 312 int x, int y, int width) 154 Dither(uchar* destination, const uchar* source, int x, int y, int width) argument 201 DitherRGB32(uchar *destination, const uchar *source0, int x, int y, int width) argument 311 DitherFloydSteinberg(uchar *destination, const uchar* source0, int x, int y, int width) argument [all...] |
/haiku/src/tests/kits/interface/bbitmap/ |
H A D | BBitmapTester.cpp | 33 get_bytes_per_row(color_space colorSpace, int32 width) argument 39 bpr = 8 * width; 42 bpr = 6 * width; 52 bpr = 4 * width; 57 bpr = 3 * width; 61 bpr = 2 * width; 64 bpr = width; 67 bpr = (width + 7) / 8; 70 bpr = (width + 3) / 4 * 8; 73 bpr = (width 196 int32 width = testCase.bounds.IntegerWidth() + 1; local [all...] |
/haiku/src/add-ons/accelerants/neomagic/ |
H A D | Overlay.c | 68 const overlay_buffer *ALLOCATE_OVERLAY_BUFFER(color_space cs, uint16 width, uint16 height) argument 97 if (width == (width & ~0x0007)) 99 si->overlay.myBuffer[offset].width = width; 103 si->overlay.myBuffer[offset].width = (width & ~0x0007) + 8; 105 si->overlay.myBuffer[offset].bytes_per_row = 2 * si->overlay.myBuffer[offset].width; 109 if (si->overlay.myBuffer[offset].width > 2048) 130 /* check if the requested buffer width i [all...] |
H A D | Cursor.c | 13 status_t SET_CURSOR_SHAPE(uint16 width, uint16 height, uint16 hot_x, uint16 hot_y, uint8 *andMask, uint8 *xorMask) argument 15 LOG(4,("SET_CURSOR_SHAPE: width %d, height %d, hot_x %d, hot_y %d\n", 16 width, height, hot_x, hot_y)); 18 if ((width != 16) || (height != 16)) 22 else if ((hot_x >= width) || (hot_y >= height)) 31 si->cursor.width = width;
|
/haiku/src/add-ons/accelerants/matrox/engine/ |
H A D | mga_bes.c | 77 /* width < 2 is not allowed */ 88 /* width < 2 is not allowed */ 89 if (si->overlay.ow.width < 2) 96 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) > (crtc_hend - 1)) 103 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 105 /* width < 2 is not allowed */ 111 temp2 = ((uint16)(si->overlay.ow.h_start + si->overlay.ow.width - crtc_hstart - 1)) & 0x7ff; 191 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 193 /* increase 'first contributing pixel' with 'fixed value': (total dest. width - 2) */ 194 moi->hsrcstv += (si->overlay.ow.width [all...] |
/haiku/src/add-ons/accelerants/via/engine/ |
H A D | bes.c | 126 if ((si->overlay.ow.h_start + (si->overlay.ow.width / 2)) < 171 /* width < 2 is not allowed */ 182 /* width < 2 is not allowed */ 183 if (si->overlay.ow.width < 2) 190 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) > (crtc_hend - 1)) 197 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 199 /* width < 2 is not allowed */ 205 temp2 = ((uint16)(si->overlay.ow.h_start + si->overlay.ow.width - crtc_hstart - 1)) & 0x7ff; 285 if ((si->overlay.ow.h_start + si->overlay.ow.width - 1) < (crtc_hstart + 1)) 287 /* increase 'first contributing pixel' with 'fixed value': (total dest. width [all...] |
/haiku/src/apps/deskbar/ |
H A D | BarMenuTitle.cpp | 50 TBarMenuTitle::TBarMenuTitle(float width, float height, const BBitmap* icon, argument 54 fWidth(width), 74 TBarMenuTitle::SetContentSize(float width, float height) argument 76 fWidth = width; 82 TBarMenuTitle::GetContentSize(float* width, float* height) argument 84 *width = fWidth;
|
/haiku/src/apps/powerstatus/ |
H A D | ExtendedInfoWindow.cpp | 226 float width = frame.Width() - horzOffset * 2; local 227 BPoint pt1((frame.left + frame.right - width) / 2.0 + horzOffset, 229 BPoint pt2((frame.left + frame.right + width) / 2.0, 268 float width = TabHeight(); local 273 return BRect(offset + index * width, 0.0f, 274 offset + index * width + width, height); 276 return BRect(offset + index * width, bounds.bottom - height, 277 offset + index * width + width, bound [all...] |