From 9dc252f2f97d1598583213cad1ead6920d255869 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Fri, 12 Aug 2016 10:33:20 -0400 Subject: [ios, macos] fixes #5958 naming conventions --- platform/darwin/scripts/generate-style-code.js | 10 ++-- platform/darwin/src/MGLBackgroundStyleLayer.mm | 6 +- platform/darwin/src/MGLCircleStyleLayer.mm | 10 ++-- platform/darwin/src/MGLFillStyleLayer.mm | 12 ++-- platform/darwin/src/MGLLineStyleLayer.mm | 22 ++++---- platform/darwin/src/MGLRasterStyleLayer.mm | 14 ++--- platform/darwin/src/MGLStyleAttribute.h | 16 +++--- platform/darwin/src/MGLStyleAttribute.mm | 16 +++--- platform/darwin/src/MGLSymbolStyleLayer.mm | 76 +++++++++++++------------- 9 files changed, 91 insertions(+), 91 deletions(-) (limited to 'platform') diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index e28b4c0d11..04bddbc474 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -145,16 +145,16 @@ global.arraySetterImplementation = function(property) { global.getterImplementation = function(property, layerType) { switch (property.type) { case 'boolean': - return `return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->get${camelize(property.name)}()];` case 'number': - return `return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->get${camelize(property.name)}()];` case 'string': - return `return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->get${camelize(property.name)}()];` case 'enum': var objCType = `${prefix}${camelize(layerType)}${suffix}${camelize(property.name)}`; return `MGLGetEnumProperty(${camelize(property.name)}, ${mbglType(property)}, ${objCType});`; case 'color': - return `return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->get${camelize(property.name)}()];` case 'array': return arrayGetterImplementation(property); default: @@ -163,7 +163,7 @@ global.getterImplementation = function(property, layerType) { } global.arrayGetterImplementation = function(property) { - return `return [MGLStyleAttribute mbgl_${convertedType(property)}PropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_${convertedType(property)}WithPropertyValue${camelize(convertedType(property))}:self.layer->get${camelize(property.name)}()];` } global.convertedType = function(property) { diff --git a/platform/darwin/src/MGLBackgroundStyleLayer.mm b/platform/darwin/src/MGLBackgroundStyleLayer.mm index 5ba581869b..1a991a65e9 100644 --- a/platform/darwin/src/MGLBackgroundStyleLayer.mm +++ b/platform/darwin/src/MGLBackgroundStyleLayer.mm @@ -37,7 +37,7 @@ } - (id )backgroundColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getBackgroundColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getBackgroundColor()]; } - (void)setBackgroundPattern:(id )backgroundPattern { @@ -46,7 +46,7 @@ } - (id )backgroundPattern { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getBackgroundPattern()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getBackgroundPattern()]; } - (void)setBackgroundOpacity:(id )backgroundOpacity { @@ -55,7 +55,7 @@ } - (id )backgroundOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getBackgroundOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getBackgroundOpacity()]; } @end diff --git a/platform/darwin/src/MGLCircleStyleLayer.mm b/platform/darwin/src/MGLCircleStyleLayer.mm index d655297131..d18a89833d 100644 --- a/platform/darwin/src/MGLCircleStyleLayer.mm +++ b/platform/darwin/src/MGLCircleStyleLayer.mm @@ -37,7 +37,7 @@ } - (id )circleRadius { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getCircleRadius()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getCircleRadius()]; } - (void)setCircleColor:(id )circleColor { @@ -46,7 +46,7 @@ } - (id )circleColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getCircleColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getCircleColor()]; } - (void)setCircleBlur:(id )circleBlur { @@ -55,7 +55,7 @@ } - (id )circleBlur { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getCircleBlur()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getCircleBlur()]; } - (void)setCircleOpacity:(id )circleOpacity { @@ -64,7 +64,7 @@ } - (id )circleOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getCircleOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getCircleOpacity()]; } - (void)setCircleTranslate:(id )circleTranslate { @@ -73,7 +73,7 @@ } - (id )circleTranslate { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getCircleTranslate()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getCircleTranslate()]; } - (void)setCircleTranslateAnchor:(id )circleTranslateAnchor { diff --git a/platform/darwin/src/MGLFillStyleLayer.mm b/platform/darwin/src/MGLFillStyleLayer.mm index a9c771827f..8a71a186c5 100644 --- a/platform/darwin/src/MGLFillStyleLayer.mm +++ b/platform/darwin/src/MGLFillStyleLayer.mm @@ -37,7 +37,7 @@ } - (id )fillAntialias { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getFillAntialias()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getFillAntialias()]; } - (void)setFillOpacity:(id )fillOpacity { @@ -46,7 +46,7 @@ } - (id )fillOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getFillOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getFillOpacity()]; } - (void)setFillColor:(id )fillColor { @@ -55,7 +55,7 @@ } - (id )fillColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getFillColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getFillColor()]; } - (void)setFillOutlineColor:(id )fillOutlineColor { @@ -64,7 +64,7 @@ } - (id )fillOutlineColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getFillOutlineColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getFillOutlineColor()]; } - (void)setFillTranslate:(id )fillTranslate { @@ -73,7 +73,7 @@ } - (id )fillTranslate { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getFillTranslate()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getFillTranslate()]; } - (void)setFillTranslateAnchor:(id )fillTranslateAnchor { @@ -91,7 +91,7 @@ } - (id )fillPattern { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getFillPattern()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getFillPattern()]; } @end diff --git a/platform/darwin/src/MGLLineStyleLayer.mm b/platform/darwin/src/MGLLineStyleLayer.mm index b4ab97e679..281764242c 100644 --- a/platform/darwin/src/MGLLineStyleLayer.mm +++ b/platform/darwin/src/MGLLineStyleLayer.mm @@ -55,7 +55,7 @@ } - (id )lineMiterLimit { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineMiterLimit()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineMiterLimit()]; } - (void)setLineRoundLimit:(id )lineRoundLimit { @@ -64,7 +64,7 @@ } - (id )lineRoundLimit { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineRoundLimit()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineRoundLimit()]; } #pragma mark - Accessing the Paint Attributes @@ -75,7 +75,7 @@ } - (id )lineOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineOpacity()]; } - (void)setLineColor:(id )lineColor { @@ -84,7 +84,7 @@ } - (id )lineColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getLineColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getLineColor()]; } - (void)setLineTranslate:(id )lineTranslate { @@ -93,7 +93,7 @@ } - (id )lineTranslate { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getLineTranslate()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getLineTranslate()]; } - (void)setLineTranslateAnchor:(id )lineTranslateAnchor { @@ -111,7 +111,7 @@ } - (id )lineWidth { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineWidth()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineWidth()]; } - (void)setLineGapWidth:(id )lineGapWidth { @@ -120,7 +120,7 @@ } - (id )lineGapWidth { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineGapWidth()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineGapWidth()]; } - (void)setLineOffset:(id )lineOffset { @@ -129,7 +129,7 @@ } - (id )lineOffset { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineOffset()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineOffset()]; } - (void)setLineBlur:(id )lineBlur { @@ -138,7 +138,7 @@ } - (id )lineBlur { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getLineBlur()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getLineBlur()]; } - (void)setLineDasharray:(id )lineDasharray { @@ -147,7 +147,7 @@ } - (id )lineDasharray { - return [MGLStyleAttribute mbgl_numberArrayPropertyValueWith:self.layer->getLineDasharray()]; + return [MGLStyleAttribute mbgl_numberArrayWithPropertyValueNumberArray:self.layer->getLineDasharray()]; } - (void)setLinePattern:(id )linePattern { @@ -156,7 +156,7 @@ } - (id )linePattern { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getLinePattern()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getLinePattern()]; } @end diff --git a/platform/darwin/src/MGLRasterStyleLayer.mm b/platform/darwin/src/MGLRasterStyleLayer.mm index c15ebd1d45..291b7d60d8 100644 --- a/platform/darwin/src/MGLRasterStyleLayer.mm +++ b/platform/darwin/src/MGLRasterStyleLayer.mm @@ -37,7 +37,7 @@ } - (id )rasterOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterOpacity()]; } - (void)setRasterHueRotate:(id )rasterHueRotate { @@ -46,7 +46,7 @@ } - (id )rasterHueRotate { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterHueRotate()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterHueRotate()]; } - (void)setRasterBrightnessMin:(id )rasterBrightnessMin { @@ -55,7 +55,7 @@ } - (id )rasterBrightnessMin { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterBrightnessMin()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterBrightnessMin()]; } - (void)setRasterBrightnessMax:(id )rasterBrightnessMax { @@ -64,7 +64,7 @@ } - (id )rasterBrightnessMax { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterBrightnessMax()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterBrightnessMax()]; } - (void)setRasterSaturation:(id )rasterSaturation { @@ -73,7 +73,7 @@ } - (id )rasterSaturation { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterSaturation()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterSaturation()]; } - (void)setRasterContrast:(id )rasterContrast { @@ -82,7 +82,7 @@ } - (id )rasterContrast { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterContrast()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterContrast()]; } - (void)setRasterFadeDuration:(id )rasterFadeDuration { @@ -91,7 +91,7 @@ } - (id )rasterFadeDuration { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getRasterFadeDuration()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getRasterFadeDuration()]; } @end diff --git a/platform/darwin/src/MGLStyleAttribute.h b/platform/darwin/src/MGLStyleAttribute.h index 4f2424201e..564f44ad00 100644 --- a/platform/darwin/src/MGLStyleAttribute.h +++ b/platform/darwin/src/MGLStyleAttribute.h @@ -6,20 +6,20 @@ @interface MGLStyleAttribute : NSObject -+ (id )mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue)property; ++ (id )mbgl_colorWithPropertyValueColor:(mbgl::style::PropertyValue)property; -+ (id )mbgl_numberPropertyValueWith:(mbgl::style::PropertyValue)property; ++ (id )mbgl_numberWithPropertyValueNumber:(mbgl::style::PropertyValue)property; -+ (id )mbgl_boolPropertyValueWith:(mbgl::style::PropertyValue)property; ++ (id )mbgl_boolWithPropertyValueBool:(mbgl::style::PropertyValue)property; -+ (id )mbgl_stringPropertyValueWith:(mbgl::style::PropertyValue)property; ++ (id )mbgl_stringWithPropertyValueString:(mbgl::style::PropertyValue)property; -+ (id )mbgl_offsetPropertyValueWith:(mbgl::style::PropertyValue>)property; ++ (id )mbgl_offsetWithPropertyValueOffset:(mbgl::style::PropertyValue>)property; -+ (id )mbgl_paddingPropertyValueWith:(mbgl::style::PropertyValue>)property; ++ (id )mbgl_paddingWithPropertyValuePadding:(mbgl::style::PropertyValue>)property; -+ (id )mbgl_stringArrayPropertyValueWith:(mbgl::style::PropertyValue>)property; ++ (id )mbgl_stringArrayWithPropertyValueStringArray:(mbgl::style::PropertyValue>)property; -+ (id )mbgl_numberArrayPropertyValueWith:(mbgl::style::PropertyValue>)property; ++ (id )mbgl_numberArrayWithPropertyValueNumberArray:(mbgl::style::PropertyValue>)property; @end diff --git a/platform/darwin/src/MGLStyleAttribute.mm b/platform/darwin/src/MGLStyleAttribute.mm index a30ef534f4..38c212ddd4 100644 --- a/platform/darwin/src/MGLStyleAttribute.mm +++ b/platform/darwin/src/MGLStyleAttribute.mm @@ -8,7 +8,7 @@ @implementation MGLStyleAttribute -+ (id )mbgl_colorPropertyValueWith:(mbgl::style::PropertyValue)property ++ (id)mbgl_colorWithPropertyValueColor:(mbgl::style::PropertyValue)property { if (property.isConstant()) { return [MGLColor mbgl_colorWithColor:property.asConstant()]; @@ -19,7 +19,7 @@ } } -+ (id )mbgl_numberPropertyValueWith:(mbgl::style::PropertyValue)property ++ (id )mbgl_numberWithPropertyValueNumber:(mbgl::style::PropertyValue)property { if (property.isConstant()) { return @(property.asConstant()); @@ -30,7 +30,7 @@ } } -+ (id)mbgl_boolPropertyValueWith:(mbgl::style::PropertyValue)property ++ (id)mbgl_boolWithPropertyValueBool:(mbgl::style::PropertyValue)property { if (property.isConstant()) { return @(property.asConstant()); @@ -41,7 +41,7 @@ } } -+ (id)mbgl_stringPropertyValueWith:(mbgl::style::PropertyValue)property ++ (id)mbgl_stringWithPropertyValueString:(mbgl::style::PropertyValue)property { if (property.isConstant()) { return @(property.asConstant().c_str()); @@ -52,7 +52,7 @@ } } -+ (id)mbgl_offsetPropertyValueWith:(mbgl::style::PropertyValue >)property ++ (id)mbgl_offsetWithPropertyValueOffset:(mbgl::style::PropertyValue >)property { if (property.isConstant()) { auto offset = property.asConstant(); @@ -64,7 +64,7 @@ } } -+ (id)mbgl_paddingPropertyValueWith:(mbgl::style::PropertyValue >)property ++ (id)mbgl_paddingWithPropertyValuePadding:(mbgl::style::PropertyValue >)property { if (property.isConstant()) { auto padding = property.asConstant(); @@ -76,7 +76,7 @@ } } -+ (id)mbgl_stringArrayPropertyValueWith:(mbgl::style::PropertyValue >)property ++ (id)mbgl_stringArrayWithPropertyValueStringArray:(mbgl::style::PropertyValue >)property { if (property.isConstant()) { auto strings = property.asConstant(); @@ -92,7 +92,7 @@ } } -+ (id)mbgl_numberArrayPropertyValueWith:(mbgl::style::PropertyValue >)property ++ (id)mbgl_numberArrayWithPropertyValueNumberArray:(mbgl::style::PropertyValue >)property { if (property.isConstant()) { auto numbers = property.asConstant(); diff --git a/platform/darwin/src/MGLSymbolStyleLayer.mm b/platform/darwin/src/MGLSymbolStyleLayer.mm index c15a869c00..88ebfd43e8 100644 --- a/platform/darwin/src/MGLSymbolStyleLayer.mm +++ b/platform/darwin/src/MGLSymbolStyleLayer.mm @@ -46,7 +46,7 @@ } - (id )symbolSpacing { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getSymbolSpacing()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getSymbolSpacing()]; } - (void)setSymbolAvoidEdges:(id )symbolAvoidEdges { @@ -55,7 +55,7 @@ } - (id )symbolAvoidEdges { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getSymbolAvoidEdges()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getSymbolAvoidEdges()]; } - (void)setIconAllowOverlap:(id )iconAllowOverlap { @@ -64,7 +64,7 @@ } - (id )iconAllowOverlap { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getIconAllowOverlap()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getIconAllowOverlap()]; } - (void)setIconIgnorePlacement:(id )iconIgnorePlacement { @@ -73,7 +73,7 @@ } - (id )iconIgnorePlacement { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getIconIgnorePlacement()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getIconIgnorePlacement()]; } - (void)setIconOptional:(id )iconOptional { @@ -82,7 +82,7 @@ } - (id )iconOptional { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getIconOptional()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getIconOptional()]; } - (void)setIconRotationAlignment:(id )iconRotationAlignment { @@ -100,7 +100,7 @@ } - (id )iconSize { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconSize()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconSize()]; } - (void)setIconTextFit:(id )iconTextFit { @@ -118,7 +118,7 @@ } - (id )iconTextFitPadding { - return [MGLStyleAttribute mbgl_paddingPropertyValueWith:self.layer->getIconTextFitPadding()]; + return [MGLStyleAttribute mbgl_paddingWithPropertyValuePadding:self.layer->getIconTextFitPadding()]; } - (void)setIconImage:(id )iconImage { @@ -127,7 +127,7 @@ } - (id )iconImage { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getIconImage()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getIconImage()]; } - (void)setIconRotate:(id )iconRotate { @@ -136,7 +136,7 @@ } - (id )iconRotate { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconRotate()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconRotate()]; } - (void)setIconPadding:(id )iconPadding { @@ -145,7 +145,7 @@ } - (id )iconPadding { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconPadding()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconPadding()]; } - (void)setIconKeepUpright:(id )iconKeepUpright { @@ -154,7 +154,7 @@ } - (id )iconKeepUpright { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getIconKeepUpright()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getIconKeepUpright()]; } - (void)setIconOffset:(id )iconOffset { @@ -163,7 +163,7 @@ } - (id )iconOffset { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getIconOffset()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getIconOffset()]; } - (void)setTextPitchAlignment:(id )textPitchAlignment { @@ -190,7 +190,7 @@ } - (id )textField { - return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->getTextField()]; + return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->getTextField()]; } - (void)setTextFont:(id )textFont { @@ -199,7 +199,7 @@ } - (id )textFont { - return [MGLStyleAttribute mbgl_stringArrayPropertyValueWith:self.layer->getTextFont()]; + return [MGLStyleAttribute mbgl_stringArrayWithPropertyValueStringArray:self.layer->getTextFont()]; } - (void)setTextSize:(id )textSize { @@ -208,7 +208,7 @@ } - (id )textSize { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextSize()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextSize()]; } - (void)setTextMaxWidth:(id )textMaxWidth { @@ -217,7 +217,7 @@ } - (id )textMaxWidth { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextMaxWidth()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextMaxWidth()]; } - (void)setTextLineHeight:(id )textLineHeight { @@ -226,7 +226,7 @@ } - (id )textLineHeight { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextLineHeight()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextLineHeight()]; } - (void)setTextLetterSpacing:(id )textLetterSpacing { @@ -235,7 +235,7 @@ } - (id )textLetterSpacing { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextLetterSpacing()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextLetterSpacing()]; } - (void)setTextJustify:(id )textJustify { @@ -262,7 +262,7 @@ } - (id )textMaxAngle { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextMaxAngle()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextMaxAngle()]; } - (void)setTextRotate:(id )textRotate { @@ -271,7 +271,7 @@ } - (id )textRotate { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextRotate()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextRotate()]; } - (void)setTextPadding:(id )textPadding { @@ -280,7 +280,7 @@ } - (id )textPadding { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextPadding()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextPadding()]; } - (void)setTextKeepUpright:(id )textKeepUpright { @@ -289,7 +289,7 @@ } - (id )textKeepUpright { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getTextKeepUpright()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getTextKeepUpright()]; } - (void)setTextTransform:(id )textTransform { @@ -307,7 +307,7 @@ } - (id )textOffset { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getTextOffset()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getTextOffset()]; } - (void)setTextAllowOverlap:(id )textAllowOverlap { @@ -316,7 +316,7 @@ } - (id )textAllowOverlap { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getTextAllowOverlap()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getTextAllowOverlap()]; } - (void)setTextIgnorePlacement:(id )textIgnorePlacement { @@ -325,7 +325,7 @@ } - (id )textIgnorePlacement { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getTextIgnorePlacement()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getTextIgnorePlacement()]; } - (void)setTextOptional:(id )textOptional { @@ -334,7 +334,7 @@ } - (id )textOptional { - return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->getTextOptional()]; + return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->getTextOptional()]; } #pragma mark - Accessing the Paint Attributes @@ -345,7 +345,7 @@ } - (id )iconOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconOpacity()]; } - (void)setIconColor:(id )iconColor { @@ -354,7 +354,7 @@ } - (id )iconColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getIconColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getIconColor()]; } - (void)setIconHaloColor:(id )iconHaloColor { @@ -363,7 +363,7 @@ } - (id )iconHaloColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getIconHaloColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getIconHaloColor()]; } - (void)setIconHaloWidth:(id )iconHaloWidth { @@ -372,7 +372,7 @@ } - (id )iconHaloWidth { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconHaloWidth()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconHaloWidth()]; } - (void)setIconHaloBlur:(id )iconHaloBlur { @@ -381,7 +381,7 @@ } - (id )iconHaloBlur { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getIconHaloBlur()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getIconHaloBlur()]; } - (void)setIconTranslate:(id )iconTranslate { @@ -390,7 +390,7 @@ } - (id )iconTranslate { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getIconTranslate()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getIconTranslate()]; } - (void)setIconTranslateAnchor:(id )iconTranslateAnchor { @@ -408,7 +408,7 @@ } - (id )textOpacity { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextOpacity()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextOpacity()]; } - (void)setTextColor:(id )textColor { @@ -417,7 +417,7 @@ } - (id )textColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getTextColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getTextColor()]; } - (void)setTextHaloColor:(id )textHaloColor { @@ -426,7 +426,7 @@ } - (id )textHaloColor { - return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->getTextHaloColor()]; + return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->getTextHaloColor()]; } - (void)setTextHaloWidth:(id )textHaloWidth { @@ -435,7 +435,7 @@ } - (id )textHaloWidth { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextHaloWidth()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextHaloWidth()]; } - (void)setTextHaloBlur:(id )textHaloBlur { @@ -444,7 +444,7 @@ } - (id )textHaloBlur { - return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->getTextHaloBlur()]; + return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->getTextHaloBlur()]; } - (void)setTextTranslate:(id )textTranslate { @@ -453,7 +453,7 @@ } - (id )textTranslate { - return [MGLStyleAttribute mbgl_offsetPropertyValueWith:self.layer->getTextTranslate()]; + return [MGLStyleAttribute mbgl_offsetWithPropertyValueOffset:self.layer->getTextTranslate()]; } - (void)setTextTranslateAnchor:(id )textTranslateAnchor { -- cgit v1.2.1