Searched refs:scale (Results 1 - 25 of 135) sorted by last modified time

123456

/haiku/src/apps/drivesetup/
H A DDiskView.cpp354 double scale = (double)size / parentSize; local
364 PartitionView* view = new PartitionView(name.String(), scale, offset,
369 layout->AddView(_FindInsertIndex(view, layout), view, scale); local
416 double scale = (double)size / parentSize; local
420 B_TRANSLATE("Empty space"), scale, offset,
425 layout->AddView(_FindInsertIndex(view, layout), view, scale); local
478 float scale = 1.0; local
479 view = new PartitionView("Disk", scale, 0, 0, -1);
480 layout->AddView(view, scale);
484 scale
[all...]
/haiku/src/servers/app/font/
H A DFontCacheEntry.cpp355 double scale)
374 pathAdapter.init(glyph->data, glyph->data_size, x, y, scale);
352 InitAdaptors(const GlyphCache* glyph, double x, double y, GlyphMonoAdapter& monoAdapter, GlyphGray8Adapter& gray8Adapter, GlyphPathAdapter& pathAdapter, double scale) argument
/haiku/src/kits/tracker/
H A DPoseView.cpp2231 int32 scale; local
2234 } else if (message->FindInt32("scale", &scale) == B_OK
2236 if (scale == 0 && (int32)UnscaledIconSizeInt() != 32) {
2244 } else if (scale == 1 && (int32)UnscaledIconSizeInt() != 128) {
/haiku/src/servers/app/
H A DServerWindow.cpp1589 float scale; local
1590 if (link.Read<float>(&scale) != B_OK)
1594 "View: %s -> scale: %.2f\n", Title(), fCurrentView->Name(),
1595 scale));
1597 fCurrentView->SetScale(scale);
1603 float scale = fCurrentView->CurrentState()->Scale(); local
1606 "View: %s -> scale: %.2f\n",
1607 Title(), fCurrentView->Name(), scale));
1610 fLink.Attach<float>(scale);
2232 // NOTE: looks like this call is NOT affected by origin and scale
2788 float scale = fCurrentView->CurrentState()->CombinedScale(); local
3323 float scale; local
[all...]
/haiku/src/apps/haikudepot/ui/
H A DPackageListView.cpp863 float scale = be_plain_font->Size() / 12.f; local
867 150 * scale, 50 * scale, 300 * scale,
870 80 * scale, 50 * scale, 100 * scale,
873 300 * scale, 80 * scale, 1000 * scale,
[all...]
/haiku/src/libs/icon/transformer/
H A DStrokeTransformer.cpp125 double scale = fSource->ApproximationScale(); local
128 scale *= factor;
129 return scale;
H A DPerspectiveTransformer.cpp165 return fSource->ApproximationScale() * scale();
H A DContourTransformer.cpp114 double scale = fSource->ApproximationScale(); local
117 scale *= factor;
118 return scale;
H A DAffineTransformer.cpp96 return fabs(fSource->ApproximationScale() * scale());
141 // scale
H A DPathSource.cpp83 PathSource::SetGlobalScale(double scale) argument
85 fGlobalScale = scale;
H A DPathSource.h43 void SetGlobalScale(double scale);
/haiku/src/apps/glteapot/
H A DObjectView.cpp252 float scale = displayScale; local
253 glOrtho(-scale, scale, -scale, scale, -scale * depthOfView,
254 scale * depthOfView);
574 float scale = displayScale; local
580 glOrtho(-scale / fYxRatio, scale / fYxRati
612 float scale = displayScale; local
[all...]
/haiku/src/libs/icon/shape/
H A DVectorPath.cpp498 float scale = (distIn + distOut) / distIn; local
499 v.x *= scale;
500 v.y *= scale;
535 float scale = (distIn + distOut) / distOut; local
536 v.x *= scale;
537 v.y *= scale;
706 VectorPath::FindBezierScale(int32 index, BPoint point, double* scale) const
708 if (index >= 0 && index < fPointCount && scale) {
714 *scale = 0.0;
727 *scale
[all...]
H A DShape.h120 void SetGlobalScale(double scale);
126 virtual bool Visible(float scale) const = 0;
H A DPathSourceShape.cpp60 // min visibility scale
61 if (archive->FindFloat("min visibility scale", &fMinVisibilityScale) < B_OK)
64 // max visibility scale
65 if (archive->FindFloat("max visibility scale", &fMaxVisibilityScale) < B_OK)
87 // min visibility scale
89 ret = into->AddFloat("min visibility scale", fMinVisibilityScale);
91 // max visibility scale
93 ret = into->AddFloat("max visibility scale", fMaxVisibilityScale);
127 // min visibility scale
130 // max visibility scale
152 SetMinVisibilityScale(float scale) argument
163 SetMaxVisibilityScale(float scale) argument
[all...]
H A DPathSourceShape.h61 void SetMinVisibilityScale(float scale);
64 void SetMaxVisibilityScale(float scale);
68 virtual bool Visible(float scale) const;
H A DShape.cpp474 Shape::SetGlobalScale(double scale) argument
476 fPathSource.SetGlobalScale(scale);
H A DReferenceImage.h59 virtual bool Visible(float scale) const
/haiku/src/apps/icon-o-matic/shape/
H A DPathManipulator.cpp1242 scale_point(BPoint a, BPoint b, float scale) argument
1244 return BPoint(a.x + (b.x - a.x) * scale,
1245 a.y + (b.y - a.y) * scale);
1252 double scale; local
1263 if (fPath->FindBezierScale(index - 1, where, &scale)
1264 && scale >= 0.0 && scale <= 1.0
1265 && fPath->GetPoint(index - 1, scale, point)) {
1272 where = scale_point(previousOut, nextIn, scale);
1274 previousOut = scale_point(previous, previousOut, scale);
[all...]
/haiku/src/libs/icon/
H A DIconRenderer.h66 void SetScale(double scale);
H A DIconRenderer.cpp476 IconRenderer::SetScale(double scale) argument
479 fGlobalTransform.multiply(agg::trans_affine_scaling(scale));
565 if (!shape->Visible(fGlobalTransform.scale())) {
607 // global scale
608 shape->SetGlobalScale(max_c(1.0, transform.scale()));
/haiku/headers/libs/agg/
H A Dagg_trans_perspective.h98 const trans_perspective& scale(double s);
99 const trans_perspective& scale(double x, double y);
221 double scale() const;
557 inline const trans_perspective& trans_perspective::scale(double s) function in class:agg::trans_perspective
564 inline const trans_perspective& trans_perspective::scale(double x, double y) function in class:agg::trans_perspective
680 inline double trans_perspective::scale() const function in class:agg::trans_perspective
H A Dagg_trans_affine.h50 // * scale X to 2.0,
51 // * scale Y to 1.5,
158 const trans_affine& scale(double s);
159 const trans_affine& scale(double x, double y);
174 // there's no check for validity. If you set scale to 0 and
270 // Get the average scale (by X and Y).
273 double scale() const;
319 inline double trans_affine::scale() const function in class:agg::trans_affine
352 inline const trans_affine& trans_affine::scale(double x, double y) function in class:agg::trans_affine
366 inline const trans_affine& trans_affine::scale(doubl function in class:agg::trans_affine
[all...]
/haiku/src/kits/interface/layouter/
H A DSimpleLayouter.cpp288 // sum up the floating point weight, so we get a scale
289 double scale = 0; local
292 scale += info->weight;
297 if (scale == 0) {
305 // We scale the weights so that their sum is about 100000. This should
306 // give us ample resolution. If possible make the scale integer, so that
308 if (scale >= 1 && scale <= 100000)
309 scale = lround(100000 / scale);
[all...]
/haiku/src/apps/icon-o-matic/import_export/svg/
H A DDocumentBuilder.cpp90 double scale = 64.0 / size; local
91 printf("scale: %f\n", scale);
95 transform.ScaleBy(B_ORIGIN, scale, scale);
300 // Finally, scale the gradient according to the global scaling to fit
339 stroke->width(stroke->width() * shape->scale());

Completed in 159 milliseconds

123456