SetProperty(Actor.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
}
}
-
- }
-
- /// <summary>
- /// This specifies whether the Actor uses its own color, or inherits.
- /// </summary>
- public enum ColorMode
- {
- /// <summary>
- /// Actor will use its own color.
- /// </summary>
- UseOwnColor,
- /// <summary>
- /// Actor will use its parent color.
- /// </summary>
- UseParentColor,
- /// <summary>
- /// Actor will blend its color with its parents color.
- /// </summary>
- UseOwnMultiplyParentColor,
- /// <summary>
- /// Actor will blend its alpha with its parents alpha. This means when parent fades in or out child does as well. This is the default.
- /// </summary>
- UseOwnMultiplyParentAlpha
}
-
- /// <summary>
- /// This specifies the dimesion of width or heigh for size negotiation.
- /// </summary>
- public enum DimensionType
- {
- /// <summary>
- /// Width dimension
- /// </summary>
- Width = 0x1,
- /// <summary>
- /// Height dimension
- /// </summary>
- Height = 0x2,
- /// <summary>
- /// Mask to cover all flags
- /// </summary>
- AllDimensions = 0x3
- }
-
- /// <summary>
- /// Enumeration for the instance of how the actor and it's children will be drawn.
- /// </summary>
- public enum DrawModeType
- {
- /// <summary>
- /// The default draw-mode
- /// </summary>
- Normal = 0,
- /// <summary>
- /// Draw the actor and its children as an overlay
- /// </summary>
- Overlay2D = 1,
- /// <summary>
- /// Will be replaced by separate ClippingMode enum. Draw the actor and its children into the stencil buffer
- /// </summary>
- Stencil = 3
- }
-
- /// <summary>
- /// Enumeration for size negotiation resize policies.
- /// </summary>
- public enum ResizePolicyType
- {
- /// <summary>
- /// Size is fixed as set by SetSize
- /// </summary>
- Fixed,
- /// <summary>
- /// Size is to use the actor's natural size
- /// </summary>
- /// <see cref="Actor.GetNaturalSize"/>
- UseNaturalSize,
- /// <summary>
- /// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained.
- /// </summary>
- FillToParent,
- /// <summary>
- /// The actors size will be ( ParentSize * SizeRelativeToParentFactor ).
- /// </summary>
- SizeRelativeToParent,
- /// <summary>
- /// The actors size will be ( ParentSize + SizeRelativeToParentFactor ).
- /// </summary>
- SizeFixedOffsetFromParent,
- /// <summary>
- /// Size will adjust to wrap around all children
- /// </summary>
- FitToChildren,
- /// <summary>
- /// One dimension is dependent on the other
- /// </summary>
- DimensionDependency,
- /// <summary>
- /// The size will be assigned to the actor
- /// </summary>
- UseAssignedSize
- }
-
- /// <summary>
- /// Enumeration for policies to determine how an actor should resize itself when having its size set in size negotiation.
- /// </summary>
- public enum SizeScalePolicyType
- {
- /// <summary>
- /// Use the size that was set
- /// </summary>
- UseSizeSet,
- /// <summary>
- /// Fit within the size set maintaining natural size aspect ratio
- /// </summary>
- FitWithAspectRatio,
- /// <summary>
- /// Fit within the size set maintaining natural size aspect ratio
- /// </summary>
- FillWithAspectRatio
- }
-
- /// <summary>
- /// Enumeration for ClippingMode describing how this Actor's children will be clipped against it.
- /// </summary>
- public enum ClippingModeType
- {
- /// <summary>
- /// This Actor will not clip its children.
- /// </summary>
- Disabled,
- /// <summary>
- /// This Actor will clip all children to within its boundaries (the actor will also be visible itself).
- /// </summary>
- ClipChildren
- }
-
}