Searched refs:width (Results 376 - 400 of 1007) sorted by relevance

<<11121314151617181920>>

/haiku/src/add-ons/translators/webp/
H A DWebPTranslator.cpp273 picture.width = bitsHeader.bounds.IntegerWidth() + 1;
333 int width, height; local
334 uint8* out = WebPDecodeBGRA((const uint8*)streamData, streamSize, &width,
343 uint32 dataSize = width * 4 * height;
347 bitmapHeader.bounds.Set(0, 0, width - 1, height - 1);
348 bitmapHeader.rowBytes = width * 4;
350 bitmapHeader.dataSize = width * 4 * height;
/haiku/src/bin/pkgman/
H A DPackageManager.cpp215 int width = 70; local
218 width = std::min(winSize.ws_col - 2, 78);
220 if (width < 30) {
238 if (leftStr.CountChars() + rightStr.CountChars() >= width)
242 leftStr.TruncateChars(width - rightStr.CountChars() - 2);
246 int extraSpace = width - leftStr.CountChars() - rightStr.CountChars();
253 (int)(width * completionPercentage));
/haiku/src/tests/add-ons/translators/bmptranslator/
H A DBMPTranslatorTest.cpp37 uint32 width; // bitmap width member in struct:MSInfoHeader
51 uint16 width; // bitmap width member in struct:OS2InfoHeader
226 msheader.width = 5;
250 msheader.width = 5;
274 msheader.width = 5;
299 os2header.width = 5;
320 os2header.width = 5;
338 os2header.width
[all...]
/haiku/src/kits/interface/
H A DSlider.cpp336 BSlider::GetHeightForWidth(data->width, &data->min, &data->max,
1069 float width = ceilf(std::max(newWidth, oldWidth)) + 2.0f; local
1070 if (width != 0) {
1078 invalid = BRect(invalid.right - width, 0, invalid.right, height);
1081 invalid.left = (invalid.left + invalid.right - width) / 2;
1082 invalid.right = invalid.left + width;
1238 *_width = std::max(Bounds().Width(), preferredSize.width);
1245 *_width = preferredSize.width;
1527 float width = StringWidth(UpdateText()); local
1533 return width;
1676 float width = 0.0f; local
[all...]
H A DTextControl.cpp130 LayoutData(float width, float height) argument
134 previous_width(width),
399 BTextControl::FrameResized(float width, float height) argument
403 BControl::FrameResized(width, height);
407 // changes in width
450 TRACE("width: %.2f, height: %.2f\n", bounds.Width(), bounds.Height());
724 float minWidth = fLayoutData->min.width;
818 max.width = B_SIZE_UNLIMITED;
885 if (size.width < fLayoutData->min.width)
[all...]
/haiku/src/tests/kits/game/ParticlesII/
H A DparticlesII.cpp71 int width,height; member in class:NWindowScreen
117 : BWindowScreen("Example", B_8_BIT_640x480, ret), width(639), height(479), COLORS(256)
329 cx = width/2;
360 if(x > width)
377 if((s->lx <= width) && (s->lx >= 0) && (s->ly <= height) && (s->ly >= 0))
621 if((xCoord > 0) && (yCoord > 0) && (xCoord < width) && (yCoord < height))
624 if((xCoord > 0) && (yCoord > 0) && (xCoord < width) && (yCoord < height))
628 if((xCoord > 0) && (yCoord > 0) && (xCoord < width) && (yCoord < height))
631 if((xCoord > 0) && (yCoord > 0) && (xCoord < width) && (yCoord < height))
653 if((xCoord1 > 0) && (yCoord1 > 0) && (xCoord1 < width)
[all...]
/haiku/src/system/libroot/posix/stdlib/
H A Dstrfmon.c130 int width; /* field width */ local
171 width = -1; /* no width specified */
209 GET_NUMBER(width);
211 * required width ?
213 if ((unsigned int)width >= maxsize - (dst - s))
386 if (dst - tmpptr < width) {
388 while (dst - tmpptr < width)
392 memmove(tmpptr + width
[all...]
/haiku/src/preferences/screen/
H A DScreenMode.cpp153 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/add-ons/accelerants/ati/
H A Daccelerant.h55 bool (*LoadCursorImage)(int width, int height, uint8* and_mask,
128 status_t SetCursorShape(uint16 width, uint16 height, uint16 hot_x, uint16 hot_y,
164 const overlay_buffer* AllocateOverlayBuffer(color_space cs, uint16 width,
197 bool Mach64_LoadCursorImage(int width, int height, uint8* and_mask,
223 bool Rage128_LoadCursorImage(int width, int height, uint8* and_mask,
H A Drage128_draw.cpp177 continue; // discard span with zero or negative width
233 int width = pList->width; local
239 src_x += width;
240 dest_x += width;
254 OUTREG(R128_DST_HEIGHT_WIDTH, ((height + 1) << 16) | (width + 1));
/haiku/src/add-ons/accelerants/s3/
H A Daccel.h53 bool (*LoadCursorImage)(int width, int height, uint8* and_mask, uint8* xor_mask);
123 status_t SetCursorShape(uint16 width, uint16 height, uint16 hot_x, uint16 hot_y,
174 bool Savage_LoadCursorImage(int width, int height, uint8* and_mask, uint8* xor_mask);
183 bool Trio64_LoadCursorImage(int width, int height, uint8* and_mask, uint8* xor_mask);
194 bool Virge_LoadCursorImage(int width, int height, uint8* and_mask, uint8* xor_mask);
/haiku/src/apps/debuganalyzer/gui/
H A DHeaderView.h66 Header(float width, float minWidth,
75 void SetWidth(float width);
76 void SetMinWidth(float width);
77 void SetMaxWidth(float width);
78 void SetPreferredWidth(float width);
/haiku/src/add-ons/screen_savers/simpleclock/
H A DSimpleClock.cpp31 float length, float coeff, float width);
82 float width = view->Bounds().Width(); local
100 centerX = width / 2.0;
162 float coeff, float width)
164 float alpha = width / length;
161 _drawArrow(BView *view, float x0, float y0, float angle, float length, float coeff, float width) argument
/haiku/src/kits/shared/
H A DTextTable.cpp63 void SetWidth(int32 width) argument
65 fWidth = width;
70 // TODO: Full-width character support.
78 // TODO: Full-width character support.
231 int32 width = neededWidth; local
241 width -= truncateBy;
258 line.SetTo('-', width);
/haiku/src/libs/print/libprint/
H A DHalftoneView.cpp34 const int width = Bounds().IntegerWidth()+1; local
42 uchar value = x * 255 / width;
74 const int widthBytes = (width + 7) / 8; // byte boundary
88 halftone.Dither(buffer, src, 0, y, width);
93 for (int x = 0; x < width; x ++, dst ++) {
/haiku/src/kits/tracker/
H A DTrackerSettingsWindow.cpp126 // constraint the listview width so that the longest item fits
127 float width = 0; local
128 fSettingsTypeListView->GetPreferredSize(&width, NULL);
129 width += B_V_SCROLL_BAR_WIDTH;
130 fSettingsTypeListView->SetExplicitMinSize(BSize(width, 0));
131 fSettingsTypeListView->SetExplicitMaxSize(BSize(width, B_SIZE_UNLIMITED));
/haiku/src/apps/softwareupdater/
H A DCheckManager.cpp212 int width = 70; local
218 width = winSize.ws_col - 7;
222 int ipart = (int)(completionPercentage * width);
223 int fpart = (int)(((completionPercentage * width) - ipart) * 8);
227 for (position = 0; position < width; position++) {
/haiku/src/tests/kits/interface/pictureprint/
H A DPreview.cpp121 void PreviewView::FrameResized(float width, float height) { argument
174 float width = PageRect().Width(); local
176 x = width - frame.Width();
187 scroll->SetProportion ((width - x) / width);
/haiku/src/apps/webpositive/
H A DBookmarkBar.cpp141 BookmarkBar::FrameResized(float width, float height) argument
149 // Ignore the width of the "more" menu if it would disappear after
160 if (frame.right > width - overflowMenuWidth)
172 if (frame.Width() + rightmost > width - overflowMenuWidth)
201 BMenuBar::FrameResized(width, height);
211 size.width = 32;
/haiku/src/add-ons/translators/ppm/
H A DPPMTranslator.cpp227 status_t read_ppm_header(BDataIO* io, int* width, int* rowbytes, int* height,
229 status_t read_bits_header(BDataIO* io, int skipped, int* width, int* rowbytes,
257 int width, rowbytes, height, max; local
260 status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
307 int width, rowbytes, height, max; local
313 status_t err = read_ppm_header(inSource, &width, &rowbytes, &height, &max,
339 out_rowbytes = 3 * width;
362 out_rowbytes = calc_rowbytes(out_space, width);
384 sprintf(data, "%d %d %d\n", width, height, max);
397 hdr.bounds.right = B_HOST_TO_BENDIAN_FLOAT(width
639 read_ppm_header(BDataIO* inSource, int* width, int* rowbytes, int* height, int* max, bool* ascii, color_space* space, bool* is_ppm, char** comment) argument
769 read_bits_header(BDataIO* io, int skipped, int* width, int* rowbytes, int* height, int* max, bool* ascii, color_space* space) argument
[all...]
/haiku/src/apps/deskbar/
H A DWindowMenuItem.cpp79 TWindowMenuItem::GetContentSize(float* width, float* height) argument
81 if (width != NULL) {
83 *width = sHPad + fLabelWidth + sHPad;
85 *width += fBitmap->Bounds().Width() + sLabelOffset;
87 *width = Frame().Width()/* - sHPad*/;
/haiku/src/tools/html5_remote_desktop/
H A DHaikuRemoteDesktop.js435 RemoteRect.prototype.width = function()
461 return this.left + this.width() / 2;
484 context.ellipse(this.centerX(), this.centerY(), this.width() / 2,
643 this.width = remoteMessage.dataView.readUint32();
658 this.canvas.width = this.width;
661 if (this.width == 0 || this.height == 0)
665 var imageData = context.createImageData(this.width, this.height);
703 for (var x = 0; x < this.width; x++) {
721 for (var x = 0; x < this.width;
[all...]
/haiku/src/apps/magnify/
H A DMagnify.cpp749 TWindow::Zoom(BPoint /*position*/, float /*width*/, float /*height*/)
785 TWindow::GetPreferredSize(float* width, float* height) argument
787 *width = fHPixelCount * fPixelSize; // calc window width
790 *width += 20;
809 float width, height; local
810 GetPreferredSize(&width, &height);
812 ResizeTo(width, height);
922 float width; local
924 GetPreferredSize(&width,
936 float width; local
1179 FrameResized(float width, float height) argument
1295 int32 width, height; local
1473 int32 width, height; local
1820 PixelCount(int32* width, int32* height) argument
1965 FrameResized(float width, float height) argument
1973 Resize(int32 width, int32 height) argument
1985 int32 width, height; local
2041 DrawGrid(int32 width, int32 height, BRect destRect, int32 pixelSize) argument
[all...]
/haiku/src/apps/midiplayer/
H A DScopeView.cpp170 int32 width = (int32) Bounds().Width(); local
185 for (int32 i = 0; i < width; i++) {
186 x = sx / width;
/haiku/src/apps/diskprobe/
H A DAttributeWindow.cpp37 button_width width = B_WIDTH_FROM_WIDEST,
48 EditorTabView::EditorTabView(const char *name, button_width width, uint32 flags) argument
49 : BTabView(name, width, flags)

Completed in 285 milliseconds

<<11121314151617181920>>