cdts/xdts-ios 3/TreeHole/CYHResetCode/CYH/QMUIKit/QMUIComponents/QMUIFloatLayoutView.h

50 lines
2.1 KiB
C
Raw Permalink Normal View History

2023-07-27 09:20:00 +08:00
/**
* Tencent is pleased to support the open source community by making QMUI_iOS available.
* Copyright (C) 2016-2021 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* 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.
*/
//
// QMUIFloatLayoutView.h
// qmui
//
// Created by QMUI Team on 2016/11/10.
//
#import <UIKit/UIKit.h>
/// 用于属性 maximumItemSize是它的默认值。表示 item 的最大宽高会自动根据当前 floatLayoutView 的内容大小来调整,从而避免 item 内容过多时可能溢出 floatLayoutView。
extern const CGSize QMUIFloatLayoutViewAutomaticalMaximumItemSize;
/**
* CSS float:left 使 addSubview: View
*
* `contentMode` View `UIViewContentModeLeft` `UIViewContentModeRight` `UIViewContentModeLeft`
*/
@interface QMUIFloatLayoutView : UIView
/**
* QMUIFloatLayoutView UIEdgeInsetsZero
*/
@property(nonatomic, assign) UIEdgeInsets padding;
/**
* item CGSizeZero
*/
@property(nonatomic, assign) IBInspectable CGSize minimumItemSize;
/**
* item QMUIFloatLayoutViewAutomaticalMaximumItemSize floatLayoutView
*/
@property(nonatomic, assign) IBInspectable CGSize maximumItemSize;
/**
* item UIEdgeInsetsZero
*
* @warning item itemMargins.top/bottom/left/right
*/
@property(nonatomic, assign) UIEdgeInsets itemMargins;
@end