Doodle

Search for usage in LXR

Doodle Class Reference

Inherits org::mauikit::controls::PopupPage.

Properties

color bgColor
 
alias brushOpacity
 
alias brushShape
 
alias brushSize
 
alias maxBrushSize
 
alias paintColor
 
alias source
 
Item sourceItem
 

Detailed Description

A drawing component wrapped in a popup surface. This controls inherits from MauiKit PopupPage, to checkout its inherited properties refer to the docs.

Since
org.mauikit.controls.labs 1.0
See also
PopupPage
Warning
This control is incomplete and will be moved out its own plugin named MauiKit::Painting
Maui.Page
{
id: _page
anchors.fill: parent
Maui.Controls.showCSD: true
Maui.Theme.colorSet: Maui.Theme.Window
headBar.forceCenterMiddleContent: true
{
anchors.centerIn: parent
text: "Doodle Me!"
onClicked: _doodle.open()
}
}
Maui.Doodle
{
id: _doodle
sourceItem: _page
}
Item sourceItem
A source item can be captured to start doodling over it and to be saved later as an image.
Definition Doodle.qml:53

You can find a more complete example at this link.

Definition at line 43 of file Doodle.qml.

Property Documentation

◆ bgColor

color Doodle::bgColor
read

The background color of the canvas.

Remarks
This property is read-only

Definition at line 58 of file Doodle.qml.

◆ brushOpacity

double Doodle::brushOpacity
read

The opacity of the brush.

Definition at line 72 of file Doodle.qml.

◆ brushShape

int Doodle::brushShape
read

The shape of the brush.

Possibel values are:

  • 0 for circular
  • 1 for rectangular

Definition at line 80 of file Doodle.qml.

◆ brushSize

double Doodle::brushSize
read

The size of the brush.

Definition at line 67 of file Doodle.qml.

◆ maxBrushSize

double Doodle::maxBrushSize
read

The maximum size of the brush.

Definition at line 86 of file Doodle.qml.

◆ paintColor

color Doodle::paintColor
read

The color of the paint to use with the brush.

Definition at line 91 of file Doodle.qml.

◆ source

alias Doodle::source
read

An image source to be used as the background to doodle over it.

Definition at line 62 of file Doodle.qml.

◆ sourceItem

Item Doodle::sourceItem
read

A source item can be captured to start doodling over it and to be saved later as an image.

Definition at line 53 of file Doodle.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.