From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/YYText/YYText/Component/YYTextEffectWindow.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/YYText/YYText/Component/YYTextEffectWindow.h b/screendisplay/Pods/YYText/YYText/Component/YYTextEffectWindow.h new file mode 100755 index 0000000..27cc4c1 --- /dev/null +++ b/screendisplay/Pods/YYText/YYText/Component/YYTextEffectWindow.h @@ -0,0 +1,52 @@ +// +// YYTextEffectWindow.h +// YYText <https://github.com/ibireme/YYText> +// +// Created by ibireme on 15/2/25. +// Copyright (c) 2015 ibireme. +// +// This source code is licensed under the MIT-style license found in the +// LICENSE file in the root directory of this source tree. +// + +#import <UIKit/UIKit.h> + +#if __has_include(<YYText/YYText.h>) +#import <YYText/YYTextMagnifier.h> +#import <YYtext/YYTextSelectionView.h> +#else +#import "YYTextMagnifier.h" +#import "YYTextSelectionView.h" +#endif + +NS_ASSUME_NONNULL_BEGIN + +/** + A window to display magnifier and extra contents for text view. + + @discussion Use `sharedWindow` to get the instance, don't create your own instance. + Typically, you should not use this class directly. + */ +@interface YYTextEffectWindow : UIWindow + +/// Returns the shared instance (returns nil in App Extension). ++ (nullable instancetype)sharedWindow; + +/// Show the magnifier in this window with a 'popup' animation. @param mag A magnifier. +- (void)showMagnifier:(YYTextMagnifier *)mag; +/// Update the magnifier content and position. @param mag A magnifier. +- (void)moveMagnifier:(YYTextMagnifier *)mag; +/// Remove the magnifier from this window with a 'shrink' animation. @param mag A magnifier. +- (void)hideMagnifier:(YYTextMagnifier *)mag; + + +/// Show the selection dot in this window if the dot is clipped by the selection view. +/// @param selection A selection view. +- (void)showSelectionDot:(YYTextSelectionView *)selection; +/// Remove the selection dot from this window. +/// @param selection A selection view. +- (void)hideSelectionDot:(YYTextSelectionView *)selection; + +@end + +NS_ASSUME_NONNULL_END -- Gitblit v1.8.0