• Home
  • Raw
  • Download

Lines Matching refs:CGFloat

91 static CGFloat CGRectGetMinX_inline(const CGRect& rect) {  in CGRectGetMinX_inline()
95 static CGFloat CGRectGetMaxX_inline(const CGRect& rect) { in CGRectGetMaxX_inline()
99 static CGFloat CGRectGetMinY_inline(const CGRect& rect) { in CGRectGetMinY_inline()
103 static CGFloat CGRectGetMaxY_inline(const CGRect& rect) { in CGRectGetMaxY_inline()
107 static CGFloat CGRectGetWidth_inline(const CGRect& rect) { in CGRectGetWidth_inline()
163 static CGFloat ScalarToCG(SkScalar scalar) { in ScalarToCG()
164 if (sizeof(CGFloat) == sizeof(float)) { in ScalarToCG()
167 SkASSERT(sizeof(CGFloat) == sizeof(double)); in ScalarToCG()
168 return (CGFloat) SkScalarToDouble(scalar); in ScalarToCG()
172 static SkScalar CGToScalar(CGFloat cgFloat) { in CGToScalar()
173 if (sizeof(CGFloat) == sizeof(float)) { in CGToScalar()
176 SkASSERT(sizeof(CGFloat) == sizeof(double)); in CGToScalar()
181 static float CGToFloat(CGFloat cgFloat) { in CGToFloat()
182 if (sizeof(CGFloat) == sizeof(float)) { in CGToFloat()
185 SkASSERT(sizeof(CGFloat) == sizeof(double)); in CGToFloat()
267 static bool find_dict_CGFloat(CFDictionaryRef dict, CFStringRef name, CGFloat* value) { in find_dict_CGFloat()
312 int operator()(CGFloat s) { return s + 0.5; } in operator ()()
315 CGFloat operator()(CGFloat s) { return s; } in operator ()()
325 static CGFloat(&get_NSFontWeight_mapping())[11] { in get_NSFontWeight_mapping()
335 CGFloat defaultValue; in get_NSFontWeight_mapping()
350 static CGFloat nsFontWeights[11]; in get_NSFontWeight_mapping()
358 nsFontWeights[i++] = *(static_cast<CGFloat*>(nsFontWeightValuePtr)); in get_NSFontWeight_mapping()
373 static CGFloat fontstyle_to_ct_weight(int fontstyleWeight) {
374 using Interpolator = LinearInterpolater<int, CGFloat, CGFloatIdentity>;
382 CGFloat(&nsFontWeights)[11] = get_NSFontWeight_mapping(); in __anon53a50f370602()
400 static int ct_weight_to_fontstyle(CGFloat cgWeight, bool fromDataProvider) { in ct_weight_to_fontstyle()
401 using Interpolator = LinearInterpolater<CGFloat, int, RoundCGFloatToInt>; in ct_weight_to_fontstyle()
429 CGFloat(&nsFontWeights)[11] = get_NSFontWeight_mapping(); in ct_weight_to_fontstyle()
444 using Interpolator = LinearInterpolater<int, CGFloat, CGFloatIdentity>; in fontstyle_to_ct_width()
457 static int ct_width_to_fontstyle(CGFloat cgWidth) { in ct_width_to_fontstyle()
458 using Interpolator = LinearInterpolater<CGFloat, int, RoundCGFloatToInt>; in ct_width_to_fontstyle()
477 CGFloat weight, width, slant; in fontstyle_from_descriptor()
613 CGFloat ctWeight = fontstyle_to_ct_weight(style.weight()); in create_descriptor()
620 CGFloat ctWidth = fontstyle_to_ct_width(style.weight()); in create_descriptor()
627 CGFloat ctSlant = style.slant() == SkFontStyle::kUpright_Slant ? 0 : 1; in create_descriptor()
752 static UniqueCFRef<CTFontRef> ctfont_create_exact_copy(CTFontRef baseFont, CGFloat textSize, in ctfont_create_exact_copy()
801 CGFloat textSize = ScalarToCG(scale.y()); in SkScalerContext_Mac()
1338 CGFloat fontSize = CTFontGetSize(this->fCTFont.get()); in generateFontMetrics()
1897 CGFloat variationCGFloat; in onGetVariationDesignPosition()