transformed style values into properties and removed enums that were implementation details
This commit is contained in:
@@ -76,106 +76,211 @@
|
||||
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
}
|
||||
|
||||
- (YKDirection)yk_direction
|
||||
{
|
||||
return (YKDirection)YGNodeStyleGetDirection([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setDirection:(YKDirection)direction
|
||||
{
|
||||
YGNodeStyleSetDirection([self ygNode], (YGDirection)direction);
|
||||
}
|
||||
|
||||
- (YKFlexDirection)yk_flexDirection
|
||||
{
|
||||
return (YKFlexDirection)YGNodeStyleGetFlexDirection([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setFlexDirection:(YKFlexDirection)flexDirection
|
||||
{
|
||||
YGNodeStyleSetFlexDirection([self ygNode], (YGFlexDirection)flexDirection);
|
||||
}
|
||||
|
||||
- (YKJustify)yk_justifyContent
|
||||
{
|
||||
return (YKJustify)YGNodeStyleGetJustifyContent([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setJustifyContent:(YKJustify)justifyContent
|
||||
{
|
||||
YGNodeStyleSetJustifyContent([self ygNode], (YGJustify)justifyContent);
|
||||
}
|
||||
|
||||
- (YKAlign)yk_alignContent
|
||||
{
|
||||
return (YKAlign)YGNodeStyleGetAlignContent([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setAlignContent:(YKAlign)alignContent
|
||||
{
|
||||
YGNodeStyleSetAlignContent([self ygNode], (YGAlign)alignContent);
|
||||
}
|
||||
|
||||
- (YKAlign)yk_alignItems
|
||||
{
|
||||
return (YKAlign)YGNodeStyleGetAlignItems([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setAlignItems:(YKAlign)alignItems
|
||||
{
|
||||
YGNodeStyleSetAlignItems([self ygNode], (YGAlign)alignItems);
|
||||
}
|
||||
|
||||
- (YKAlign)yk_alignSelf
|
||||
{
|
||||
return (YKAlign)YGNodeStyleGetAlignSelf([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setAlignSelf:(YKAlign)alignSelf
|
||||
{
|
||||
YGNodeStyleSetAlignSelf([self ygNode], (YGAlign)alignSelf);
|
||||
}
|
||||
|
||||
- (YKPositionType)yk_positionType
|
||||
{
|
||||
return (YKPositionType)YGNodeStyleGetPositionType([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setPositionType:(YKPositionType)positionType
|
||||
{
|
||||
YGNodeStyleSetPositionType([self ygNode], (YGPositionType)positionType);
|
||||
}
|
||||
|
||||
- (YKWrap)yk_flexWrap
|
||||
{
|
||||
return (YKWrap)YGNodeStyleGetFlexWrap([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setFlexWrap:(YKWrap)flexWrap
|
||||
{
|
||||
YGNodeStyleSetFlexWrap([self ygNode], (YGWrap)flexWrap);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_flexGrow
|
||||
{
|
||||
return YGNodeStyleGetFlexGrow([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setFlexGrow:(CGFloat)flexGrow
|
||||
{
|
||||
YGNodeStyleSetFlexGrow([self ygNode], flexGrow);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_flexShrink
|
||||
{
|
||||
return YGNodeStyleGetFlexShrink([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setFlexShrink:(CGFloat)flexShrink
|
||||
{
|
||||
YGNodeStyleSetFlexShrink([self ygNode], flexShrink);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_flexBasis
|
||||
{
|
||||
return YGNodeStyleGetFlexBasis([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setFlexBasis:(CGFloat)flexBasis
|
||||
{
|
||||
YGNodeStyleSetFlexBasis([self ygNode], flexBasis);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_positionForEdge:(YKEdge)edge
|
||||
{
|
||||
return YGNodeStyleGetPosition([self ygNode], (YGEdge)edge);
|
||||
}
|
||||
|
||||
- (void)yk_setPosition:(CGFloat)position forEdge:(YKEdge)edge
|
||||
{
|
||||
YGNodeStyleSetPosition([self ygNode], (YGEdge)edge, position);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_marginForEdge:(YKEdge)edge
|
||||
{
|
||||
return YGNodeStyleGetMargin([self ygNode], (YGEdge)edge);
|
||||
}
|
||||
|
||||
- (void)yk_setMargin:(CGFloat)margin forEdge:(YKEdge)edge
|
||||
{
|
||||
YGNodeStyleSetMargin([self ygNode], (YGEdge)edge, margin);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_paddingForEdge:(YKEdge)edge
|
||||
{
|
||||
return YGNodeStyleGetPadding([self ygNode], (YGEdge)edge);
|
||||
}
|
||||
|
||||
- (void)yk_setPadding:(CGFloat)padding forEdge:(YKEdge)edge
|
||||
{
|
||||
YGNodeStyleSetPadding([self ygNode], (YGEdge)edge, padding);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_width
|
||||
{
|
||||
return YGNodeStyleGetWidth([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setWidth:(CGFloat)width
|
||||
{
|
||||
YGNodeStyleSetWidth([self ygNode], width);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_height
|
||||
{
|
||||
return YGNodeStyleGetHeight([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setHeight:(CGFloat)height
|
||||
{
|
||||
YGNodeStyleSetHeight([self ygNode], height);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_minWidth
|
||||
{
|
||||
return YGNodeStyleGetMinWidth([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setMinWidth:(CGFloat)minWidth
|
||||
{
|
||||
YGNodeStyleSetMinWidth([self ygNode], minWidth);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_minHeight
|
||||
{
|
||||
return YGNodeStyleGetMinHeight([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setMinHeight:(CGFloat)minHeight
|
||||
{
|
||||
YGNodeStyleSetMinHeight([self ygNode], minHeight);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_maxWidth
|
||||
{
|
||||
return YGNodeStyleGetMaxWidth([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setMaxWidth:(CGFloat)maxWidth
|
||||
{
|
||||
YGNodeStyleSetMaxWidth([self ygNode], maxWidth);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_maxHeight
|
||||
{
|
||||
return YGNodeStyleGetMaxHeight([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setMaxHeight:(CGFloat)maxHeight
|
||||
{
|
||||
YGNodeStyleSetMaxHeight([self ygNode], maxHeight);
|
||||
}
|
||||
|
||||
- (CGFloat)yk_aspectRatio
|
||||
{
|
||||
return YGNodeStyleGetAspectRatio([self ygNode]);
|
||||
}
|
||||
|
||||
- (void)yk_setAspectRatio:(CGFloat)aspectRatio
|
||||
{
|
||||
YGNodeStyleSetAspectRatio([self ygNode], aspectRatio);
|
||||
|
Reference in New Issue
Block a user