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

#include <KoToolSelection.h>

+ Inheritance diagram for KoToolSelection:

Public Member Functions

virtual bool hasSelection ()
 return true if the tool currently has something selected that can be copied or deleted.
 
 KoToolSelection (QObject *parent=0)
 
 ~KoToolSelection () override
 

Detailed Description

Each tool can have a selection which is private to that tool and the specified shape that it comes with. This object is provided for applications to operate on that selection. Copy paste come to mind, but also marking the selected text bold.

Definition at line 18 of file KoToolSelection.h.

Constructor & Destructor Documentation

◆ KoToolSelection()

KoToolSelection::KoToolSelection ( QObject * parent = 0)
explicit

Constructor.

Parameters
parenta parent for memory management purposes.

Definition at line 9 of file KoToolSelection.cpp.

10 : QObject(parent)
11{
12}

◆ ~KoToolSelection()

KoToolSelection::~KoToolSelection ( )
override

Definition at line 14 of file KoToolSelection.cpp.

15{
16}

Member Function Documentation

◆ hasSelection()

virtual bool KoToolSelection::hasSelection ( )
inlinevirtual

return true if the tool currently has something selected that can be copied or deleted.

Reimplemented in KoPathToolSelection, SelectionHandler, and SvgTextCursor.

Definition at line 30 of file KoToolSelection.h.

30 {
31 return false;
32 }

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