Merge pull request #192 from rigdern/rigdern/expose-props
Expose getters and setters for some new properties
This commit is contained in:
BIN
dist/css-layout.jar
vendored
BIN
dist/css-layout.jar
vendored
Binary file not shown.
@@ -317,6 +317,12 @@ namespace Facebook.CSSLayout
|
|||||||
get { return style.flex; }
|
get { return style.flex; }
|
||||||
set { updateFloatValue(ref style.flex, value); }
|
set { updateFloatValue(ref style.flex, value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CSSOverflow Overflow
|
||||||
|
{
|
||||||
|
get { return style.overflow; }
|
||||||
|
set { updateDiscreteValue(ref style.overflow, value); }
|
||||||
|
}
|
||||||
|
|
||||||
public void SetMargin(CSSSpacingType spacingType, float margin)
|
public void SetMargin(CSSSpacingType spacingType, float margin)
|
||||||
{
|
{
|
||||||
|
@@ -447,6 +447,62 @@ public class CSSNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get this node's max width, as defined in the style
|
||||||
|
*/
|
||||||
|
public float getStyleMaxWidth() {
|
||||||
|
return style.maxWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStyleMaxWidth(float maxWidth) {
|
||||||
|
if (!valuesEqual(style.maxWidth, maxWidth)) {
|
||||||
|
style.maxWidth = maxWidth;
|
||||||
|
dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get this node's min width, as defined in the style
|
||||||
|
*/
|
||||||
|
public float getStyleMinWidth() {
|
||||||
|
return style.minWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStyleMinWidth(float minWidth) {
|
||||||
|
if (!valuesEqual(style.minWidth, minWidth)) {
|
||||||
|
style.minWidth = minWidth;
|
||||||
|
dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get this node's max height, as defined in the style
|
||||||
|
*/
|
||||||
|
public float getStyleMaxHeight() {
|
||||||
|
return style.maxHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStyleMaxHeight(float maxHeight) {
|
||||||
|
if (!valuesEqual(style.maxHeight, maxHeight)) {
|
||||||
|
style.maxHeight = maxHeight;
|
||||||
|
dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get this node's min height, as defined in the style
|
||||||
|
*/
|
||||||
|
public float getStyleMinHeight() {
|
||||||
|
return style.minHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStyleMinHeight(float minHeight) {
|
||||||
|
if (!valuesEqual(style.minHeight, minHeight)) {
|
||||||
|
style.minHeight = minHeight;
|
||||||
|
dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public float getLayoutX() {
|
public float getLayoutX() {
|
||||||
return layout.position[POSITION_LEFT];
|
return layout.position[POSITION_LEFT];
|
||||||
}
|
}
|
||||||
@@ -476,6 +532,20 @@ public class CSSNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get this node's overflow property, as defined in the style
|
||||||
|
*/
|
||||||
|
public CSSOverflow getOverflow() {
|
||||||
|
return style.overflow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOverflow(CSSOverflow overflow) {
|
||||||
|
if (style.overflow != overflow) {
|
||||||
|
style.overflow = overflow;
|
||||||
|
dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets this instance to its default state. This method is meant to be used when
|
* Resets this instance to its default state. This method is meant to be used when
|
||||||
* recycling {@link CSSNode} instances.
|
* recycling {@link CSSNode} instances.
|
||||||
|
Reference in New Issue
Block a user