Class LM_ColorSwatch
Version added: before 9.5

LM_Color_Swatch
The LM_ColorSwatch class lets the user choose a color. It is filled in with the current color selection, and when the user clicks it, a color picker appears to select a new color. To create a new color swatch, you would use the LM.GUI.ColorSwatch method.
See also: LM.GUI.ShortColorSwatch
Methods of LM_ColorSwatch:
| Name | Returns | Description | Ver |
| SetConstantMessages SetConstantMessages(b) | void | Added in version 11 | 11.0 |
| SetModalMessages SetModalMessages(beginSelectionMsg, endSelectionMsg) | void | Added in version 11 | 11.0 |
| SetValue SetValue(color) | void | Set the value of the color swatch | < 9.5 |
| Value Value() | rgb_color | Get the rgb_color value of the color swatch | < 9.5 |
Methods inherited from LM_BaseWidget:
| Name | Returns | Description | Ver |
| Redraw Redraw() | void | Call this function to force the widget to redraw itself | < 9.5 |
Methods inherited from LM_View:
| Name | Returns | Description | Ver |
| Enable Enable(enable) | void | Enables or disables a view object | < 9.5 |
| Height Height() | int32 | Returns the height of the widget | 11.0 |
| IsEnabled IsEnabled() | bool | Tells whether the view is currently enabled | < 9.5 |
| IsMouseDragging IsMouseDragging(button) | bool | Verifies if dragging mouse button matches the given argument | 11.0 |
| SetCursor SetCursor(cursor) | void | Change the cursor | < 9.5 |
| SetToolTip SetToolTip(tooltip) | void | Sets the tooltip text for a user interface control | 12.0 |
| Width Width() | int32 | Returns the height of the widget | 11.0 |