Eric Jensen
12da9ac6a9
Improve Swift compatibility of ASHorizontalAlignment & ASVerticalAlignment by using consistent naming
2016-03-21 11:16:28 -07:00
Rahul Malik
4eb3356615
Basic a11y support for ASButtonNode
2016-03-20 19:22:53 -07:00
Eric Jensen
17aebcbaba
Add a space between the ? and : in ternarys
2016-03-17 10:38:51 -07:00
Eric Jensen
33fda7ab49
- Use modern Objective-C syntax.
...
- Simplify comparisons.
- Remove dead stores.
2016-03-15 22:34:29 -07:00
Tom King
a22278340f
fixed indentation
2016-03-09 10:27:38 -05:00
Tom King
cd85389397
support the combined [.Selected, .Highlighted] state in ASButtonNode
2016-03-09 09:23:15 -05:00
Garrett Moon
6a1298440d
Flex shrink should be set on title init, not image init
2016-02-24 15:10:18 -08:00
Scott Goodson
cd6ca2885e
[ASButtonNode] lazily initialize label, image, and backgroundImage (skip if never needed).
2016-02-20 13:00:01 -08:00
Garrett Moon
64f36d4499
Add support for contentInset and make ASButtonNode a bit more threadsafe
2016-02-04 17:40:16 -08:00
appleguy
ea6c7ae938
Merge pull request #1025 from 1nput0utput/ASButtonNodeImprovements
...
[ASButtonNode] Add support for backgroundImage. Extend & simplify API with separate title and color.
2016-01-23 12:45:48 -08:00
Rajinder Ramgarhia
389945d69d
ASButtonNode sets its subnodes as layer backed, but itelf should not be layer backed
2016-01-20 14:29:34 -05:00
Rajinder Ramgarhia
6c56a6046b
Simpler ASButtonNode API to set title and set background image
2016-01-16 00:23:03 -05:00
Scott Goodson
affb786a14
[ASButtonNode] Pass through setDisplaysAsynchronously: to subnodes (image and title).
2016-01-14 23:12:01 -08:00
Bin Liu
a36a955eb0
fix indentation
2016-01-06 13:09:59 -08:00
Bin Liu
4435405cbb
Make ASControlState imitate UIControlState
...
- selected state isn't implicitly controlled by ASControlNode anymore
- highlighted state can be overriden by users
- Decouple ASButtonNode's state from control events
2016-01-06 12:17:52 -08:00
Bin Liu
4f67050b9b
Fix another typo, fix build failure
2016-01-05 18:04:26 -08:00
Bin Liu
6bb51063f9
Replace ASButtonState with ASControlState
2016-01-05 17:07:44 -08:00
Scott Goodson
a2cf2a88e6
Overhaul header files / includes to eliminate circular references that Xcode 7 is angry about.
2015-12-25 19:22:00 -08:00
Rajinder Ramgarhia
108ce6d8fc
Set horizontal & vertical alignment default to center. Use ivar to set layout.
2015-12-22 14:23:21 -05:00
Rajinder Ramgarhia
d7b128e19b
ASButtonNode content alignement properties
2015-12-22 14:23:21 -05:00
Scott Goodson
3416450f11
Adding ASButtonNode. Simple but flexible, add features as desired!
2015-10-31 15:12:05 -07:00