◆ clear()
Clears the selection.
- Returns
true
on success, false
if selection cannot be changed, e.g. due to the ongoing operation on a score (like dragging elements).
- Since
- MuseScore 3.5
◆ deselect()
Deselects the given element.
- Returns
true
on success, false
if selection cannot be changed, e.g. due to the ongoing operation on a score (like dragging elements).
- Since
- MuseScore 3.5
◆ select()
Selects the given element.
At this point only a limited number of element types is supported, like notes, rests and most of text elements.
- Parameters
-
e | element to select |
add | if true , appends an element to already existing selection. If false (default), deselects all other elements and selects this element. |
- Returns
true
on success, false
if selection cannot be changed, e.g. due to the ongoing operation on a score (like dragging elements) or incorrect arguments to this function.
- Since
- MuseScore 3.5
◆ selectRange()
bool selectRange |
( |
int |
startTick, |
|
|
int |
endTick, |
|
|
int |
startStaff, |
|
|
int |
endStaff |
|
) |
| |
Selects a range in a score.
- Parameters
-
startTick | start tick to be included in selection |
endTick | end tick of selection, excluded from selection |
startStaff | start staff index, included in selection |
endStaff | end staff index, excluded from seleciton |
- Returns
true
on success, false
if selection cannot be changed, e.g. due to the ongoing operation on a score (like dragging elements) or incorrect arguments to this function.
- Since
- MuseScore 3.5
◆ elements
Current GUI selections for the score.
- Since
- MuseScore 3.3
◆ endSegment
End segment of selection, excluded.
This property is valid only for range selection.
- Since
- MuseScore 3.5
- See also
- isRange
◆ endStaff
End staff of selection, included.
This property is valid only for range selection.
- Since
- MuseScore 3.5
- See also
- isRange
◆ isRange
Whether this selection covers a range of a score, as opposed to a list of distinct elements.
- Since
- MuseScore 3.5
◆ startSegment
Start segment of selection, included.
This property is valid only for range selection.
- Since
- MuseScore 3.5
- See also
- isRange
◆ startStaff
First staff of selection, included.
This property is valid only for range selection.
- Since
- MuseScore 3.5
- See also
- isRange
The documentation for this class was generated from the following files:
- mscore/plugin/api/selection.h
- mscore/plugin/api/selection.cpp