# GraffitiPanelSelectorItem
Class
## Attributes
| Name | Value |
| --- | --- |
| HideFromLibrary | |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| BackgroundModes | ProportionalCenter <br> ProportionalCover <br> Stretch <br> Passthrough | Supported image drawing modes. |
| Sizes | Auto <br> Actual <br> Percent | Supported size models. |
| TextAlignments | Default <br> Left <br> Center <br> Right | Supported text drawing alignments. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | (None) | (None) | Creates a new instance of the class. |
| Constructor | image as Picture <br> title as String <br> description as String = "" | (None) | Creates a new instance of the class. |
| Constructor | title as String <br> description as String = "" | (None) | Creates a new instance of the class. |
| Attributes | Hidden | draw | |
| Invalidate | (None) | (None) | Marks this item as in need of redraw and notified the parent. |
| Attributes | Hidden | updateParent | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | mParent | WeakRef | |
| BackgroundColorDefault | ColorGroup | Nil | Colors used to draw the item's background when neither hovered or selected. |
| BackgroundColorHovered | ColorGroup | Nil | Colors used to draw the item's background when hovered. |
| BackgroundColorSelected | ColorGroup | Nil | Colors used to draw the item's background when selected. |
| BackgroundImage | Picture | Nil | Picture drawn to the item's background. |
| BackgroundImageMode | BackgroundModes | Nil | Determines how the BackgroundImage is drawn. |
| bounds | Xojo.Rect | Nil | |
| Description | String | Nil | Text drawn as the item's description. |
| DescriptionColorDefault | ColorGroup | Nil | Colors applied to the item's description text when neither hovered or selected. |
| DescriptionColorHovered | ColorGroup | Nil | Colors applied to the item's description text when hovered. |
| DescriptionColorSelected | ColorGroup | Nil | Colors applied to the item's description text when selected. |
| display | Picture | Nil | |
| Image | Picture | Nil | Background image to draw. |
| ImageSize | Integer | Nil | Determines how the background image is drawn. |
| SizeType | Sizes | Nil | Determines how the SizeValue property is applied. A value of Auto will result in an item that the width of the parent component divided by the number of items added to the parent. |
| SizeValue | String | Nil | Value used for determining the item's size. Empty string for Auto, string representation of a number value otherwise. |
| Tag | Variant | Nil | Developer storage. |
| Title | String | Nil | Text drawn as the item's title. |
| TitleColorDefault | ColorGroup | Nil | Colors applied to the item's text when neither hovered or selected. |
| TitleColorHovered | ColorGroup | Nil | Colors applied to the item's text when hovered. |
| TitleColorSelected | ColorGroup | Nil | Colors applied to the item's text when selected. |