Module dcanvas.widgets.controls

Simple controls widgets implementation.

TextWidget - static text

ImageWidget - image

Button - button with only text

ImageButton - button with only image

ImageTextButton - button with text and image

SwitchButton - switch widget

RadioButton - radio button

CheckBox - button with check mark

UrlImageTextButton - URL link button

CanvasWidget - for drawing arbitrary graphics

Note

ScrollBar and SliderWidget are moved to dcanvas.widgets.scrollbar

Synopsis

import dcanvas.widgets.controls;

Interfaces

NameDescription
OnDrawHandler interface - slot for onClick

Classes

NameDescription
Button Text only button
CanvasWidget canvas widget - draw on it either by overriding of doDraw() or by assigning of onDrawListener
CheckBox checkbox
HSpacer horizontal spacer to fill empty space in horizontal layouts
ImageButton button with image only
ImageCheckButton button with image working as trigger: check / uncheck occurs when pressing
ImageTextButton button with image and text
ImageWidget static image widget
LinkButton button looking like URL, executing specified action
MultilineTextWidget static text widget with multiline text
RadioButton radio button
SwitchButton Switch (on/off) widget
TextWidget static text widget
UrlImageTextButton button - url
VSpacer vertical spacer to fill empty space in vertical layouts