enamlnative.ios package¶
Submodules¶
enamlnative.ios.app module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
@author jrm
-
class
enamlnative.ios.app.
ENBridge
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.bridge.ObjcBridgeObject
Access ENBridge.m using ctypes.
Based on: https://stackoverflow.com/questions/1490039/ calling-objective-c-functions-from-python#1490644
-
objc
¶ Objc library
-
bridge
¶ Bridge.m access via ctypes
-
processEvents
(data)[source]¶ Sends msgpack data to the ENBridge instance by calling the processEvents method via ctypes.
-
addTarget
¶ Add a target to a UIControl that invokes a python callback
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addTarget': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a4071d50>, 'bridge': <atom.scalars.Value object at 0x7fb6a3fb6b90>, 'objc': <atom.scalars.Value object at 0x7fb6a3fb6af0>}¶
-
__module__
= 'enamlnative.ios.app'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.app.
AppDelegate
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.bridge.ObjcBridgeObject
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>}¶
-
__module__
= 'enamlnative.ios.app'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.app.
ViewController
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.bridge.ObjcBridgeObject
-
displayView
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'displayView': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a4071ef0>}¶
-
__module__
= 'enamlnative.ios.app'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.app.
IPhoneApplication
(*args, **kwargs)[source]¶ Bases:
enamlnative.core.app.BridgedApplication
An iPhone implementation of an Enaml Native BridgedApplication.
An IPhoneApplication uses the native iOS widget toolkit to implement an Enaml UI that runs in the local process.
Since Objective-C can easily use the Python C-API, much if this classes implementation is done directly. For instance, the AppEventListener API is implemented directly in Objective-C (in Bridge.m) and invokes methods on this directly.
-
app_delegate
¶ AppDelegate widget
-
view_controller
¶ ViewControler
-
bridge
¶ ENBridge
-
dp
¶ Pixel density of the device Loaded immediately as this is used often.
-
__atom_members__
= {'__id__': <atom.scalars.Int object at 0x7fb6a3fb6370>, '_bridge_last_scheduled': <atom.scalars.Float object at 0x7fb6a3fb69b0>, '_bridge_max_delay': <atom.scalars.Float object at 0x7fb6a3fb6910>, '_bridge_queue': <atom.list.List object at 0x7fb6a411eec0>, '_counter': <atom.scalars.Value object at 0x7fb6a4061730>, '_dev_session': <atom.scalars.Value object at 0x7fb6a3fb67d0>, '_heap_lock': <atom.scalars.Value object at 0x7fb6a40617d0>, '_task_heap': <atom.list.List object at 0x7fb6a4431ad0>, 'app_delegate': <atom.typed.Typed object at 0x7fb6a3fb6cd0>, 'bridge': <atom.typed.Typed object at 0x7fb6a3fb6e10>, 'debug': <atom.scalars.Bool object at 0x7fb6a3fb6690>, 'dev': <atom.scalars.Unicode object at 0x7fb6a3fb6730>, 'dp': <atom.scalars.Float object at 0x7fb6a3fb6eb0>, 'keep_screen_on': <atom.scalars.Bool object at 0x7fb6a3fb6f50>, 'load_view': <atom.scalars.Callable object at 0x7fb6a3fb65f0>, 'loop': <atom.instance.Instance object at 0x7fb6a3fb6870>, 'plugins': <atom.dict.Dict object at 0x7fb6a3fb6a50>, 'resolver': <atom.typed.Typed object at 0x7fb6a4061690>, 'state': <atom.enum.Enum object at 0x7fb6a3fb64b0>, 'style_sheet': <atom.typed.ForwardTyped object at 0x7fb6a444d8f0>, 'view': <atom.scalars.Value object at 0x7fb6a3fb6550>, 'view_controller': <atom.typed.Typed object at 0x7fb6a3fb6d70>}¶
-
__module__
= 'enamlnative.ios.app'¶
-
__slots__
= ()¶
-
keep_screen_on
¶ A value of type bool.
-
enamlnative.ios.bridge module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on June 21, 2017
@author: jrm
-
class
enamlnative.ios.bridge.
ObjcMethod
(*args, **kwargs)[source]¶ Bases:
enamlnative.core.bridge.BridgeMethod
Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)-
pack_args
(obj, *args, **kwargs)[source]¶ Arguments must be packed according to the kwargs passed and the signature defined.
-
__dict__
= dict_proxy({'pack_args': <function pack_args>, '__dict__': <attribute '__dict__' of 'ObjcMethod' objects>, '__module__': 'enamlnative.ios.bridge', '__weakref__': <attribute '__weakref__' of 'ObjcMethod' objects>, '__doc__': " Description of a method of a View (or subclass) in Objc. When called, \n this serializes the call, packs the arguments, and delegates handling to a \n bridge in Objc.\n\n To keep method calling similar to Swift instead of defining a method \n matching the signature with underscores like pyobjc and pyobjus the \n signature should be defined as follows:\n\n 1. The first argument, if any, should be a string.\n 2. Subsequent arguments should each be a dictionary of the available\n `subnames` and their types.\n\n For instance:\n\n UIView `insertSubview` has the following signatures:\n\n - (void)insertSubview:(UIView *)view\n atIndex:(NSInteger)index;\n\n - (void)insertSubview:(UIView *)view\n aboveSubview:(UIView *)siblingSubview;\n\n - (void)insertSubview:(UIView *)view\n belowSubview:(UIView *)siblingSubview;\n\n This is defined in python like:\n\n insertSubview = ObjcMethod('UIView',\n dict(atIndex='NSInteger',\n aboveSubview='UIView',\n belowSubview='UIView'))\n\n Doing it this way it can be called like Swift, using kwargs\n\n view.insertSubview(subview, atIndex=3)\n view.insertSubview(subview, aboveSubview=above_view)\n\n "})¶
-
__module__
= 'enamlnative.ios.bridge'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
class
enamlnative.ios.bridge.
ObjcProperty
(arg)[source]¶ Bases:
enamlnative.core.bridge.BridgeField
The superclass implementation is sufficient
-
__dict__
= dict_proxy({'__dict__': <attribute '__dict__' of 'ObjcProperty' objects>, '__module__': 'enamlnative.ios.bridge', '__weakref__': <attribute '__weakref__' of 'ObjcProperty' objects>, '__doc__': ' The superclass implementation is sufficient\n\n '})¶
-
__module__
= 'enamlnative.ios.bridge'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
enamlnative.ios.bridge.
ObjcCallback
(*args, **kwargs)[source]¶ Bases:
enamlnative.core.bridge.BridgeCallback
,enamlnative.ios.bridge.ObjcMethod
Description of a callback method of a View (or subclass) in Objc. When called, it fires the connected callback. This is triggered when it receives an event from the bridge indicating the call has occured.
-
pack_args
(obj, *args, **kwargs)[source]¶ Subclasses should implement this to pack args as needed for the native bridge implementation. Must return a tuple containing (“methodName”, [list, of, encoded, args])
-
__module__
= 'enamlnative.ios.bridge'¶
-
-
class
enamlnative.ios.bridge.
ObjcBridgeObject
(*args, **kwargs)[source]¶ Bases:
enamlnative.core.bridge.BridgeObject
A proxy to a class in java. This sends the commands over the bridge for execution. The object is stored in a map with the given id and is valid until this object is deleted.
Parameters: __id__ (Int) – If an __id__ keyward argument is passed during creation, this will assume the object was already created and only a reference to the object with the given id is needed. -
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>}¶
-
__module__
= 'enamlnative.ios.bridge'¶
-
__nativeclass__
¶ A value of type unicode.
By default, plain strings will be promoted to unicode strings. Pass strict=True to the constructor to enable strict unicode checking.
-
__slots__
= ()¶
-
enamlnative.ios.factories module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on May 20, 2017
@author: jrm
enamlnative.ios.uikit_activity_indicator module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_activity_indicator.
UIActivityIndicatorView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
-
color
¶ Properties
-
activityIndicatorViewStyle
¶ The superclass implementation is sufficient
-
startAnimating
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
stopAnimating
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'activityIndicatorViewStyle': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdce60>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'color': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcd98>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'startAnimating': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3a10>, 'stopAnimating': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3ae0>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_activity_indicator'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_activity_indicator.
UiKitActivityIndicator
[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.activity_indicator.ProxyActivityIndicator
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
init_widget
()[source]¶ Initialize the state of the toolkit widget.
This method is called during the top-down pass, just after the ‘create_widget()’ method is called. This method should init the state of the widget. The child widgets will not yet be created.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3fce2d0>, 'widget': <atom.typed.Typed object at 0x7fb6a3fce370>}¶
-
__module__
= 'enamlnative.ios.uikit_activity_indicator'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_button module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 25, 2017
@author: jrm
Bases:
enamlnative.ios.uikit_control.UIControl
A member which allows tuple values.
If item validation is used, then assignment will create a copy of the original tuple before validating the items, since validation may change the item values.
Properties
The superclass implementation is sufficient
The superclass implementation is sufficient
The superclass implementation is sufficient
The superclass implementation is sufficient
The superclass implementation is sufficient
Methods
Type Enum
Bases:
enamlnative.ios.uikit_control.UiKitControl
,enamlnative.widgets.button.ProxyButton
An UiKit implementation of an Enaml ProxyToolkitObject.
A reference to the toolkit widget created by the proxy.
Create the toolkit widget for the proxy object.
Initialize the state of the toolkit widget.
This method is called during the top-down pass, just after the ‘create_widget()’ method is called. This method should init the state of the widget. The child widgets will not yet be created.
Note: This does NOT initialize text properties by default!
enamlnative.ios.uikit_control module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 25, 2017
@author: jrm
-
class
enamlnative.ios.uikit_control.
UIControl
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_text_view.UITextView
-
enabled
¶ Properties
-
selected
¶ The superclass implementation is sufficient
-
highlighted
¶ The superclass implementation is sufficient
-
contentVerticalAlignment
¶ The superclass implementation is sufficient
-
contentHorizontalAlignment
¶ The superclass implementation is sufficient
-
addTarget
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
onClicked
¶ Description of a callback method of a View (or subclass) in Objc. When called, it fires the connected callback. This is triggered when it receives an event from the bridge indicating the call has occured.
-
UIControlEventTouchDown
= 1¶ UIControlEvents enum
-
UIControlEventTouchDownRepeat
= 2¶
-
UIControlEventTouchDragInside
= 4¶
-
UIControlEventTouchDragOutside
= 8¶
-
UIControlEventTouchDragEnter
= 16¶
-
UIControlEventTouchDragExit
= 32¶
-
UIControlEventTouchUpInside
= 64¶
-
UIControlEventTouchUpOutside
= 128¶
-
UIControlEventTouchCancel
= 256¶
-
UIControlEventValueChanged
= 4096¶
-
UIControlEventPrimaryActionTriggered
= 8192¶
-
UIControlEventEditingDidBegin
= 65536¶
-
UIControlEventEditingChanged
= 131072¶
-
UIControlEventEditingDidEnd
= 262144¶
-
UIControlEventEditingDidEndOnExit
= 524288¶
-
UIControlEventAllTouchEvents
= 4095¶
-
UIControlEventAllEditingEvents
= 983040¶
-
UIControlEventApplicationReserved
= 251658240¶
-
UIControlEventSystemReserved
= 4026531840¶
-
UIControlEventAllEvents
= 4294967295¶
-
UIControlStateNormal
= 0¶
-
UIControlStateHighlighted
= 1¶
-
UIControlStateDisabled
= 2¶
-
UIControlStateSelected
= 4¶
-
UIControlStateFocused
= 8¶
-
UIControlStateApplication
= 16711680¶
-
UIControlStateReserved
= 4278190080¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'addTarget': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3d50>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'contentHorizontalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3690>, 'contentVerticalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe35c8>, 'enabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3370>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'highlighted': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3500>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'onClicked': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3e20>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'selected': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3438>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_control'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_control.
UiKitControl
(parent=None, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_text_view.UiKitTextView
,enamlnative.widgets.compound_button.ProxyCompoundButton
A UiKitControl helper class.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
init_widget
()[source]¶ Initialize the state of the toolkit widget.
This method is called during the top-down pass, just after the ‘create_widget()’ method is called. This method should init the state of the widget. The child widgets will not yet be created.
Note: This does NOT initialize text properties by default!
-
__atom_members__
= {'_children': <atom.list.List object at 0x7fb6a43c02f0>, '_d_engine': <atom.typed.Typed object at 0x7fb6a44900f0>, '_d_storage': <atom.typed.Typed object at 0x7fb6a4490230>, '_flags': <atom.scalars.Value object at 0x7fb6a4490c30>, '_parent': <atom.scalars.Value object at 0x7fb6a444a190>, 'activated': <atom.event.Event object at 0x7fb6a437eeb0>, 'align_self': <atom.enum.Enum object at 0x7fb6a3fca5f0>, 'alpha': <atom.scalars.Float object at 0x7fb6a3fc8870>, 'animate': <atom.scalars.Bool object at 0x7fb6a3fc87d0>, 'animations': <atom.typed.Typed object at 0x7fb6a3fc8730>, 'background_color': <atom.scalars.Unicode object at 0x7fb6a3fc8910>, 'bottom': <atom.scalars.Int object at 0x7fb6a3fc8d70>, 'clickable': <atom.scalars.Bool object at 0x7fb6a3fc8230>, 'clicked': <atom.event.Event object at 0x7fb6a3fc8550>, 'declaration': <atom.typed.ForwardTyped object at 0x7fb6a3fada60>, 'destroyed': <atom.event.Event object at 0x7fb6a444a410>, 'enabled': <atom.scalars.Bool object at 0x7fb6a3fc80f0>, 'flex_basis': <atom.scalars.Float object at 0x7fb6a3fca690>, 'flex_grow': <atom.scalars.Float object at 0x7fb6a3fca730>, 'flex_shrink': <atom.scalars.Float object at 0x7fb6a3fca7d0>, 'focusable': <atom.scalars.Bool object at 0x7fb6a3fc8370>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f6bf50>, 'gravity': <atom.coerced.Coerced object at 0x7fb6a3fc8af0>, 'height': <atom.coerced.Coerced object at 0x7fb6a3fc8a50>, 'initialized': <atom.event.Event object at 0x7fb6a44904b0>, 'key_event': <atom.event.Event object at 0x7fb6a3fc85f0>, 'key_events': <atom.scalars.Bool object at 0x7fb6a3fc8410>, 'left': <atom.scalars.Int object at 0x7fb6a3fc8b90>, 'long_clickable': <atom.scalars.Bool object at 0x7fb6a3fc82d0>, 'margin': <atom.tuple.Tuple object at 0x7fb6a3fca0f0>, 'max_height': <atom.scalars.Int object at 0x7fb6a3fc8eb0>, 'max_width': <atom.scalars.Int object at 0x7fb6a3fca050>, 'min_height': <atom.scalars.Int object at 0x7fb6a3fc8e10>, 'min_width': <atom.scalars.Int object at 0x7fb6a3fc8f50>, 'name': <atom.scalars.Unicode object at 0x7fb6a44905f0>, 'padding': <atom.tuple.Tuple object at 0x7fb6a3fca230>, 'position': <atom.enum.Enum object at 0x7fb6a3fca550>, 'proxy': <atom.typed.Typed object at 0x7fb6a3fca870>, 'right': <atom.scalars.Int object at 0x7fb6a3fc8cd0>, 'top': <atom.scalars.Int object at 0x7fb6a3fc8c30>, 'touch_event': <atom.event.Event object at 0x7fb6a3fc8690>, 'touch_events': <atom.scalars.Bool object at 0x7fb6a3fc84b0>, 'visible': <atom.scalars.Bool object at 0x7fb6a3fc8190>, 'widget': <atom.typed.Typed object at 0x7fb6a3f6bcd0>, 'width': <atom.coerced.Coerced object at 0x7fb6a3fc89b0>, 'x': <atom.scalars.Float object at 0x7fb6a3fca370>, 'y': <atom.scalars.Float object at 0x7fb6a3fca410>, 'z': <atom.scalars.Float object at 0x7fb6a3fca4b0>}¶
-
__module__
= 'enamlnative.ios.uikit_control'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_edit_text module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 25, 2017
@author: jrm
-
class
enamlnative.ios.uikit_edit_text.
UIKeyboard
(root, attr, **kwargs)[source]¶ Bases:
enamlnative.core.bridge.NestedBridgeObject
-
UIKeyboardTypeDefault
= 0¶
-
UIKeyboardTypeASCIICapable
= 1¶
-
UIKeyboardTypeNumbersAndPunctuation
= 2¶
-
UIKeyboardTypeURL
= 3¶
-
UIKeyboardTypeNumberPad
= 4¶
-
UIKeyboardTypePhonePad
= 5¶
-
UIKeyboardTypeNamePhonePad
= 6¶
-
UIKeyboardTypeEmailAddress
= 7¶
-
UIKeyboardTypeDecimalPad
= 8¶
-
UIKeyboardTypeTwitter
= 9¶
-
UIKeyboardTypeWebSearch
= 10¶
-
UIKeyboardTypeASCIICapableNumberPad
= 11¶
-
UIKeyboardTypeAlphabet
= 1¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb370>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__root__': <atom.instance.Instance object at 0x7fb6a3ffb690>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>}¶
-
__module__
= 'enamlnative.ios.uikit_edit_text'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_edit_text.
UITextField
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UIControl
-
placeholder
¶ Properties
-
borderStyle
¶
-
onValueChanged
¶ Callback
-
UITextBorderStyleNone
= 0¶
-
UITextBorderStyleLine
= 1¶
-
UITextBorderStyleBezel
= 2¶
-
UITextBorderStyleRoundedRect
= 3¶
-
STYLES
= {'': 0, 'bezel': 2, 'line': 1, 'rounded_rect': 3}¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'addTarget': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3d50>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'borderStyle': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3cd0>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'contentHorizontalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3690>, 'contentVerticalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe35c8>, 'enabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3370>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'highlighted': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3500>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'onClicked': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3e20>, 'onValueChanged': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3f74120>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'placeholder': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3c08>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'selected': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3438>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_edit_text'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_edit_text.
UiKitEditText
(parent=None, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UiKitControl
,enamlnative.widgets.edit_text.ProxyEditText
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
__atom_members__
= {'_children': <atom.list.List object at 0x7fb6a43c02f0>, '_d_engine': <atom.typed.Typed object at 0x7fb6a44900f0>, '_d_storage': <atom.typed.Typed object at 0x7fb6a4490230>, '_flags': <atom.scalars.Value object at 0x7fb6a4490c30>, '_parent': <atom.scalars.Value object at 0x7fb6a444a190>, 'activated': <atom.event.Event object at 0x7fb6a437eeb0>, 'align_self': <atom.enum.Enum object at 0x7fb6a3fca5f0>, 'alpha': <atom.scalars.Float object at 0x7fb6a3fc8870>, 'animate': <atom.scalars.Bool object at 0x7fb6a3fc87d0>, 'animations': <atom.typed.Typed object at 0x7fb6a3fc8730>, 'background_color': <atom.scalars.Unicode object at 0x7fb6a3fc8910>, 'bottom': <atom.scalars.Int object at 0x7fb6a3fc8d70>, 'clickable': <atom.scalars.Bool object at 0x7fb6a3fc8230>, 'clicked': <atom.event.Event object at 0x7fb6a3fc8550>, 'declaration': <atom.typed.ForwardTyped object at 0x7fb6a3fada60>, 'destroyed': <atom.event.Event object at 0x7fb6a444a410>, 'enabled': <atom.scalars.Bool object at 0x7fb6a3fc80f0>, 'flex_basis': <atom.scalars.Float object at 0x7fb6a3fca690>, 'flex_grow': <atom.scalars.Float object at 0x7fb6a3fca730>, 'flex_shrink': <atom.scalars.Float object at 0x7fb6a3fca7d0>, 'focusable': <atom.scalars.Bool object at 0x7fb6a3fc8370>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f6bf50>, 'gravity': <atom.coerced.Coerced object at 0x7fb6a3fc8af0>, 'height': <atom.coerced.Coerced object at 0x7fb6a3fc8a50>, 'initialized': <atom.event.Event object at 0x7fb6a44904b0>, 'key_event': <atom.event.Event object at 0x7fb6a3fc85f0>, 'key_events': <atom.scalars.Bool object at 0x7fb6a3fc8410>, 'left': <atom.scalars.Int object at 0x7fb6a3fc8b90>, 'long_clickable': <atom.scalars.Bool object at 0x7fb6a3fc82d0>, 'margin': <atom.tuple.Tuple object at 0x7fb6a3fca0f0>, 'max_height': <atom.scalars.Int object at 0x7fb6a3fc8eb0>, 'max_width': <atom.scalars.Int object at 0x7fb6a3fca050>, 'min_height': <atom.scalars.Int object at 0x7fb6a3fc8e10>, 'min_width': <atom.scalars.Int object at 0x7fb6a3fc8f50>, 'name': <atom.scalars.Unicode object at 0x7fb6a44905f0>, 'padding': <atom.tuple.Tuple object at 0x7fb6a3fca230>, 'position': <atom.enum.Enum object at 0x7fb6a3fca550>, 'proxy': <atom.typed.Typed object at 0x7fb6a3fca870>, 'right': <atom.scalars.Int object at 0x7fb6a3fc8cd0>, 'top': <atom.scalars.Int object at 0x7fb6a3fc8c30>, 'touch_event': <atom.event.Event object at 0x7fb6a3fc8690>, 'touch_events': <atom.scalars.Bool object at 0x7fb6a3fc84b0>, 'visible': <atom.scalars.Bool object at 0x7fb6a3fc8190>, 'widget': <atom.typed.Typed object at 0x7fb6a3f73870>, 'width': <atom.coerced.Coerced object at 0x7fb6a3fc89b0>, 'x': <atom.scalars.Float object at 0x7fb6a3fca370>, 'y': <atom.scalars.Float object at 0x7fb6a3fca410>, 'z': <atom.scalars.Float object at 0x7fb6a3fca4b0>}¶
-
__module__
= 'enamlnative.ios.uikit_edit_text'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_flexbox module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_flexbox.
UIFlexbox
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
Adds yoga as a nested object
-
__nativeclass__
¶ A value of type unicode.
By default, plain strings will be promoted to unicode strings. Pass strict=True to the constructor to enable strict unicode checking.
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3f845f0>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_flexbox'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_flexbox.
UiKitFlexbox
[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.flexbox.ProxyFlexbox
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit layout created by the proxy.
-
create_widget
()[source]¶ Create the toolkit widget for the proxy object.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘widget’ attribute.
-
init_layout
()[source]¶ Initialize the layout of the toolkit widget.
This method is called during the bottom-up pass. This method should initialize the layout of the widget. The child widgets will be fully initialized and layed out when this is called.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3fce2d0>, 'widget': <atom.typed.Typed object at 0x7fb6a3f84690>}¶
-
__module__
= 'enamlnative.ios.uikit_flexbox'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_linear_layout module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_linear_layout.
UIStackView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
From: https://developer.apple.com/documentation/uikit/uistackview?language=objc
-
axis
¶ Properties
-
addArrangedSubview
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
insertArrangedSubview
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
removeArrangedSubview
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
UILayoutConstraintAxisHorizontal
= 0¶
-
UILayoutConstraintAxisVertical
= 1¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addArrangedSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f74050>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'axis': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3d98>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertArrangedSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f741f0>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeArrangedSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f742c0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_linear_layout'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_linear_layout.
UiKitLinearLayout
[source]¶ Bases:
enamlnative.ios.uikit_view_group.UiKitViewGroup
,enamlnative.widgets.linear_layout.ProxyLinearLayout
An UiKit implementation of an Enaml ProxyToolkitObject.
-
layout
¶ A reference to the toolkit layout created by the proxy.
-
create_layout
()[source]¶ Create the layout widget for arranging child proxy objects.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘layout’ attribute.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f849b0>, 'layout': <atom.typed.Typed object at 0x7fb6a3f84a50>, 'widget': <atom.typed.Typed object at 0x7fb6a3fce230>}¶
-
__module__
= 'enamlnative.ios.uikit_linear_layout'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_progress_view module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_progress_view.
UIProgressView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
From: https://developer.apple.com/documentation/uikit/uiview?language=objc
-
progress
¶ Properties
-
setProgress
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'progress': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3f28>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setProgress': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f74390>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_progress_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_progress_view.
UiKitProgressView
[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.progress_bar.ProxyProgressBar
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
init_widget
()[source]¶ Initialize the state of the toolkit widget.
This method is called during the top-down pass, just after the ‘create_widget()’ method is called. This method should init the state of the widget. The child widgets will not yet be created.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3fce2d0>, 'widget': <atom.typed.Typed object at 0x7fb6a3f84af0>}¶
-
__module__
= 'enamlnative.ios.uikit_progress_view'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_scroll_view module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_scroll_view.
UIScrollView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
-
contentSize
¶ Properties
-
fitToContents
¶ Added by UIScrollView+AutoResize
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'contentSize': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90050>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'fitToContents': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f74460>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_scroll_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_scroll_view.
UiKitScrollView
[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.scroll_view.ProxyScrollView
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit layout created by the proxy.
-
init_layout
()[source]¶ Initialize the layout of the toolkit widget.
This method is called during the bottom-up pass. This method should initialize the layout of the widget. The child widgets will be fully initialized and layed out when this is called.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3fce2d0>, 'widget': <atom.typed.Typed object at 0x7fb6a3f8c910>}¶
-
__module__
= 'enamlnative.ios.uikit_scroll_view'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_slider module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 25, 2017
@author: jrm
-
class
enamlnative.ios.uikit_slider.
UISlider
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UIControl
-
minimumValue
¶ Properties
-
maximumValue
¶ The superclass implementation is sufficient
-
continuous
¶ The superclass implementation is sufficient
-
value
¶ The superclass implementation is sufficient
-
onTintColor
¶ The superclass implementation is sufficient
-
tintColor
¶ The superclass implementation is sufficient
-
thumbTintColor
¶ The superclass implementation is sufficient
-
onImage
¶ The superclass implementation is sufficient
-
offImage
¶ The superclass implementation is sufficient
-
setValue
¶ Methods Works but then doesn’t let you change it
-
onValueChanged
¶ Callbacks
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'addTarget': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3d50>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'contentHorizontalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3690>, 'contentVerticalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe35c8>, 'continuous': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90370>, 'enabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3370>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'highlighted': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3500>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'maximumValue': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f902a8>, 'minimumValue': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f901e0>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'offImage': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90820>, 'onClicked': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3e20>, 'onImage': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90758>, 'onTintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90500>, 'onValueChanged': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3f74600>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'selected': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3438>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'setValue': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f74530>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'thumbTintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90690>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f905c8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'value': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90438>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_slider'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_slider.
UiKitSlider
(parent=None, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UiKitControl
,enamlnative.widgets.seek_bar.ProxySeekBar
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
__atom_members__
= {'_children': <atom.list.List object at 0x7fb6a43c02f0>, '_d_engine': <atom.typed.Typed object at 0x7fb6a44900f0>, '_d_storage': <atom.typed.Typed object at 0x7fb6a4490230>, '_flags': <atom.scalars.Value object at 0x7fb6a4490c30>, '_parent': <atom.scalars.Value object at 0x7fb6a444a190>, 'activated': <atom.event.Event object at 0x7fb6a437eeb0>, 'align_self': <atom.enum.Enum object at 0x7fb6a3fca5f0>, 'alpha': <atom.scalars.Float object at 0x7fb6a3fc8870>, 'animate': <atom.scalars.Bool object at 0x7fb6a3fc87d0>, 'animations': <atom.typed.Typed object at 0x7fb6a3fc8730>, 'background_color': <atom.scalars.Unicode object at 0x7fb6a3fc8910>, 'bottom': <atom.scalars.Int object at 0x7fb6a3fc8d70>, 'clickable': <atom.scalars.Bool object at 0x7fb6a3fc8230>, 'clicked': <atom.event.Event object at 0x7fb6a3fc8550>, 'declaration': <atom.typed.ForwardTyped object at 0x7fb6a3fada60>, 'destroyed': <atom.event.Event object at 0x7fb6a444a410>, 'enabled': <atom.scalars.Bool object at 0x7fb6a3fc80f0>, 'flex_basis': <atom.scalars.Float object at 0x7fb6a3fca690>, 'flex_grow': <atom.scalars.Float object at 0x7fb6a3fca730>, 'flex_shrink': <atom.scalars.Float object at 0x7fb6a3fca7d0>, 'focusable': <atom.scalars.Bool object at 0x7fb6a3fc8370>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f6bf50>, 'gravity': <atom.coerced.Coerced object at 0x7fb6a3fc8af0>, 'height': <atom.coerced.Coerced object at 0x7fb6a3fc8a50>, 'initialized': <atom.event.Event object at 0x7fb6a44904b0>, 'key_event': <atom.event.Event object at 0x7fb6a3fc85f0>, 'key_events': <atom.scalars.Bool object at 0x7fb6a3fc8410>, 'left': <atom.scalars.Int object at 0x7fb6a3fc8b90>, 'long_clickable': <atom.scalars.Bool object at 0x7fb6a3fc82d0>, 'margin': <atom.tuple.Tuple object at 0x7fb6a3fca0f0>, 'max_height': <atom.scalars.Int object at 0x7fb6a3fc8eb0>, 'max_width': <atom.scalars.Int object at 0x7fb6a3fca050>, 'min_height': <atom.scalars.Int object at 0x7fb6a3fc8e10>, 'min_width': <atom.scalars.Int object at 0x7fb6a3fc8f50>, 'name': <atom.scalars.Unicode object at 0x7fb6a44905f0>, 'padding': <atom.tuple.Tuple object at 0x7fb6a3fca230>, 'position': <atom.enum.Enum object at 0x7fb6a3fca550>, 'proxy': <atom.typed.Typed object at 0x7fb6a3fca870>, 'right': <atom.scalars.Int object at 0x7fb6a3fc8cd0>, 'top': <atom.scalars.Int object at 0x7fb6a3fc8c30>, 'touch_event': <atom.event.Event object at 0x7fb6a3fc8690>, 'touch_events': <atom.scalars.Bool object at 0x7fb6a3fc84b0>, 'visible': <atom.scalars.Bool object at 0x7fb6a3fc8190>, 'widget': <atom.typed.Typed object at 0x7fb6a3f8cd70>, 'width': <atom.coerced.Coerced object at 0x7fb6a3fc89b0>, 'x': <atom.scalars.Float object at 0x7fb6a3fca370>, 'y': <atom.scalars.Float object at 0x7fb6a3fca410>, 'z': <atom.scalars.Float object at 0x7fb6a3fca4b0>}¶
-
__module__
= 'enamlnative.ios.uikit_slider'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_switch module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 25, 2017
@author: jrm
-
class
enamlnative.ios.uikit_switch.
UISwitch
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UIControl
-
on
¶ Properties
-
onTintColor
¶ The superclass implementation is sufficient
-
tintColor
¶ The superclass implementation is sufficient
-
thumbTintColor
¶ The superclass implementation is sufficient
-
onImage
¶ The superclass implementation is sufficient
-
offImage
¶ The superclass implementation is sufficient
-
setOn
¶ Methods Works but then doesn’t let you change it
-
onValueChanged
¶ Callbacks
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'addTarget': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3d50>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'contentHorizontalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3690>, 'contentVerticalAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe35c8>, 'enabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3370>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'highlighted': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3500>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'offImage': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90c08>, 'on': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90118>, 'onClicked': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3e20>, 'onImage': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90b40>, 'onTintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f908e8>, 'onValueChanged': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3f747a0>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'selected': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3438>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'setOn': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3f746d0>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'thumbTintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f90a78>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3f909b0>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_switch'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_switch.
UiKitSwitch
(parent=None, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_control.UiKitControl
,enamlnative.widgets.switch.ProxySwitch
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
__atom_members__
= {'_children': <atom.list.List object at 0x7fb6a43c02f0>, '_d_engine': <atom.typed.Typed object at 0x7fb6a44900f0>, '_d_storage': <atom.typed.Typed object at 0x7fb6a4490230>, '_flags': <atom.scalars.Value object at 0x7fb6a4490c30>, '_parent': <atom.scalars.Value object at 0x7fb6a444a190>, 'activated': <atom.event.Event object at 0x7fb6a437eeb0>, 'align_self': <atom.enum.Enum object at 0x7fb6a3fca5f0>, 'alpha': <atom.scalars.Float object at 0x7fb6a3fc8870>, 'animate': <atom.scalars.Bool object at 0x7fb6a3fc87d0>, 'animations': <atom.typed.Typed object at 0x7fb6a3fc8730>, 'background_color': <atom.scalars.Unicode object at 0x7fb6a3fc8910>, 'bottom': <atom.scalars.Int object at 0x7fb6a3fc8d70>, 'clickable': <atom.scalars.Bool object at 0x7fb6a3fc8230>, 'clicked': <atom.event.Event object at 0x7fb6a3fc8550>, 'declaration': <atom.typed.ForwardTyped object at 0x7fb6a3fada60>, 'destroyed': <atom.event.Event object at 0x7fb6a444a410>, 'enabled': <atom.scalars.Bool object at 0x7fb6a3fc80f0>, 'flex_basis': <atom.scalars.Float object at 0x7fb6a3fca690>, 'flex_grow': <atom.scalars.Float object at 0x7fb6a3fca730>, 'flex_shrink': <atom.scalars.Float object at 0x7fb6a3fca7d0>, 'focusable': <atom.scalars.Bool object at 0x7fb6a3fc8370>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f6bf50>, 'gravity': <atom.coerced.Coerced object at 0x7fb6a3fc8af0>, 'height': <atom.coerced.Coerced object at 0x7fb6a3fc8a50>, 'initialized': <atom.event.Event object at 0x7fb6a44904b0>, 'key_event': <atom.event.Event object at 0x7fb6a3fc85f0>, 'key_events': <atom.scalars.Bool object at 0x7fb6a3fc8410>, 'left': <atom.scalars.Int object at 0x7fb6a3fc8b90>, 'long_clickable': <atom.scalars.Bool object at 0x7fb6a3fc82d0>, 'margin': <atom.tuple.Tuple object at 0x7fb6a3fca0f0>, 'max_height': <atom.scalars.Int object at 0x7fb6a3fc8eb0>, 'max_width': <atom.scalars.Int object at 0x7fb6a3fca050>, 'min_height': <atom.scalars.Int object at 0x7fb6a3fc8e10>, 'min_width': <atom.scalars.Int object at 0x7fb6a3fc8f50>, 'name': <atom.scalars.Unicode object at 0x7fb6a44905f0>, 'padding': <atom.tuple.Tuple object at 0x7fb6a3fca230>, 'position': <atom.enum.Enum object at 0x7fb6a3fca550>, 'proxy': <atom.typed.Typed object at 0x7fb6a3fca870>, 'right': <atom.scalars.Int object at 0x7fb6a3fc8cd0>, 'top': <atom.scalars.Int object at 0x7fb6a3fc8c30>, 'touch_event': <atom.event.Event object at 0x7fb6a3fc8690>, 'touch_events': <atom.scalars.Bool object at 0x7fb6a3fc84b0>, 'visible': <atom.scalars.Bool object at 0x7fb6a3fc8190>, 'widget': <atom.typed.Typed object at 0x7fb6a3f8ce10>, 'width': <atom.coerced.Coerced object at 0x7fb6a3fc89b0>, 'x': <atom.scalars.Float object at 0x7fb6a3fca370>, 'y': <atom.scalars.Float object at 0x7fb6a3fca410>, 'z': <atom.scalars.Float object at 0x7fb6a3fca4b0>}¶
-
__module__
= 'enamlnative.ios.uikit_switch'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_text_view module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_text_view.
UIFont
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.NSObject
-
__signature__
¶ A member which allows tuple values.
If item validation is used, then assignment will create a copy of the original tuple before validating the items, since validation may change the item values.
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3f6bd70>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>}¶
-
__module__
= 'enamlnative.ios.uikit_text_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_text_view.
UITextView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIView
Common text items
-
text
¶ Properties
-
textColor
¶ The superclass implementation is sufficient
-
textAlignment
¶ The superclass implementation is sufficient
-
setFont
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
NSTextAlignmentLeft
= 0¶
-
NSTextAlignmentCenter
= 1¶
-
NSTextAlignmentRight
= 2¶
-
NSTextAlignmentJustified
= 3¶
-
NSTextAlignmentNatural
= 4¶
-
TEXT_ALIGNMENT
= {'': 4, 'center': 1, 'justified': 3, 'left': 0, 'natural': 4, 'right': 2}¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_text_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_text_view.
UILabel
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_text_view.UITextView
-
numberOfLines
¶ The superclass implementation is sufficient
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'numberOfLines': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe32a8>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'setFont': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3c80>, 'text': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcf28>, 'textAlignment': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe31e0>, 'textColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe3118>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_text_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_text_view.
UiKitTextView
(parent=None, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.text_view.ProxyTextView
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
__atom_members__
= {'_children': <atom.list.List object at 0x7fb6a43c02f0>, '_d_engine': <atom.typed.Typed object at 0x7fb6a44900f0>, '_d_storage': <atom.typed.Typed object at 0x7fb6a4490230>, '_flags': <atom.scalars.Value object at 0x7fb6a4490c30>, '_parent': <atom.scalars.Value object at 0x7fb6a444a190>, 'activated': <atom.event.Event object at 0x7fb6a437eeb0>, 'align_self': <atom.enum.Enum object at 0x7fb6a3fca5f0>, 'alpha': <atom.scalars.Float object at 0x7fb6a3fc8870>, 'animate': <atom.scalars.Bool object at 0x7fb6a3fc87d0>, 'animations': <atom.typed.Typed object at 0x7fb6a3fc8730>, 'background_color': <atom.scalars.Unicode object at 0x7fb6a3fc8910>, 'bottom': <atom.scalars.Int object at 0x7fb6a3fc8d70>, 'clickable': <atom.scalars.Bool object at 0x7fb6a3fc8230>, 'clicked': <atom.event.Event object at 0x7fb6a3fc8550>, 'declaration': <atom.typed.ForwardTyped object at 0x7fb6a3fada60>, 'destroyed': <atom.event.Event object at 0x7fb6a444a410>, 'enabled': <atom.scalars.Bool object at 0x7fb6a3fc80f0>, 'flex_basis': <atom.scalars.Float object at 0x7fb6a3fca690>, 'flex_grow': <atom.scalars.Float object at 0x7fb6a3fca730>, 'flex_shrink': <atom.scalars.Float object at 0x7fb6a3fca7d0>, 'focusable': <atom.scalars.Bool object at 0x7fb6a3fc8370>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f6bf50>, 'gravity': <atom.coerced.Coerced object at 0x7fb6a3fc8af0>, 'height': <atom.coerced.Coerced object at 0x7fb6a3fc8a50>, 'initialized': <atom.event.Event object at 0x7fb6a44904b0>, 'key_event': <atom.event.Event object at 0x7fb6a3fc85f0>, 'key_events': <atom.scalars.Bool object at 0x7fb6a3fc8410>, 'left': <atom.scalars.Int object at 0x7fb6a3fc8b90>, 'long_clickable': <atom.scalars.Bool object at 0x7fb6a3fc82d0>, 'margin': <atom.tuple.Tuple object at 0x7fb6a3fca0f0>, 'max_height': <atom.scalars.Int object at 0x7fb6a3fc8eb0>, 'max_width': <atom.scalars.Int object at 0x7fb6a3fca050>, 'min_height': <atom.scalars.Int object at 0x7fb6a3fc8e10>, 'min_width': <atom.scalars.Int object at 0x7fb6a3fc8f50>, 'name': <atom.scalars.Unicode object at 0x7fb6a44905f0>, 'padding': <atom.tuple.Tuple object at 0x7fb6a3fca230>, 'position': <atom.enum.Enum object at 0x7fb6a3fca550>, 'proxy': <atom.typed.Typed object at 0x7fb6a3fca870>, 'right': <atom.scalars.Int object at 0x7fb6a3fc8cd0>, 'top': <atom.scalars.Int object at 0x7fb6a3fc8c30>, 'touch_event': <atom.event.Event object at 0x7fb6a3fc8690>, 'touch_events': <atom.scalars.Bool object at 0x7fb6a3fc84b0>, 'visible': <atom.scalars.Bool object at 0x7fb6a3fc8190>, 'widget': <atom.typed.Typed object at 0x7fb6a3f6be10>, 'width': <atom.coerced.Coerced object at 0x7fb6a3fc89b0>, 'x': <atom.scalars.Float object at 0x7fb6a3fca370>, 'y': <atom.scalars.Float object at 0x7fb6a3fca410>, 'z': <atom.scalars.Float object at 0x7fb6a3fca4b0>}¶
-
__module__
= 'enamlnative.ios.uikit_text_view'¶
-
__slots__
= ()¶
-
declaration
¶ A Typed which delays resolving the type definition.
The first time the value is accessed or modified, the type will be resolved and the forward typed will behave identically to a normal typed.
-
frame
¶ A member which allows tuple values.
If item validation is used, then assignment will create a copy of the original tuple before validating the items, since validation may change the item values.
-
enamlnative.ios.uikit_toolkit_object module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on May 20, 2017
@author: jrm
-
class
enamlnative.ios.uikit_toolkit_object.
UiKitToolkitObject
[source]¶ Bases:
enaml.widgets.toolkit_object.ProxyToolkitObject
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
create_widget
()[source]¶ Create the toolkit widget for the proxy object.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘widget’ attribute.
-
init_widget
()[source]¶ Initialize the state of the toolkit widget.
This method is called during the top-down pass, just after the ‘create_widget()’ method is called. This method should init the state of the widget. The child widgets will not yet be created.
-
init_layout
()[source]¶ Initialize the layout of the toolkit widget.
This method is called during the bottom-up pass. This method should initialize the layout of the widget. The child widgets will be fully initialized and layed out when this is called.
-
destroy
()[source]¶ A reimplemented destructor.
This destructor will clear the reference to the toolkit widget and set its parent to None.
-
parent_widget
()[source]¶ Get the parent toolkit widget for this object.
Returns: result – The toolkit widget declared on the declaration parent, or None if there is no such parent. Return type: ObjcBridgeObject or None
-
child_widgets
()[source]¶ Get the child toolkit widgets for this object.
Returns: result – The child widgets defined for this object. Return type: iterable of ObjcBridgeObjects
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'widget': <atom.typed.Typed object at 0x7fb6a3fce0f0>}¶
-
__module__
= 'enamlnative.ios.uikit_toolkit_object'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_view module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_view.
NSObject
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.bridge.ObjcBridgeObject
-
addObserver
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
removeObserver
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
observeValueForKeyPath
¶ Description of a callback method of a View (or subclass) in Objc. When called, it fires the connected callback. This is triggered when it receives an event from the bridge indicating the call has occured.
-
NSKeyValueObservingOptionNew
= 1¶
-
NSKeyValueObservingOptionOld
= 2¶
-
NSKeyValueObservingOptionInitial
= 4¶
-
NSKeyValueObservingOptionPrior
= 8¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>}¶
-
__module__
= 'enamlnative.ios.uikit_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_view.
UIResponder
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.NSObject
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>}¶
-
__module__
= 'enamlnative.ios.uikit_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_view.
UIView
(*args, **kwargs)[source]¶ Bases:
enamlnative.ios.uikit_view.UIResponder
From: https://developer.apple.com/documentation/uikit/uiview?language=objc
-
yoga
¶ A value which allows objects of a given type or types.
Values will be tested using the PyObject_TypeCheck C API call. This call is equivalent to type(obj) in cls.mro(). It is less flexible but faster than Instance. Use Instance when allowing heterogenous values and Typed when the value type is explicit.
The value of a Typed may be set to None
-
backgroundColor
¶ Properties
The superclass implementation is sufficient
-
alpha
¶ The superclass implementation is sufficient
-
opaque
¶ The superclass implementation is sufficient
-
tintColor
¶ The superclass implementation is sufficient
-
tintAdjustmentMode
¶ The superclass implementation is sufficient
-
clipsToBounds
¶ The superclass implementation is sufficient
-
clearsContextBeforeDrawing
¶ The superclass implementation is sufficient
-
maskView
¶ The superclass implementation is sufficient
-
userInteractionEnabled
¶ The superclass implementation is sufficient
-
multipleTouchEnabled
¶ The superclass implementation is sufficient
-
exclusiveTouch
¶ The superclass implementation is sufficient
-
frame
¶ The superclass implementation is sufficient
-
bounds
¶ The superclass implementation is sufficient
-
center
¶ The superclass implementation is sufficient
-
transform
¶ The superclass implementation is sufficient
-
layoutMargins
¶ The superclass implementation is sufficient
-
preservesSuperviewLayoutMargins
¶ The superclass implementation is sufficient
-
addSubview
¶ Methods
-
bringSubviewToFront
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
sendSubviewToBack
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
removeFromSuperview
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
insertSubview
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
exchangeSubviewAtIndex
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb870>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'addObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc32c0>, 'addSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3530>, 'alpha': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc118>, 'backgroundColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9f28>, 'bounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc9b0>, 'bringSubviewToFront': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3600>, 'center': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdca78>, 'clearsContextBeforeDrawing': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc500>, 'clipsToBounds': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc438>, 'exchangeSubviewAtIndex': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3940>, 'exclusiveTouch': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc820>, 'frame': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc8e8>, 'hidden': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc050>, 'insertSubview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3870>, 'layoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcc08>, 'maskView': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc5c8>, 'multipleTouchEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc758>, 'observeValueForKeyPath': <enamlnative.ios.bridge.ObjcCallback object at 0x7fb6a3fc3460>, 'opaque': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc1e0>, 'preservesSuperviewLayoutMargins': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdccd0>, 'removeFromSuperview': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc37a0>, 'removeObserver': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3390>, 'sendSubviewToBack': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc36d0>, 'tintAdjustmentMode': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc370>, 'tintColor': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc2a8>, 'transform': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdcb40>, 'userInteractionEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fdc690>, 'yoga': <atom.typed.Typed object at 0x7fb6a3fce190>}¶
-
__module__
= 'enamlnative.ios.uikit_view'¶
-
__slots__
= ()¶
-
-
class
enamlnative.ios.uikit_view.
UiKitView
[source]¶ Bases:
enamlnative.ios.uikit_toolkit_object.UiKitToolkitObject
,enamlnative.widgets.view.ProxyView
An UiKit implementation of an Enaml ProxyToolkitObject.
-
widget
¶ A reference to the toolkit widget created by the proxy.
-
frame
¶ Frame in (x,y,width,height)
-
create_widget
()[source]¶ Create the toolkit widget for the proxy object.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘widget’ attribute.
-
init_widget
()[source]¶ Initialize the underlying widget.
This reads all items declared in the enamldef block for this node and sets only the values that have been specified. All other values will be left as default. Doing it this way makes atom to only create the properties that need to be overridden from defaults thus greatly reducing the number of initialization checks, saving time and memory.
If you don’t want this to happen override get_declared_keys to return an empty list.
-
get_declared_items
()[source]¶ Get the members that were set in the enamldef block for this Declaration. Layout keys are grouped together until the end so as to avoid triggering multiple updates.
Returns: result – List of keys and values Return type: List of (k,v) pairs that were defined for this widget in enaml
-
init_layout
()[source]¶ Initialize the layout of the toolkit widget.
This method is called during the bottom-up pass. This method should initialize the layout of the widget. The child widgets will be fully initialized and layed out when this is called.
-
child_added
(child)[source]¶ Handle the child added event from the declaration.
This handler will unparent the child toolkit widget. Subclasses which need more control should reimplement this method.
-
child_removed
(child)[source]¶ Handle the child removed event from the declaration.
This handler will unparent the child toolkit widget. Subclasses which need more control should reimplement this method.
-
destroy
()[source]¶ A reimplemented destructor.
This destructor will remove itself from the superview.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3fce2d0>, 'widget': <atom.typed.Typed object at 0x7fb6a3fce230>}¶
-
__module__
= 'enamlnative.ios.uikit_view'¶
-
__slots__
= ()¶
-
enamlnative.ios.uikit_view_group module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.uikit_view_group.
UiKitViewGroup
[source]¶ Bases:
enamlnative.ios.uikit_view.UiKitView
,enamlnative.widgets.view_group.ProxyViewGroup
An UiKit implementation of an Enaml ProxyToolkitObject.
-
layout
¶ A reference to the toolkit widget created by the proxy.
-
create_widget
()[source]¶ Create the toolkit widget for the proxy object.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘widget’ attribute.
-
create_layout
()[source]¶ Create the layout widget for arranging child proxy objects.
This method is called during the top-down pass, just before the ‘init_widget()’ method is called. This method should create the toolkit widget and assign it to the ‘layout’ attribute.
-
init_layout
()[source]¶ Initialize the layout of the toolkit widget.
This method is called during the bottom-up pass. This method should initialize the layout of the widget. The child widgets will be fully initialized and layed out when this is called.
This
-
child_added
(child)[source]¶ Handle the child added event from the declaration.
This handler will unparent the child toolkit widget. Subclasses which need more control should reimplement this method.
-
child_removed
(child)[source]¶ Handle the child removed event from the declaration.
The child must be both removed from the arrangement and removed normally.
-
__atom_members__
= {'declaration': <atom.typed.ForwardTyped object at 0x7fb6a4103eb0>, 'frame': <atom.tuple.Tuple object at 0x7fb6a3f849b0>, 'layout': <atom.instance.Instance object at 0x7fb6a3f84910>, 'widget': <atom.typed.Typed object at 0x7fb6a3fce230>}¶
-
__module__
= 'enamlnative.ios.uikit_view_group'¶
-
__slots__
= ()¶
-
frame
¶ A member which allows tuple values.
If item validation is used, then assignment will create a copy of the original tuple before validating the items, since validation may change the item values.
-
enamlnative.ios.yoga module¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on Aug 3, 2017
@author: jrm
-
class
enamlnative.ios.yoga.
Yoga
(root, attr, **kwargs)[source]¶ Bases:
enamlnative.core.bridge.NestedBridgeObject
-
isEnabled
¶ The superclass implementation is sufficient
-
flexDirection
¶ The superclass implementation is sufficient
-
justifyContent
¶ The superclass implementation is sufficient
-
alignContent
¶ The superclass implementation is sufficient
-
alignItems
¶ The superclass implementation is sufficient
-
alignSelf
¶ The superclass implementation is sufficient
-
overflow
¶ The superclass implementation is sufficient
-
display
¶ The superclass implementation is sufficient
-
flexWrap
¶ The superclass implementation is sufficient
-
flexGrow
¶ The superclass implementation is sufficient
-
flexShrink
¶ The superclass implementation is sufficient
-
flexBasis
¶ The superclass implementation is sufficient
-
left
¶ The superclass implementation is sufficient
-
top
¶ The superclass implementation is sufficient
-
right
¶ The superclass implementation is sufficient
-
bottom
¶ The superclass implementation is sufficient
-
start
¶ The superclass implementation is sufficient
-
end
¶ The superclass implementation is sufficient
-
marginLeft
¶ The superclass implementation is sufficient
-
marginTop
¶ The superclass implementation is sufficient
-
marginRight
¶ The superclass implementation is sufficient
-
marginBottom
¶ The superclass implementation is sufficient
-
marginStart
¶ The superclass implementation is sufficient
-
marginEnd
¶ The superclass implementation is sufficient
-
margin
¶ The superclass implementation is sufficient
-
paddingLeft
¶ The superclass implementation is sufficient
-
paddingTop
¶ The superclass implementation is sufficient
-
paddingRight
¶ The superclass implementation is sufficient
-
paddingBottom
¶ The superclass implementation is sufficient
-
paddingStart
¶ The superclass implementation is sufficient
-
paddingEnd
¶ The superclass implementation is sufficient
-
padding
¶ The superclass implementation is sufficient
-
borderLeftWidth
¶ The superclass implementation is sufficient
-
borderTopWidth
¶ The superclass implementation is sufficient
-
borderRightWidth
¶ The superclass implementation is sufficient
-
borderBottomWidth
¶ The superclass implementation is sufficient
-
borderStartWidth
¶ The superclass implementation is sufficient
-
borderEndWidth
¶ The superclass implementation is sufficient
-
borderWidth
¶ The superclass implementation is sufficient
-
width
¶ The superclass implementation is sufficient
-
height
¶ The superclass implementation is sufficient
-
minWidth
¶ The superclass implementation is sufficient
-
maxWidth
¶ The superclass implementation is sufficient
-
minHeight
¶ The superclass implementation is sufficient
-
maxHeight
¶ The superclass implementation is sufficient
-
markDirty
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
applyLayoutPreservingOrigin
¶ Description of a method of a View (or subclass) in Objc. When called, this serializes the call, packs the arguments, and delegates handling to a bridge in Objc.
To keep method calling similar to Swift instead of defining a method matching the signature with underscores like pyobjc and pyobjus the signature should be defined as follows:
- The first argument, if any, should be a string.
- Subsequent arguments should each be a dictionary of the available subnames and their types.
For instance:
UIView insertSubview has the following signatures:
This is defined in python like:
- insertSubview = ObjcMethod(‘UIView’,
- dict(atIndex=’NSInteger’,
- aboveSubview=’UIView’, belowSubview=’UIView’))
Doing it this way it can be called like Swift, using kwargs
view.insertSubview(subview, atIndex=3) view.insertSubview(subview, aboveSubview=above_view)
-
YGAlignAuto
= 0¶
-
YGAlignFlexStart
= 1¶
-
YGAlignCenter
= 2¶
-
YGAlignFlexEnd
= 3¶
-
YGAlignStretch
= 4¶
-
YGAlignBaseline
= 5¶
-
YGAlignSpaceBetween
= 6¶
-
YGAlignSpaceAround
= 7¶
-
YGDirectionInherit
= 0¶
-
YGDirectionLTR
= 1¶
-
YGDirectionRTL
= 2¶
-
YGDisplayFlex
= 0¶
-
YGDisplayNone
= 1¶
-
YGFlexDirectionColumn
= 0¶
-
YGFlexDirectionColumnReverse
= 1¶
-
YGFlexDirectionRow
= 2¶
-
YGFlexDirectionRowReverse
= 3¶
-
YGJustifyFlexStart
= 0¶
-
YGJustifyCenter
= 1¶
-
YGJustifyFlexEnd
= 2¶
-
YGJustifySpaceBetween
= 3¶
-
YGJustifySpaceAround
= 4¶
-
YGOverflowVisible
= 0¶
-
YGOverflowHidden
= 1¶
-
YGOverflowScroll
= 2¶
-
YGWrapNoWrap
= 0¶
-
YGWrapWrap
= 1¶
-
YGWrapWrapReverse
= 2¶
-
FLEX_DIRECTION
= {'column': 0, 'column_reverse': 1, 'row': 2, 'row_reverse': 3}¶
-
FLEX_WRAP
= {'nowrap': 0, 'wrap': 1, 'wrap_reverse': 2}¶
-
JUSTIFY_CONTENT
= {'center': 1, 'flex_end': 2, 'flex_start': 0, 'space_around': 4, 'space_between': 3}¶
-
ALIGN_ITEMS
= {'baseline': 5, 'center': 2, 'flex_end': 3, 'flex_start': 1, 'stretch': 4}¶
-
ALIGN_CONTENT
= {'center': 2, 'flex_end': 3, 'flex_start': 1, 'space_around': 7, 'space_between': 6, 'stretch': 4}¶
-
ALIGN_SELF
= {'auto': 0, 'baseline': 5, 'center': 2, 'flex_end': 3, 'flex_start': 1, 'stretch': 4}¶
-
__atom_members__
= {'__app__': <atom.instance.ForwardInstance object at 0x7fb6a4103f68>, '__bridge_id__': <atom.scalars.Int object at 0x7fb6a3ffb2d0>, '__callbacks__': <atom.dict.Dict object at 0x7fb6a3ffb4b0>, '__id__': <atom.scalars.Int object at 0x7fb6a3ffb730>, '__nativeclass__': <atom.scalars.Unicode object at 0x7fb6a3ffb370>, '__prefix__': <atom.scalars.Unicode object at 0x7fb6a3ffb5f0>, '__root__': <atom.instance.Instance object at 0x7fb6a3ffb690>, '__signature__': <atom.tuple.Tuple object at 0x7fb6a3ffb550>, '__suppressed__': <atom.dict.Dict object at 0x7fb6a3ffb410>, 'alignContent': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9d98>, 'alignItems': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9e60>, 'alignSelf': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9f28>, 'applyLayoutPreservingOrigin': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc31f0>, 'borderBottomWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9758>, 'borderEndWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd98e8>, 'borderLeftWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9500>, 'borderRightWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9690>, 'borderStartWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9820>, 'borderTopWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd95c8>, 'borderWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd99b0>, 'bottom': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7758>, 'display': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7118>, 'end': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd78e8>, 'flexBasis': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7438>, 'flexDirection': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9c08>, 'flexGrow': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd72a8>, 'flexShrink': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7370>, 'flexWrap': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd71e0>, 'height': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9b40>, 'isEnabled': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9b40>, 'justifyContent': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fe9cd0>, 'left': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7500>, 'margin': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7e60>, 'marginBottom': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7c08>, 'marginEnd': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7d98>, 'marginLeft': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd79b0>, 'marginRight': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7b40>, 'marginStart': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7cd0>, 'marginTop': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7a78>, 'markDirty': <enamlnative.ios.bridge.ObjcMethod object at 0x7fb6a3fc3120>, 'maxHeight': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9e60>, 'maxWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9cd0>, 'minHeight': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9d98>, 'minWidth': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9c08>, 'overflow': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7050>, 'padding': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9438>, 'paddingBottom': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd91e0>, 'paddingEnd': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9370>, 'paddingLeft': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7f28>, 'paddingRight': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9118>, 'paddingStart': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd92a8>, 'paddingTop': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9050>, 'right': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7690>, 'start': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd7820>, 'top': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd75c8>, 'width': <enamlnative.ios.bridge.ObjcProperty object at 0x7fb6a3fd9a78>}¶
-
__module__
= 'enamlnative.ios.yoga'¶
-
__slots__
= ()¶
-
Module contents¶
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on May 20, 2017
@author: jrm