Krita Source Code Documentation
Loading...
Searching...
No Matches
View Class Reference

#include <View.h>

+ Inheritance diagram for View:

Classes

struct  Private
 

Public Slots

void activateResource (Resource *resource)
 activateResource activates the given resource.
 
ManagedColorbackgroundColor () const
 backgroundColor allows access to the currently active background color. This is nominally per canvas/view, but in practice per mainwindow.
 
qreal brushFade () const
 return the current fade for brush
 
qreal brushRotation () const
 return the current rotation for brush tip
 
qreal brushSize () const
 return the current size for brush
 
Canvascanvas () const
 
QString currentBlendingMode () const
 return the current blending mode for brush
 
ResourcecurrentBrushPreset () const
 return the current selected preset
 
ResourcecurrentGradient () const
 return the current selected gradient
 
ResourcecurrentPattern () const
 return the current selected pattern
 
bool disablePressure () const
 return current disabled pressure status
 
Documentdocument () const
 
bool eraserMode () const
 return current eraser mode status (active/inactive)
 
QTransform flakeToCanvasTransform () const
 flakeToCanvasTransform The transformation of the canvas relative to the view without rotation and mirroring
 
QTransform flakeToDocumentTransform () const
 flakeToDocumentTransform The transformation of the document relative to the view without rotation and mirroring
 
QTransform flakeToImageTransform () const
 flakeToImageTransform The transformation of the image relative to the view without rotation and mirroring
 
ManagedColorforegroundColor () const
 
bool globalAlphaLock () const
 return current global alpha lock mode (active/inactive)
 
float HDRExposure () const
 
float HDRGamma () const
 
qreal paintingFlow () const
 return the current flow for brush
 
qreal paintingOpacity () const
 return the current opacity for brush
 
qreal patternSize () const
 return the current pattern size for brush
 
QList< Node * > selectedNodes () const
 
void setBackGroundColor (ManagedColor *color)
 
void setBrushFade (qreal brushFade)
 set the current fade for brush
 
void setBrushRotation (qreal brushRotation)
 set the current rotation for brush tip
 
void setBrushSize (qreal brushSize)
 set the current size for brush
 
void setCurrentBlendingMode (const QString &blendingMode)
 set the current blending mode for brush
 
void setCurrentBrushPreset (Resource *resource)
 set the current selected preset
 
void setCurrentGradient (Resource *resource)
 set the current selected gradient
 
void setCurrentPattern (Resource *resource)
 set the current selected pattern
 
void setDisablePressure (bool value)
 set current disabled pressure status
 
void setDocument (Document *document)
 
void setEraserMode (bool value)
 set current eraser active/inactive
 
void setForeGroundColor (ManagedColor *color)
 
void setGlobalAlphaLock (bool value)
 set current global alpha lock mode active/inactive
 
void setHDRExposure (float exposure)
 set the current HDR Exposure value
 
void setHDRGamma (float gamma)
 set the current HDR Gamma value
 
void setPaintingFlow (qreal flow)
 set the current flow value for brush
 
void setPaintingOpacity (qreal opacity)
 set the current opacity for brush
 
void setPatternSize (qreal size)
 set the current pattern size value for brush
 
void setVisible ()
 
void showFloatingMessage (const QString &message, const QIcon &icon, int timeout, int priority)
 showFloatingMessage displays a floating message box on the top-left corner of the canvas
 
bool visible () const
 
Windowwindow () const
 

Signals

void backgroundColorChanged ()
 
void currentBrushPresetChanged ()
 
void currentToolChanged (const QString &toolId)
 
void foregroundColorChanged ()
 

Public Member Functions

bool operator!= (const View &other) const
 
bool operator== (const View &other) const
 
 View (KisView *view, QObject *parent=0)
 
 ~View () override
 

Private Member Functions

KisViewview ()
 

Private Attributes

Private *const d
 

Friends

class Scratchpad
 
class Window
 

Detailed Description

View represents one view on a document. A document can be shown in more than one view at a time.

Definition at line 24 of file View.h.

Constructor & Destructor Documentation

◆ View()

View::View ( KisView * view,
QObject * parent = 0 )
explicit

Definition at line 78 of file View.cpp.

79 : QObject(parent)
80 , d(new Private)
81{
82 d->view = view;
83 d->reconnect(this);
84}
Private *const d
Definition View.h:390
KisView * view()
Definition View.cpp:145
QPointer< KisView > view
Definition View.cpp:36
void reconnect(View *self)
Definition View.cpp:40

