This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios, macos] #5626 - outlined template for layer implementation files
- Loading branch information
Showing
17 changed files
with
1,118 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// This file is generated. | ||
// Edit platform/ios/scripts/generate-style-code.js, then run `make style-code-ios`. | ||
|
||
#import "MGLStyleLayer_Private.hpp" | ||
#import "MGLBackgroundStyleLayer.h" | ||
#import <mbgl/style/layers/background_layer.hpp> | ||
|
||
@interface MGLBackgroundStyleLayer() { | ||
mbgl::style::BackgroundLayer *backgroundLayer; | ||
} | ||
@end | ||
|
||
@implementation MGLBackgroundStyleLayer | ||
|
||
- (void)setLayer:(mbgl::style::Layer *)layer | ||
{ | ||
backgroundLayer = reinterpret_cast<mbgl::style::BackgroundLayer *>(layer); | ||
} | ||
|
||
#pragma mark - Accessing the Paint Attributes | ||
|
||
- (void)setBackgroundColor:(MGLColor*)backgroundColor | ||
{ | ||
backgroundLayer->setBackgroundColor(backgroundColor.mbgl_color); | ||
} | ||
- (MGLColor *)backgroundColor | ||
{ | ||
return [MGLColor mbgl_color:backgroundLayer->getBackgroundColor().asConstant()]; | ||
} | ||
- (void)setBackgroundPattern:(NSString*)backgroundPattern | ||
{ | ||
} | ||
- (NSString *)backgroundPattern | ||
{ | ||
// TODO: | ||
return @"string"; | ||
} | ||
- (void)setBackgroundOpacity:(CGFloat)backgroundOpacity | ||
{ | ||
backgroundLayer->setBackgroundOpacity(backgroundOpacity); | ||
} | ||
- (CGFloat)backgroundOpacity | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// This file is generated. | ||
// Edit platform/ios/scripts/generate-style-code.js, then run `make style-code-ios`. | ||
|
||
#import "MGLStyleLayer_Private.hpp" | ||
#import "MGLCircleStyleLayer.h" | ||
#import <mbgl/style/layers/circle_layer.hpp> | ||
|
||
@interface MGLCircleStyleLayer() { | ||
mbgl::style::CircleLayer *circleLayer; | ||
} | ||
@end | ||
|
||
@implementation MGLCircleStyleLayer | ||
|
||
- (void)setLayer:(mbgl::style::Layer *)layer | ||
{ | ||
circleLayer = reinterpret_cast<mbgl::style::CircleLayer *>(layer); | ||
} | ||
|
||
#pragma mark - Accessing the Paint Attributes | ||
|
||
- (void)setCircleRadius:(CGFloat)circleRadius | ||
{ | ||
circleLayer->setCircleRadius(circleRadius); | ||
} | ||
- (CGFloat)circleRadius | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setCircleColor:(MGLColor*)circleColor | ||
{ | ||
circleLayer->setCircleColor(circleColor.mbgl_color); | ||
} | ||
- (MGLColor *)circleColor | ||
{ | ||
return [MGLColor mbgl_color:circleLayer->getCircleColor().asConstant()]; | ||
} | ||
- (void)setCircleBlur:(CGFloat)circleBlur | ||
{ | ||
circleLayer->setCircleBlur(circleBlur); | ||
} | ||
- (CGFloat)circleBlur | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setCircleOpacity:(CGFloat)circleOpacity | ||
{ | ||
circleLayer->setCircleOpacity(circleOpacity); | ||
} | ||
- (CGFloat)circleOpacity | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setCircleTranslate:(NSArray*)circleTranslate | ||
{ | ||
} | ||
- (NSArray *)circleTranslate | ||
{ | ||
// TODO: | ||
return @[]; | ||
} | ||
- (void)setCircleTranslateAnchor:(MGLCircleStyleLayerCircleTranslateAnchor)circleTranslateAnchor | ||
{ | ||
} | ||
- (MGLCircleStyleLayerCircleTranslateAnchor)circleTranslateAnchor | ||
{ | ||
// TODO: | ||
return MGLCircleStyleLayerCircleTranslateAnchorMap; | ||
} | ||
- (void)setCirclePitchScale:(MGLCircleStyleLayerCirclePitchScale)circlePitchScale | ||
{ | ||
} | ||
- (MGLCircleStyleLayerCirclePitchScale)circlePitchScale | ||
{ | ||
// TODO: | ||
return MGLCircleStyleLayerCirclePitchScaleMap; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
// This file is generated. | ||
// Edit platform/ios/scripts/generate-style-code.js, then run `make style-code-ios`. | ||
|
||
#import "MGLStyleLayer_Private.hpp" | ||
#import "MGLLineStyleLayer.h" | ||
#import <mbgl/style/layers/line_layer.hpp> | ||
|
||
@interface MGLLineStyleLayer() { | ||
mbgl::style::LineLayer *lineLayer; | ||
} | ||
@end | ||
|
||
@implementation MGLLineStyleLayer | ||
|
||
- (void)setLayer:(mbgl::style::Layer *)layer | ||
{ | ||
lineLayer = reinterpret_cast<mbgl::style::LineLayer *>(layer); | ||
} | ||
|
||
#pragma mark - Accessing the Layout Attributes | ||
|
||
|
||
- (void)setLineCap:(MGLLineStyleLayerLineCap)lineCap | ||
{ | ||
} | ||
|
||
- (MGLLineStyleLayerLineCap)lineCap | ||
{ | ||
// TODO: | ||
return MGLLineStyleLayerLineCapButt; | ||
} | ||
|
||
- (void)setLineJoin:(MGLLineStyleLayerLineJoin)lineJoin | ||
{ | ||
} | ||
|
||
- (MGLLineStyleLayerLineJoin)lineJoin | ||
{ | ||
// TODO: | ||
return MGLLineStyleLayerLineJoinBevel; | ||
} | ||
|
||
- (void)setLineMiterLimit:(CGFloat)lineMiterLimit | ||
{ | ||
lineLayer->setLineMiterLimit(lineMiterLimit); | ||
} | ||
|
||
- (CGFloat)lineMiterLimit | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
|
||
- (void)setLineRoundLimit:(CGFloat)lineRoundLimit | ||
{ | ||
lineLayer->setLineRoundLimit(lineRoundLimit); | ||
} | ||
|
||
- (CGFloat)lineRoundLimit | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
#pragma mark - Accessing the Paint Attributes | ||
|
||
- (void)setLineOpacity:(CGFloat)lineOpacity | ||
{ | ||
lineLayer->setLineOpacity(lineOpacity); | ||
} | ||
- (CGFloat)lineOpacity | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setLineColor:(MGLColor*)lineColor | ||
{ | ||
lineLayer->setLineColor(lineColor.mbgl_color); | ||
} | ||
- (MGLColor *)lineColor | ||
{ | ||
return [MGLColor mbgl_color:lineLayer->getLineColor().asConstant()]; | ||
} | ||
- (void)setLineTranslate:(NSArray*)lineTranslate | ||
{ | ||
} | ||
- (NSArray *)lineTranslate | ||
{ | ||
// TODO: | ||
return @[]; | ||
} | ||
- (void)setLineTranslateAnchor:(MGLLineStyleLayerLineTranslateAnchor)lineTranslateAnchor | ||
{ | ||
} | ||
- (MGLLineStyleLayerLineTranslateAnchor)lineTranslateAnchor | ||
{ | ||
// TODO: | ||
return MGLLineStyleLayerLineTranslateAnchorMap; | ||
} | ||
- (void)setLineWidth:(CGFloat)lineWidth | ||
{ | ||
lineLayer->setLineWidth(lineWidth); | ||
} | ||
- (CGFloat)lineWidth | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setLineGapWidth:(CGFloat)lineGapWidth | ||
{ | ||
lineLayer->setLineGapWidth(lineGapWidth); | ||
} | ||
- (CGFloat)lineGapWidth | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setLineOffset:(CGFloat)lineOffset | ||
{ | ||
lineLayer->setLineOffset(lineOffset); | ||
} | ||
- (CGFloat)lineOffset | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setLineBlur:(CGFloat)lineBlur | ||
{ | ||
lineLayer->setLineBlur(lineBlur); | ||
} | ||
- (CGFloat)lineBlur | ||
{ | ||
// TODO: | ||
return 0; | ||
} | ||
- (void)setLineDasharray:(NSArray*)lineDasharray | ||
{ | ||
} | ||
- (NSArray *)lineDasharray | ||
{ | ||
// TODO: | ||
return @[]; | ||
} | ||
- (void)setLinePattern:(NSString*)linePattern | ||
{ | ||
} | ||
- (NSString *)linePattern | ||
{ | ||
// TODO: | ||
return @"string"; | ||
} | ||
|
||
@end |
Oops, something went wrong.