• Home
  • Raw
  • Download

Lines Matching refs:CGFloat

87 static CGFloat CGRectGetMinX_inline(const CGRect& rect) {  in CGRectGetMinX_inline()
91 static CGFloat CGRectGetMaxX_inline(const CGRect& rect) { in CGRectGetMaxX_inline()
95 static CGFloat CGRectGetMinY_inline(const CGRect& rect) { in CGRectGetMinY_inline()
99 static CGFloat CGRectGetMaxY_inline(const CGRect& rect) { in CGRectGetMaxY_inline()
103 static CGFloat CGRectGetWidth_inline(const CGRect& rect) { in CGRectGetWidth_inline()
159 static CGFloat ScalarToCG(SkScalar scalar) { in ScalarToCG()
160 if (sizeof(CGFloat) == sizeof(float)) { in ScalarToCG()
163 SkASSERT(sizeof(CGFloat) == sizeof(double)); in ScalarToCG()
164 return (CGFloat) SkScalarToDouble(scalar); in ScalarToCG()
168 static SkScalar CGToScalar(CGFloat cgFloat) { in CGToScalar()
169 if (sizeof(CGFloat) == sizeof(float)) { in CGToScalar()
172 SkASSERT(sizeof(CGFloat) == sizeof(double)); in CGToScalar()
177 static float CGToFloat(CGFloat cgFloat) { in CGToFloat()
178 if (sizeof(CGFloat) == sizeof(float)) { in CGToFloat()
181 SkASSERT(sizeof(CGFloat) == sizeof(double)); in CGToFloat()
482 static bool find_dict_CGFloat(CFDictionaryRef dict, CFStringRef name, CGFloat* value) { in find_dict_CGFloat()
527 int operator()(CGFloat s) { return s + 0.5; } in operator ()()
530 CGFloat operator()(CGFloat s) { return s; } in operator ()()
540 static CGFloat(&get_NSFontWeight_mapping())[11] { in get_NSFontWeight_mapping()
550 CGFloat defaultValue; in get_NSFontWeight_mapping()
565 static CGFloat nsFontWeights[11]; in get_NSFontWeight_mapping()
573 nsFontWeights[i++] = *(static_cast<CGFloat*>(nsFontWeightValuePtr)); in get_NSFontWeight_mapping()
588 static CGFloat fontstyle_to_ct_weight(int fontstyleWeight) {
589 using Interpolator = LinearInterpolater<int, CGFloat, CGFloatIdentity>;
597 CGFloat(&nsFontWeights)[11] = get_NSFontWeight_mapping(); in __anoncd63d1c30602()
615 static int ct_weight_to_fontstyle(CGFloat cgWeight, bool fromDataProvider) { in ct_weight_to_fontstyle()
616 using Interpolator = LinearInterpolater<CGFloat, int, RoundCGFloatToInt>; in ct_weight_to_fontstyle()
644 CGFloat(&nsFontWeights)[11] = get_NSFontWeight_mapping(); in ct_weight_to_fontstyle()
659 using Interpolator = LinearInterpolater<int, CGFloat, CGFloatIdentity>; in fontstyle_to_ct_width()
672 static int ct_width_to_fontstyle(CGFloat cgWidth) { in ct_width_to_fontstyle()
673 using Interpolator = LinearInterpolater<CGFloat, int, RoundCGFloatToInt>; in ct_width_to_fontstyle()
692 CGFloat weight, width, slant; in fontstyle_from_descriptor()
820 CGFloat ctWeight = fontstyle_to_ct_weight(style.weight()); in create_descriptor()
827 CGFloat ctWidth = fontstyle_to_ct_width(style.width()); in create_descriptor()
834 CGFloat ctSlant = style.slant() == SkFontStyle::kUpright_Slant ? 0 : 1; in create_descriptor()
955 static SkUniqueCFRef<CTFontRef> ctfont_create_exact_copy(CTFontRef baseFont, CGFloat textSize, in ctfont_create_exact_copy()
1003 CGFloat textSize = ScalarToCG(scale.y()); in SkScalerContext_Mac()
1506 CGFloat fontSize = CTFontGetSize(this->fCTFont.get()); in generateFontMetrics()
2099 CGFloat variationCGFloat; in onGetVariationDesignPosition()