References d, View::Private::reconnect(), View::Private::view, and view().

◆ ~View()

View::~View ( )
override

Definition at line 86 of file View.cpp.

87{
88 delete d;
89}

References d.

Member Function Documentation

◆ activateResource

void View::activateResource ( Resource * resource)
slot

activateResource activates the given resource.

Parameters
resourcea pattern, gradient or paintop preset

Definition at line 150 of file View.cpp.

151{
152 if (!d->view) return;
153 if (!resource) return;
154
155 KoResourceSP r = resource->resource();
156 if (!r) return;
157
158 if (KoPatternSP pattern = r.dynamicCast<KoPattern>()) {
159 QVariant value = QVariant::fromValue(pattern);
160 d->view->canvasBase()->resourceManager()->setResource(KoCanvasResource::CurrentPattern, value);
161 } else if (KoAbstractGradientSP gradient = r.dynamicCast<KoAbstractGradient>()) {
162 QVariant value = QVariant::fromValue(gradient);
163 d->view->canvasBase()->resourceManager()->setResource(KoCanvasResource::CurrentGradient, value);
164 } else if (KoResourceSP preset = r.dynamicCast<KisPaintOpPreset>()) {
165 d->view->viewManager()->paintOpBox()->resourceSelected(preset);
166 }
167}
float value(const T *src, size_t ch)
Write API docs here.
Definition KoPattern.h:21
KoResourceSP resource() const
Definition Resource.cpp:116

References KoCanvasResource::CurrentGradient, KoCanvasResource::CurrentPattern, d, Resource::resource(), value(), and View::Private::view.

◆ backgroundColor

ManagedColor * View::backgroundColor ( ) const
slot

backgroundColor allows access to the currently active background color. This is nominally per canvas/view, but in practice per mainwindow.

Returns
The current background color

Definition at line 182 of file View.cpp.

183{
184 if (!d->view) return 0;
185 return new ManagedColor(d->view->resourceProvider()->bgColor());
186}
The ManagedColor class is a class to handle colors that are color managed. A managed color is a color...

References d, and View::Private::view.

◆ backgroundColorChanged

void View::backgroundColorChanged ( )
signal

Emitted when this view's background color changes.

◆ brushFade

qreal View::brushFade ( ) const
slot

return the current fade for brush

Returns
the brush fade value (0.00 - 1.00)

Definition at line 293 of file View.cpp.

294{
295 if (!d->view) return 0.0;
296 return d->view->resourceProvider()->fade();
297}

References d, and View::Private::view.

◆ brushRotation

qreal View::brushRotation ( ) const
slot

return the current rotation for brush tip

Returns
the brush tip rotation value (in degrees)

Definition at line 305 of file View.cpp.

306{
307 if (!d->view) return 0.0;
308 return d->view->resourceProvider()->brushRotation();
309}

References d, and View::Private::view.

◆ brushSize

qreal View::brushSize ( ) const
slot

return the current size for brush

Returns
the brush size value (in pixels)

Definition at line 281 of file View.cpp.

282{
283 if (!d->view) return 0.0;
284 return d->view->resourceProvider()->size();
285}

References d, and View::Private::view.

◆ canvas

Canvas * View::canvas ( ) const
slot
Returns
the canvas this view is showing. The canvas controls things like zoom and rotation.

Definition at line 138 of file View.cpp.

139{
140 if (!d->view) return 0;
141 Canvas *c = new Canvas(d->view->canvasBase());
142 return c;
143}

References d, and View::Private::view.

◆ currentBlendingMode

QString View::currentBlendingMode ( ) const
slot

return the current blending mode for brush

Returns
the current blending mode identifier

Definition at line 229 of file View.cpp.

230{
231 if (!d->view) return "";
232 return d->view->resourceProvider()->currentCompositeOp();
233}

References d, and View::Private::view.

◆ currentBrushPreset

Resource * View::currentBrushPreset ( ) const
slot

return the current selected preset

Returns
the current preset (Resource type = 'preset')

Definition at line 194 of file View.cpp.

195{
196 if (!d->view) return 0;
197 KoResourceSP preset = d->view->resourceProvider()->currentPreset();
198 if (!preset) return 0;
199 return new Resource(preset, ResourceType::PaintOpPresets);
200}
const QString PaintOpPresets

References d, ResourceType::PaintOpPresets, and View::Private::view.

◆ currentBrushPresetChanged

