|
Krita Source Code Documentation
|
A widget for configuring the shadow of a shape. More...
#include <KoShadowConfigWidget.h>
Inheritance diagram for KoShadowConfigWidget:Public Slots | |
| void | setCanvas (KoCanvasBase *canvas) |
| void | setUnit (const KoUnit &unit) |
| void | setUnitManagers (KisSpinBoxUnitManager *managerBlur, KisSpinBoxUnitManager *managerOffset) |
Public Member Functions | |
| KoShadowConfigWidget (QWidget *parent) | |
| Private () | |
| void | setShadowBlur (const qreal &blur) |
| Sets the shadow blur radius. | |
| void | setShadowColor (const QColor &color) |
| Sets the shadow color. | |
| void | setShadowOffset (const QPointF &offset) |
| Sets the shadow offset. | |
| void | setShadowVisible (bool visible) |
| Sets if the shadow is visible. | |
| qreal | shadowBlur () const |
| Returns the shadow blur radius. | |
| QColor | shadowColor () const |
| Returns the shadow color. | |
| QPointF | shadowOffset () const |
| Returns the shadow offset. | |
| bool | shadowVisible () const |
| Returns if shadow is visible. | |
| ~KoShadowConfigWidget () override | |
Public Attributes | |
| KoColorPopupAction * | actionShadowColor {nullptr} |
| KoCanvasBase * | canvas {nullptr} |
| Ui_KoShadowConfigWidget | widget |
Private Slots | |
| void | applyChanges () |
| void | resourceChanged (int key, const QVariant &res) |
| void | selectionChanged () |
| void | visibilityChanged () |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
A widget for configuring the shadow of a shape.
Definition at line 27 of file KoShadowConfigWidget.cpp.
|
explicit |
Definition at line 38 of file KoShadowConfigWidget.cpp.
References applyChanges(), connect(), d, koIcon, and visibilityChanged().
|
override |
|
privateslot |
Definition at line 145 of file KoShadowConfigWidget.cpp.
References KisCanvas2::addCommand(), Private::canvas, d, KoSelection::firstSelectedShape(), KoSelection::selectedShapes(), KisCanvas2::selectedShapesProxy, KisSelectedShapesProxy::selection(), KoShapeShadow::setBlur(), KoShapeShadow::setColor(), KoShapeShadow::setOffset(), KoShapeShadow::setVisible(), shadowBlur(), shadowColor(), shadowOffset(), and shadowVisible().
|
inline |
Definition at line 30 of file KoShadowConfigWidget.cpp.
|
privateslot |
Definition at line 223 of file KoShadowConfigWidget.cpp.
References setUnit(), and KoCanvasResource::Unit.
|
privateslot |
Definition at line 163 of file KoShadowConfigWidget.cpp.
References KoShapeShadow::blur, Private::canvas, KoShapeShadow::color, d, KoSelection::firstSelectedShape(), KoShapeShadow::isVisible(), KoShapeShadow::offset, KisCanvas2::selectedShapesProxy, KisSelectedShapesProxy::selection(), setShadowBlur(), setShadowColor(), setShadowOffset(), setShadowVisible(), and KoShape::shadow().
|
slot |
Definition at line 191 of file KoShadowConfigWidget.cpp.
References Private::canvas, canvas, connect(), d, resourceChanged(), KoCanvasBase::resourceManager, KoCanvasBase::selectedShapesProxy(), selectionChanged(), setUnit(), and KoCanvasBase::unit().
| void KoShadowConfigWidget::setShadowBlur | ( | const qreal & | blur | ) |
| void KoShadowConfigWidget::setShadowColor | ( | const QColor & | color | ) |
Sets the shadow color.
Definition at line 71 of file KoShadowConfigWidget.cpp.
References d.
| void KoShadowConfigWidget::setShadowOffset | ( | const QPointF & | offset | ) |
Sets the shadow offset.
Definition at line 87 of file KoShadowConfigWidget.cpp.
| void KoShadowConfigWidget::setShadowVisible | ( | bool | visible | ) |
Sets if the shadow is visible.
Definition at line 124 of file KoShadowConfigWidget.cpp.
References d, and visibilityChanged().
Definition at line 213 of file KoShadowConfigWidget.cpp.
References d.
|
slot |
Definition at line 203 of file KoShadowConfigWidget.cpp.
References d.
| qreal KoShadowConfigWidget::shadowBlur | ( | ) | const |
Returns the shadow blur radius.
Definition at line 119 of file KoShadowConfigWidget.cpp.
References d.
| QColor KoShadowConfigWidget::shadowColor | ( | ) | const |
| QPointF KoShadowConfigWidget::shadowOffset | ( | ) | const |
Returns the shadow offset.
Definition at line 104 of file KoShadowConfigWidget.cpp.
References d.
| bool KoShadowConfigWidget::shadowVisible | ( | ) | const |
Returns if shadow is visible.
Definition at line 132 of file KoShadowConfigWidget.cpp.
References d.
|
privateslot |
| KoColorPopupAction* KoShadowConfigWidget::actionShadowColor {nullptr} |
Definition at line 34 of file KoShadowConfigWidget.cpp.
| KoCanvasBase* KoShadowConfigWidget::canvas {nullptr} |
Definition at line 35 of file KoShadowConfigWidget.cpp.
|
private |
Definition at line 64 of file KoShadowConfigWidget.h.
| Ui_KoShadowConfigWidget KoShadowConfigWidget::widget |
Definition at line 33 of file KoShadowConfigWidget.cpp.