ios :: UITextField
ios :: UITextField :: defaultinit
ios :: UITextField :: new
ios :: UITextField :: secure_text_entry=
Wraps:UITextField.secureTextEntry
ios $ UITextField :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?ios :: UIView :: background_color=
Wraps:UIView.backgroundColor =
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
ios :: UIControl :: defaultinit
ios :: UITextField :: defaultinit
core :: Pointer :: defaultinit
cocoa :: NSObject :: defaultinit
core :: Object :: defaultinit
ios :: UIView :: defaultinit
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 :: UITextField :: new
core :: Object :: output_class_name
Display class name on stdout (debug only).ios :: UITextField :: secure_text_entry=
Wraps:UITextField.secureTextEntry
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 =
# Editable text view
extern class UITextField in "ObjC" `{ UITextField * `}
super UIControl
new in "ObjC" `{ return [[UITextField alloc] init]; `}
# Wraps: `UITextField.text`
fun text: NSString in "ObjC" `{
return [self text];
`}
# Wraps: `UITextField.text`
fun text=(text: NSString) in "ObjC" `{
self.text = text;
`}
# Wraps: `UITextField.secureTextEntry`
fun secure_text_entry=(value: Bool) in "ObjC" `{
self.secureTextEntry = value;
`}
# Wraps: `UITextField.placeholder`
fun placeholder=(text: NSString) in "ObjC" `{ self.placeholder = text; `}
end
lib/ios/ui/uikit.nit:453,1--476,3
redef class UITextField
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:383,1--399,3