TUIChatShortcutMenuView.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // TUIChatShortcutMenuView.h
  3. // TUIChat
  4. //
  5. // Created by Tencent on 2023/6/29.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface TUIChatShortcutMenuCellData : NSObject
  10. @property (nonatomic, strong) NSString *text;
  11. @property (nonatomic, assign) SEL cselector;
  12. @property (nonatomic, strong) id target;
  13. @property (nonatomic, strong) UIColor *textColor;
  14. @property (nonatomic, strong) UIColor *backgroundColor;
  15. @property (nonatomic, strong) UIFont *textFont;
  16. @property (nonatomic, strong) UIColor *borderColor;
  17. @property (nonatomic, assign) CGFloat borderWidth;
  18. @property (nonatomic, assign) CGFloat cornerRadius;
  19. - (CGSize)calcSize;
  20. @end
  21. @interface TUIChatShortcutMenuCell : UICollectionViewCell
  22. @property (nonatomic, strong) UIButton *button;
  23. @property (nonatomic, strong) TUIChatShortcutMenuCellData *cellData;
  24. @end
  25. @interface TUIChatShortcutMenuView : UIView
  26. @property (nonatomic, assign) CGFloat viewHeight;
  27. @property (nonatomic, assign) CGFloat itemHorizontalSpacing;
  28. - (instancetype)initWithDataSource:(NSArray *)source;
  29. - (void)updateFrame;
  30. @end
  31. NS_ASSUME_NONNULL_END