Table of Contents
Images #
About #
GraffitiAvatar is an amazingly simple yet beautiful component for displaying a user’s chosen image within your app and allowing them to interact with it.
Features:
- Automatic name to initial conversion
- Rectangle, oval, or diamond shaping
- Customizable border radius for rectangle
- Color settings
Enumerations #
Name | Values |
---|---|
Shapes | Rectangle |
Oval | |
Diamond |
Constants #
Name | Type | Value |
---|
This class exposes no constants.
Events #
Definition | Parameters | Return Type | Description |
---|---|---|---|
DoublePressed | None | None | Raised when the user double clicks the avatar’s visible area. |
Pressed | None | None | Raised when the user single clicks the avatar’s visible area. |
Methods #
Definition | Parameters | Return Type | Description |
---|
This class exposes no methods.
Properties #
Name | Type | Default Value | Description |
---|---|---|---|
BackgroundColor | Color | &c000000 | Background color used when displaying the user’s initials. |
BackgroundColorHover | Color | &c000000 | Background color used when displaying the user’s initials and the mouse is hovered over the avatar area. |
BorderColor | Color | &c000000 | Color used for drawing the outside edge of the avatar’s visible area. |
BorderColorHover | Color | &c000000 | Color used for drawing the outside edge of the avatar’s visible area when the mouse is hovered over the avatar area. |
BorderRadius | Integer | 0 | Corner radius when using Shapes.Rectangle or Shapes.Diamond. |
BorderWidth | Integer | 0 | Size of the drawn border. |
Image | Picture | Nil | User avatar image. |
Shape | Shapes | Shapes.Oval | Determines in what shape the avatar will be displayed. |
ShowInitialsOnHover | Boolean | True | When True, the avatar Image will be hidden and the initials extracted from the UserName will be displayed in the avatar area. |
TextColor | Color | &c000000 | Color applied to drawn initials. |
TextColorHover | Color | &c000000 | Color applied to drawn initials when the mouse is hovered over the avatar area. |
UserName | String | “” | Name to be used for initial extraction. |
Examples #
This class currently has no examples.
Notes #
This class currently has no notes.