mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
ASButtonNode content alignement properties
This commit is contained in:
@@ -31,6 +31,17 @@ typedef enum : NSUInteger {
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL laysOutHorizontally;
|
||||
|
||||
/** Horizontally align content(text or image).
|
||||
Defaults to ASAlignmentMiddle.
|
||||
*/
|
||||
@property (nonatomic, assign) ASHorizontalAlignment contentHorizontalAlignment;
|
||||
|
||||
/** Vertically align content(text or image).
|
||||
Defaults to ASAlignmentCenter.
|
||||
*/
|
||||
@property (nonatomic, assign) ASVerticalAlignment contentVerticalAlignment;
|
||||
|
||||
|
||||
- (NSAttributedString *)attributedTitleForState:(ASButtonState)state;
|
||||
- (void)setAttributedTitle:(NSAttributedString *)title forState:(ASButtonState)state;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user