void View::currentBrushPresetChanged ( )
signal

Emitted when the current brush preset for this view changes.

◆ currentGradient

Resource * View::currentGradient ( ) const
slot

return the current selected gradient

Returns
the current gradient (Resource type = 'gradient')

Definition at line 218 of file View.cpp.

219{
220 if (!d->view) return 0;
221 return new Resource(d->view->resourceProvider()->currentGradient(), ResourceType::Gradients);
222}
const QString Gradients

References d, ResourceType::Gradients, and View::Private::view.

◆ currentPattern

Resource * View::currentPattern ( ) const
slot

return the current selected pattern

Returns
the current pattern (Resource type = 'pattern')

Definition at line 207 of file View.cpp.

208{
209 if (!d->view) return 0;
210 return new Resource(d->view->resourceProvider()->currentPattern(), ResourceType::Patterns);
211}
const QString Patterns

References d, ResourceType::Patterns, and View::Private::view.

◆ currentToolChanged

void View::currentToolChanged ( const QString & toolId)
signal

Emitted when the active tool for this view changes.

Parameters
toolIdthe identifier of the new active tool.

◆ disablePressure

bool View::disablePressure ( ) const
slot

return current disabled pressure status

Returns
True if is pressure is disabled, otherwise False

Definition at line 373 of file View.cpp.

374{
375 if (!d->view) {
376 return false;
377 }
378 return d->view->resourceProvider()->disablePressure();
379}

References d, and View::Private::view.

◆ document

Document * View::document ( ) const
slot
Returns
the document this view is showing.

Definition at line 110 of file View.cpp.

111{
112 if (!d->view) return 0;
113 Document *doc = new Document(d->view->document(), false);
114 return doc;
115}

References d, and View::Private::view.

◆ eraserMode

bool View::eraserMode ( ) const
slot

return current eraser mode status (active/inactive)

Returns
True if eraser mode is active, otherwise False

Definition at line 341 of file View.cpp.

342{
343 if (!d->view) {
344 return false;
345 }
346 return d->view->resourceProvider()->eraserMode();
347}

References d, and View::Private::view.

◆ flakeToCanvasTransform

QTransform View::flakeToCanvasTransform ( ) const
slot

flakeToCanvasTransform The transformation of the canvas relative to the view without rotation and mirroring

Returns
QTransform

Definition at line 416 of file View.cpp.

417{
418 if (!d->view->document()) return QTransform();
419 return d->view->canvasBase()->coordinatesConverter()->flakeToWidgetTransform();
420}

References d, and View::Private::view.

◆ flakeToDocumentTransform

QTransform View::flakeToDocumentTransform ( ) const
slot

flakeToDocumentTransform The transformation of the document relative to the view without rotation and mirroring

Returns
QTransform

Definition at line 410 of file View.cpp.

411{
412 if (!d->view->document()) return QTransform();
413 return d->view->canvasBase()->coordinatesConverter()->documentToFlakeTransform().inverted();
414}

References d, and View::Private::view.

◆ flakeToImageTransform

QTransform View::flakeToImageTransform ( ) const
slot

flakeToImageTransform The transformation of the image relative to the view without rotation and mirroring

Returns
QTransform

Definition at line 422 of file View.cpp.

423{
424 if (!d->view->document()) return QTransform();
425
426 const KisCoordinatesConverter* coordinatesConverter(d->view->canvasBase()->coordinatesConverter());
427 QTransform imageToFlakeTransform = coordinatesConverter->imageToDocumentTransform() * coordinatesConverter->documentToFlakeTransform();
428
429 return imageToFlakeTransform.inverted();
430}

References d, KisCoordinatesConverter::documentToFlakeTransform(), KisCoordinatesConverter::imageToDocumentTransform(), and View::Private::view.

◆ foregroundColor

ManagedColor * View::foregroundColor ( ) const
slot
   @brief foregroundColor allows access to the currently active foreground color.
   This is nominally per canvas/view, but in practice per mainwindow.

   @code

color = Application.activeWindow().activeView().foregroundColor() components = color.components() components[0] = 1.0 components[1] = 0.6 components[2] = 0.7 color.setComponents(components) Application.activeWindow().activeView().setForeGroundColor(color)

Returns
The current foreground color

Definition at line 170 of file View.cpp.

171{
172 if (!d->view) return 0;
173 return new ManagedColor(d->view->resourceProvider()->fgColor());
174}

References d, and View::Private::view.

