LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
JSBadgeView Class Reference
Inheritance diagram for JSBadgeView:

Instance Methods

(id) - initWithParentView:alignment:
 

Properties

NSString * badgeText
 
JSBadgeViewAlignment badgeAlignment UI_APPEARANCE_SELECTOR
 
UIColor *badgeTextColor UI_APPEARANCE_SELECTOR
 
CGSize badgeTextShadowOffset UI_APPEARANCE_SELECTOR
 
UIColor *badgeTextShadowColor UI_APPEARANCE_SELECTOR
 
UIFont *badgeTextFont UI_APPEARANCE_SELECTOR
 
UIColor *badgeBackgroundColor UI_APPEARANCE_SELECTOR
 
UIColor *badgeOverlayColor UI_APPEARANCE_SELECTOR
 
UIColor *badgeShadowColor UI_APPEARANCE_SELECTOR
 
CGSize badgeShadowSize UI_APPEARANCE_SELECTOR
 
CGFloat badgeStrokeWidth UI_APPEARANCE_SELECTOR
 
UIColor *badgeStrokeColor UI_APPEARANCE_SELECTOR
 
CGPoint badgePositionAdjustment UI_APPEARANCE_SELECTOR
 
CGRect frameToPositionInRelationWith UI_APPEARANCE_SELECTOR
 
CGFloat badgeMinWidth UI_APPEARANCE_SELECTOR
 

Method Documentation

- (id) initWithParentView: (UIView *)  parentView
alignment: (JSBadgeViewAlignment)  alignment 

Optionally init using this method to have the badge automatically added to another view.

Property Documentation

- (UIColor* badgeOverlayColor) UI_APPEARANCE_SELECTOR
readwritenonatomicstrong

Color of the overlay circle at the top. Default is semi-transparent white.

- (UIColor* badgeShadowColor) UI_APPEARANCE_SELECTOR
readwritenonatomicstrong

Color of the badge shadow. Default is semi-transparent black.

- (CGSize badgeShadowSize) UI_APPEARANCE_SELECTOR
readwritenonatomicassign

Offset of the badge shadow. Default is 3.0 points down.

- (CGFloat badgeStrokeWidth) UI_APPEARANCE_SELECTOR
readwritenonatomicassign

Width of the circle around the badge. Default is 2.0 points.

- (UIColor* badgeStrokeColor) UI_APPEARANCE_SELECTOR
readwritenonatomicstrong

Color of the circle around the badge. Default is white.

- (CGPoint badgePositionAdjustment) UI_APPEARANCE_SELECTOR
readwritenonatomicassign

Allows to shift the badge by x and y points.

- (CGRect frameToPositionInRelationWith) UI_APPEARANCE_SELECTOR
readwritenonatomicassign

You can use this to position the view if you're drawing it using drawRect instead of -addSubview: (optional) If not provided, the superview frame is used.

- (CGFloat badgeMinWidth) UI_APPEARANCE_SELECTOR
readwritenonatomicassign

The minimum width of a badge circle. We need this to avoid elipse shapes when using small fonts.


The documentation for this class was generated from the following files: