From 3913ab898f2c2ecc3b638eca4681957b1cf74330 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 5 Feb 2022 19:17:10 -0600 Subject: Removed SwiftUIFlowLayout dependency and updated WhirlyGlobe-Maply to latest develop version --- .../Headers/MaplyScreenObject.h | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyScreenObject.h (limited to 'iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyScreenObject.h') diff --git a/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyScreenObject.h b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyScreenObject.h new file mode 100644 index 0000000..4779746 --- /dev/null +++ b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyScreenObject.h @@ -0,0 +1,106 @@ +/* + * MaplyScreenObject + * WhirlyGlobeComponent + * + * Created by Steve Gifford on 2/28/15 + * Copyright 2011-2022 mousebird consulting + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#import +#import +#import + +/** + The Maply Screen Object is used to build up a more complex screen object from multiple pieces. + + You can use one or more of these to build up a combination of labels and images that form a single marker, label, or billboard. + */ +@interface MaplyScreenObject : NSObject + +/** + Add a string to the screen object + + @param str The string to add + + @param font The font to use + + @param color The foreground color of the string. + */ +- (void)addString:(NSString *)str font:(UIFont *)font color:(UIColor *)color; + +/** + Add an attributed string to the screen object. + + This adds an annotated string to the screen object. The size will be based on the length of the string and the font. + */ +- (void)addAttributedString:(NSAttributedString *)str; + +/** + Add an image scaled to the given size. + + Adds a UIImage or MaplyTexture object scaled to the given size. + */ +- (void)addImage:(id)image color:(UIColor *)color size:(CGSize)size; + +/** + Add an image scaled to the given size and offset by the given amount. + + The other version of this call centers around (0,0) so this lets you nudge it. + */ +- (void)addImage:(id)image color:(UIColor *)color size:(CGSize)size offset:(CGPoint)offset; + +/** + Calculate and return the current bounding box of the screen object. + */ +- (MaplyBoundingBox)getSize; + +/** + Apply a scale to all the pieces of the screen object. + */ +- (void)scaleX:(double)x y:(double)y; + +/** + Apply a translation to all the pieces of the screen object. + */ +- (void)translateX:(double)x y:(double)y; + +/** + Add the contents of the given screen object to this screen object. + */ +- (void)addScreenObject:(MaplyScreenObject *)screenObj; + +@end + +/** + Features missing to replicate ScreenMarker and ScreenLabel. + rotation + images (for animation) + period (for animation) + color + layoutImportance + layoutSize + layoutPlacement (right, left, above, below) + vertexAttributes + keepUpright + + ScreenObjectInstance (new object) + location + endLoc/duration (moving fields) + selectable + ScreenObject pointer + Selected version ScreenObject pointer + uniqueID + userObject (for selection) + */ -- cgit v1.2.3