◆ foregroundColorChanged

void View::foregroundColorChanged ( )
signal

Emitted when this view's foreground color changes.

◆ globalAlphaLock

bool View::globalAlphaLock ( ) const
slot

return current global alpha lock mode (active/inactive)

Returns
True if is active, otherwise False

Definition at line 357 of file View.cpp.

358{
359 if (!d->view) {
360 return false;
361 }
362 return d->view->resourceProvider()->globalAlphaLock();
363}

References d, and View::Private::view.

◆ HDRExposure

float View::HDRExposure ( ) const
slot
Returns
the current HDR Exposure value

Definition at line 241 of file View.cpp.

242{
243 if (!d->view) return 0.0;
244 KisExposureGammaCorrectionInterface *iface = d->view->canvasBase()->exposureGammaCorrectionInterface();
245 return iface->currentExposure();
246}
virtual qreal currentExposure() const =0

References KisExposureGammaCorrectionInterface::currentExposure(), d, and View::Private::view.

◆ HDRGamma

float View::HDRGamma ( ) const
slot
Returns
the current HDR Gamma value

Definition at line 255 of file View.cpp.

256{
257 if (!d->view) return 0.0;
258 KisExposureGammaCorrectionInterface *iface = d->view->canvasBase()->exposureGammaCorrectionInterface();
259 return iface->currentGamma();
260}
virtual qreal currentGamma() const =0

References KisExposureGammaCorrectionInterface::currentGamma(), d, and View::Private::view.

◆ operator!=()

bool View::operator!= ( const View & other) const

Definition at line 96 of file View.cpp.

97{
98 return !(operator==(other));
99}
bool operator==(const View &other) const
Definition View.cpp:91

References operator==().

◆ operator==()

bool View::operator== ( const View & other) const

Definition at line 91 of file View.cpp.

92{
93 return (d->view == other.d->view);
94}

References d, and View::Private::view.

◆ paintingFlow

qreal View::paintingFlow ( ) const
slot

return the current flow for brush

Returns
the brush flow value

Definition at line 317 of file View.cpp.

318{
319 if (!d->view) return 0.0;
320 return d->view->resourceProvider()->flow();
321}

References d, and View::Private::view.

◆ paintingOpacity

qreal View::paintingOpacity ( ) const
slot

return the current opacity for brush

Returns
the brush opacity value (0.00=fully transparent - 1.00=fully opaque)

Definition at line 269 of file View.cpp.

270{
271 if (!d->view) return 0.0;
272 return d->view->resourceProvider()->opacity();
273}

References d, and View::Private::view.

◆ patternSize

qreal View::patternSize ( ) const
slot

return the current pattern size for brush

Returns
the brush pattern size value

Definition at line 329 of file View.cpp.

330{
331 if (!d->view) return 0.0;
332 return d->view->resourceProvider()->patternSize();
333}

References d, and View::Private::view.

◆ selectedNodes

QList< Node * > View::selectedNodes ( ) const
slot
   @brief selectedNodes returns a list of Nodes that are selected in this view.
from krita import *
w = Krita.instance().activeWindow()
v = w.activeView()
selected_nodes = v.selectedNodes()
print(selected_nodes)
Returns
a list of Node objects which may be empty.

Definition at line 390 of file View.cpp.

391{
392 if (!d->view) return QList<Node *>();
393 if (!d->view->viewManager()) return QList<Node *>();
394 if (!d->view->viewManager()->nodeManager()) return QList<Node *>();
395
396 KisNodeList selectedNodes = d->view->viewManager()->nodeManager()->selectedNodes();
398}
QList< Node * > selectedNodes() const
Definition View.cpp:390
QList< Node * > createNodeList(KisNodeList kisnodes, KisImageWSP image)

References LibKisUtils::createNodeList(), d, selectedNodes(), and View::Private::view.

◆ setBackGroundColor

void View::setBackGroundColor ( ManagedColor * color)
slot

Definition at line 188 of file View.cpp.

189{
190 if (!d->view) return;
191 d->view->resourceProvider()->setBGColor(color->color());
192}
KoColor color() const

References ManagedColor::color(), d, and View::Private::view.

◆ setBrushFade

void View::setBrushFade ( qreal brushFade)
slot

set the current fade for brush

Parameters
brushFadethe brush fade (0.00 - 1.00)

Definition at line 299 of file View.cpp.

