Class Avatar
A widget for rendering Socially Distant user avatars.
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class Avatar : Widget, IFontFamilyProvider, IInspectable
Properties
AvatarSize
Gets or sets the size of the avatar, in GUI units.
Declaration
public int AvatarSize { get; set; }
Property Value
AvatarTexture
Gets or sets the Microsoft.Xna.Framework.Graphics.Texture2D instance representing the actual avatar image.
If set to null, a default avatar will be rendered.
Declaration
public Texture2D? AvatarTexture { get; set; }
Property Value
Type |
Description |
Texture2D |
|
Methods
GetContentSize(Point)
Declaration
protected override Point GetContentSize(Point availableSize)
Parameters
Type |
Name |
Description |
Point |
availableSize |
|
Returns
Overrides
Declaration
protected override void RebuildGeometry(GeometryHelper geometry)
Parameters
Overrides
Implements
See Also