ios :: UILabel :: adjusts_font_size_to_fit_width
Wraps:UILabel.adjustsFontSizeToFitWidth
ios :: UILabel :: defaultinit
ios :: UILabel :: highlighted_text_color
Wraps:UILabel.highlightedTextColor
ios :: UILabel :: minimum_scale_factor
Wraps:UILabel.minimumScaleFactor
ios :: UILabel :: preferred_max_layout_width
Wraps:UILabel.preferredMaxLayoutWidth
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?ios :: UILabel :: adjusts_font_size_to_fit_width
Wraps:UILabel.adjustsFontSizeToFitWidth
ios :: UIView :: background_color=
Wraps:UIView.backgroundColor =
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Pointer :: defaultinit
ios :: UILabel :: defaultinit
ios :: UIView :: defaultinit
cocoa :: NSObject :: defaultinit
core :: Object :: defaultinit
ios :: UILabel :: highlighted_text_color
Wraps:UILabel.highlightedTextColor
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
ios :: UILabel :: minimum_scale_factor
Wraps:UILabel.minimumScaleFactor
core :: Object :: output_class_name
Display class name on stdout (debug only).ios :: UILabel :: preferred_max_layout_width
Wraps:UILabel.preferredMaxLayoutWidth
ios :: UIView :: set_bounds
Wraps:UIView.bounds =
ios :: UIView :: translates_autoresizing_mask_into_constraits=
Wraps:UIView.translatesAutoresizingMaskIntoConstraints =
ios :: UIView :: user_interaction_enabled=
Wraps:UIView.userInteractionEnabled =
# Read-only text view
extern class UILabel in "ObjC" `{ UILabel * `}
super UIView
new in "ObjC" `{ return [[UILabel alloc] init]; `}
# Wraps: `UILabel.text`
fun text: NSString in "ObjC" `{
return [self text];
`}
# Wraps: `UILabel.text`
fun text=(text: NSString) in "ObjC" `{
self.text = text;
`}
# Wraps: `UILabel.font`
#fun font: UIFont in "ObjC" `{
# return [self font];
#`}
# Wraps: `UILabel.textColor`
fun text_color: UIColor in "ObjC" `{
return [self textColor];
`}
# Wraps: `UILabel.textColor`
fun text_color=(color: UIColor) in "ObjC" `{
self.textColor = color;
`}
# Wraps: `UILabel.shadowColor`
fun shadow_color: UIColor in "ObjC" `{
return [self shadowColor];
`}
# Wraps: `UILabel.shadowOffset`
#fun shadow_offset: CGSize in "ObjC" `{
# return [self shadowOffset];
#`}
# Wraps: `UILabel.textAlignment`
#fun text_alignment: NSTextAlignment in "ObjC" `{
# return [self textAlignment];
#`}
# Wraps: `UILabel.lineBreakMode`
#fun line_break_mode: NSLineBreakMode in "ObjC" `{
# return [self lineBreakMode];
#`}
# Wraps: `UILabel.attributedText`
#fun attributed_text: NSAttributedString in "ObjC" `{
# return [self attributedText];
#`}
# Wraps: `UILabel.highlightedTextColor`
fun highlighted_text_color: UIColor in "ObjC" `{
return [self highlightedTextColor];
`}
# Wraps: `UILabel.highlighted`
#fun highlighted: Bool in "ObjC" `{
# return [self highlighted];
#`}
# Wraps: `UILabel.userInteractionEnabled`
#fun user_interaction_enabled: Bool in "ObjC" `{
# return [self userInteractionEnabled];
#`}
# Wraps: `UILabel.enabled`
#fun enabled: Bool in "ObjC" `{
# return [self enabled];
#`}
# Wraps: `UILabel.numberOfLines`
fun number_of_lines: Int in "ObjC" `{
return [self numberOfLines];
`}
# Wraps: `UILabel.adjustsFontSizeToFitWidth`
fun adjusts_font_size_to_fit_width: Bool in "ObjC" `{
return [self adjustsFontSizeToFitWidth];
`}
# Wraps: `UILabel.adjustsLetterSpacingToFitWidth`
# Depricated
#fun adjusts_letter_spacing_to_fit_width: Bool in "ObjC" `{
# return [self adjustsLetterSpacingToFitWidth];
#`}
# Wraps: `UILabel.minimumFontSize`
# Depricated
#fun minimum_font_size: Float in "ObjC" `{
# return [self minimumFontSize];
#`}
# Wraps: `UILabel.baselineAdjustment`
#fun baseline_adjustment: UIBaselineAdjustment in "ObjC" `{
# return [self baselineAdjustment];
#`}
# Wraps: `UILabel.minimumScaleFactor`
fun minimum_scale_factor: Float in "ObjC" `{
return [self minimumScaleFactor];
`}
# Wraps: `UILabel.preferredMaxLayoutWidth`
fun preferred_max_layout_width: Float in "ObjC" `{
return [self preferredMaxLayoutWidth];
`}
# Wraps: `[self textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines]`
#fun text_rect_for_bounds_limited_to_number_of_lines(bounds: CGRect, number_of_lines: Int): CGRect in "ObjC" `{
# return [self textRectForBounds: bounds limitedToNumberOfLines: number_of_lines];
#`}
# Wraps: `[self drawTextInRect:(CGRect)rect]`
#fun draw_text_in_rect(rect: CGRect) in "ObjC" `{
# [self drawTextInRect: rect];
#`}
end
lib/ios/ui/uikit.nit:166,1--288,3
redef class UILabel
private fun size=(points: Float)
in "ObjC" `{
self.font = [UIFont systemFontOfSize: points];
`}
private fun align=(align: Float)
in "ObjC" `{
if (align == 0.5)
self.textAlignment = NSTextAlignmentCenter;
else if (align < 0.5)
self.textAlignment = NSTextAlignmentLeft;
else//if (align > 0.5)
self.textAlignment = NSTextAlignmentRight;
`}
end
lib/ios/ui/ui.nit:288,1--304,3