300{
301 if (!d->view) return;
302 d->view->resourceProvider()->setFade(brushFade);
303}
qreal brushFade() const
return the current fade for brush
Definition View.cpp:293

References brushFade(), d, and View::Private::view.

◆ setBrushRotation

void View::setBrushRotation ( qreal brushRotation)
slot

set the current rotation for brush tip

Parameters
brushRotationthe brush tip rotation (in degrees)

Definition at line 311 of file View.cpp.

312{
313 if (!d->view) return;
314 d->view->resourceProvider()->setBrushRotation(brushRotation);
315}
qreal brushRotation() const
return the current rotation for brush tip
Definition View.cpp:305

References brushRotation(), d, and View::Private::view.

◆ setBrushSize

void View::setBrushSize ( qreal brushSize)
slot

set the current size for brush

Parameters
brushSizethe brush size (in pixels)

Definition at line 287 of file View.cpp.

288{
289 if (!d->view) return;
290 d->view->resourceProvider()->setSize(brushSize);
291}
qreal brushSize() const
return the current size for brush
Definition View.cpp:281

References brushSize(), d, and View::Private::view.

◆ setCurrentBlendingMode

void View::setCurrentBlendingMode ( const QString & blendingMode)
slot

set the current blending mode for brush

Parameters
blendingModethe current belding mode identifier

Definition at line 235 of file View.cpp.

236{
237 if (!d->view) return;
238 d->view->resourceProvider()->setCurrentCompositeOp(blendingMode);
239}

References d, and View::Private::view.

◆ setCurrentBrushPreset

void View::setCurrentBrushPreset ( Resource * resource)
slot

set the current selected preset

Parameters
resourcethe current preset to set (Resource type = 'preset')

Definition at line 202 of file View.cpp.

203{
204 activateResource(resource);
205}
void activateResource(Resource *resource)
activateResource activates the given resource.
Definition View.cpp:150

References activateResource().

◆ setCurrentGradient

void View::setCurrentGradient ( Resource * resource)
slot

set the current selected gradient

Parameters
resourcethe current gradient to set (Resource type = 'gradient')

Definition at line 224 of file View.cpp.

225{
226 activateResource(resource);
227}

References activateResource().

◆ setCurrentPattern

void View::setCurrentPattern ( Resource * resource)
slot

set the current selected pattern

Parameters
resourcethe current pattern to set (Resource type = 'pattern')

Definition at line 213 of file View.cpp.

214{
215 activateResource(resource);
216}

References activateResource().

◆ setDisablePressure

void View::setDisablePressure ( bool value)
slot

set current disabled pressure status

Parameters
valueSet to True to disable pressure, False to enabled pressure

Definition at line 381 of file View.cpp.

382{
383 if (!d->view) {
384 return;
385 }
386 d->view->resourceProvider()->setDisablePressure(value);
387}

References d, value(), and View::Private::view.

◆ setDocument

void View::setDocument ( Document * document)
slot

Reset the view to show document.

Definition at line 117 of file View.cpp.

118{
119 if (!d->view || !document || !document->document()) return;
120 d->view = d->view->replaceBy(document->document());
121 d->reconnect(this);
122}

References d, View::Private::reconnect(), and View::Private::view.

◆ setEraserMode

void View::setEraserMode ( bool value)
slot

set current eraser active/inactive

Parameters
valueSet to True to activate eraser mode, False to deactivate

Definition at line 349 of file View.cpp.

350{
351 if (!d->view) {
352 return;
353 }
354 d->view->resourceProvider()->setEraserMode(value);
355}

References d, value(), and View::Private::view.

◆ setForeGroundColor

void View::setForeGroundColor ( ManagedColor * color)
slot

Definition at line 176 of file View.cpp.

177{
178 if (!d->view) return;
179 d->view->resourceProvider()->setFGColor(color->color());
180}

References ManagedColor::color(), d, and View::Private::view.

◆ setGlobalAlphaLock

void View::setGlobalAlphaLock ( bool value)
slot

set current global alpha lock mode active/inactive

Parameters
valueSet to True to lock global alpha mode, False to unlock

Definition at line 365 of file View.cpp.

366{
367 if (!d->view) {
368 return;
369 }
370 d->view->resourceProvider()->setGlobalAlphaLock(value);
371}

References d, value(), and View::Private::view.

◆ setHDRExposure

void View::setHDRExposure ( float exposure)
slot

set the current HDR Exposure value

Parameters
exposurethe HDR Exposure to set

Definition at line 248 of file View.cpp.

