Class YauiRawImage
An element that draws any texture (a render texture, a video, a texture without a sprite) over its content box, on top of its box. The corner radii of the box also round the image. Textures are never atlased: each one takes a texture slot of the draw.
Assembly: Yaui.dll
View Source
public class YauiRawImage : YauiElement
Inheritance: System.Object -> Yaui.YauiElement
Properties
Texture
View Source
public Texture Texture { get; set; }
Color
View Source
public Color Color { get; set; }
UvRect
View Source
public Rect UvRect { get; set; }
HasVisibleContent
Whether the element draws content besides its box: it is then hittable. Call Yaui.YauiElement.SyncHittable() when the value changes.
View Source
protected override bool HasVisibleContent { get; }
ContentIsMaskShape
Whether a Yaui.YauiMask on this element takes the shape of the content (the alpha of its images) instead of the box's, while there is content.
View Source
protected override bool ContentIsMaskShape { get; }
Methods
OnValidate()
View Source
protected override void OnValidate()
OnDidApplyAnimationProperties()
View Source
protected override void OnDidApplyAnimationProperties()
OnRegistered()
Called after the element got its slots in a panel (when enabled, or moved to another panel): write the content here. Content written before is gone.
View Source
protected override void OnRegistered()
OnUnregistering()
Called before the element releases its slots, including its content. The stores may already be shut down (domain reload).
View Source
protected override void OnUnregistering()
OnLayoutApplied()
Main thread, once a frame right before rendering: the layout of this element changed (Yaui.YauiElement.LayoutRect, Yaui.YauiElement.ContentBox). Content written here is drawn in this frame.
View Source
protected override void OnLayoutApplied()
OnBoxChanged()
Called after the box style was written (e.g. content that uses its corner radii).
View Source
protected override void OnBoxChanged()