mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-11 23:14:48 +00:00
39 lines
1.5 KiB
Objective-C
39 lines
1.5 KiB
Objective-C
/* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <CoreGraphics/CoreGraphics.h>
|
|
|
|
#import "ASBaseDefines.h"
|
|
#import "ASLayoutController.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
ASDISPLAYNODE_EXTERN_C_BEGIN
|
|
|
|
struct ASDirectionalScreenfulBuffer {
|
|
CGFloat positiveDirection; // Positive relative to iOS Core Animation layer coordinate space.
|
|
CGFloat negativeDirection;
|
|
};
|
|
typedef struct ASDirectionalScreenfulBuffer ASDirectionalScreenfulBuffer;
|
|
|
|
ASDirectionalScreenfulBuffer ASDirectionalScreenfulBufferHorizontal(ASScrollDirection scrollDirection,
|
|
ASRangeTuningParameters rangeTuningParameters);
|
|
|
|
ASDirectionalScreenfulBuffer ASDirectionalScreenfulBufferVertical(ASScrollDirection scrollDirection,
|
|
ASRangeTuningParameters rangeTuningParameters);
|
|
|
|
CGRect CGRectExpandToRangeWithScrollableDirections(CGRect rect,
|
|
ASRangeTuningParameters tuningParameters,
|
|
ASScrollDirection scrollableDirections,
|
|
ASScrollDirection scrollDirection);
|
|
|
|
ASDISPLAYNODE_EXTERN_C_END
|
|
|
|
NS_ASSUME_NONNULL_END
|