249{
250 if (!d->view) return;
251 KisExposureGammaCorrectionInterface *iface = d->view->canvasBase()->exposureGammaCorrectionInterface();
252 iface->setCurrentExposure(exposure);
253}
virtual void setCurrentExposure(qreal value)=0

References d, KisExposureGammaCorrectionInterface::setCurrentExposure(), and View::Private::view.

◆ setHDRGamma

void View::setHDRGamma ( float gamma)
slot

set the current HDR Gamma value

Parameters
exposurethe HDR Gamma to set

Definition at line 262 of file View.cpp.

263{
264 if (!d->view) return;
265 KisExposureGammaCorrectionInterface *iface = d->view->canvasBase()->exposureGammaCorrectionInterface();
266 return iface->setCurrentGamma(gamma);
267}
virtual void setCurrentGamma(qreal value)=0

References d, KisExposureGammaCorrectionInterface::setCurrentGamma(), and View::Private::view.

◆ setPaintingFlow

void View::setPaintingFlow ( qreal flow)
slot

set the current flow value for brush

Parameters
flowthe brush flow

Definition at line 323 of file View.cpp.

324{
325 if (!d->view) return;
326 d->view->resourceProvider()->setFlow(flow);
327}

References d, and View::Private::view.

◆ setPaintingOpacity

void View::setPaintingOpacity ( qreal opacity)
slot

set the current opacity for brush

Parameters
opacitythe opacity value (0.00=fully transparent - 1.00=fully opaque)

Definition at line 275 of file View.cpp.

276{
277 if (!d->view) return;
278 d->view->resourceProvider()->setOpacity(opacity);
279}

References d, and View::Private::view.

◆ setPatternSize

void View::setPatternSize ( qreal size)
slot

set the current pattern size value for brush

Parameters
flowthe brush pattern size

Definition at line 335 of file View.cpp.

336{
337 if (!d->view) return;
338 d->view->resourceProvider()->setPatternSize(size);
339}

References d, and View::Private::view.

◆ setVisible

void View::setVisible ( )
slot

Make the current view visible.

Definition at line 130 of file View.cpp.

131{
132 if (!d->view) return;
133 KisMainWindow *mainwin = d->view->mainWindow();
134 mainwin->setActiveView(d->view);
135 mainwin->subWindowActivated();
136}
Main window for Krita.
void setActiveView(KisView *view)
Set the active view, this will update the undo/redo actions.

References d, KisMainWindow::setActiveView(), KisMainWindow::subWindowActivated(), and View::Private::view.

◆ showFloatingMessage

void View::showFloatingMessage ( const QString & message,
const QIcon & icon,
int timeout,
int priority )
slot

showFloatingMessage displays a floating message box on the top-left corner of the canvas

Parameters
messageMessage to be displayed inside the floating message box
iconIcon to be displayed inside the message box next to the message string
timeoutMilliseconds until the message box disappears
priority0 = High, 1 = Medium, 2 = Low. Higher priority messages will be displayed in place of lower priority messages

Definition at line 400 of file View.cpp.

401{
402 if (!d->view) return;
403
405 p = static_cast<KisFloatingMessage::Priority>(priority);
406
407 d->view->showFloatingMessage(message, icon, timeout, p);
408}
const Params2D p

References d, p, and View::Private::view.

◆ view()

KisView * View::view ( )
private

Definition at line 145 of file View.cpp.

146{
147 return d->view;
148}

References d, and View::Private::view.

◆ visible

bool View::visible ( ) const
slot
Returns
True if the current view is visible, False if not.

Definition at line 124 of file View.cpp.

125{
126 if (!d->view) return false;
127 return d->view->isVisible();
128}

References d, and View::Private::view.

◆ window

Window * View::window ( ) const
slot
Returns
the window this view is shown in.

Definition at line 101 of file View.cpp.

102{
103 if (!d->view) return 0;
104 KisMainWindow *mainwin = d->view->mainWindow();
105 Window *win = new Window(mainwin);
106 return win;
107}
friend class Window
Definition View.h:383

References d, View::Private::view, and Window.

Friends And Related Symbol Documentation

◆ Scratchpad

friend class Scratchpad
friend

Definition at line 384 of file View.h.

◆ Window

friend class Window
friend

Definition at line 383 of file View.h.

Member Data Documentation

◆ d

Private* const View::d
private

Definition at line 390 of file View.h.


The documentation for this class was generated from the following files: