Skip to content

Commit d2fbb47

Browse files
committed
[ext] improved engraving api docs
1 parent 4073f38 commit d2fbb47

File tree

7 files changed

+467
-197
lines changed

7 files changed

+467
-197
lines changed

share/extensions/apitests/macros.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function main()
1717
, "Engraving.Element.MEASURE:", Engraving.Element.MEASURE
1818
)
1919

20+
console.log("measure.hideWhenEmpty:", measure.hideWhenEmpty)
21+
2022
if (measure.type === Element.MEASURE) {
2123
console.log("this is measure")
2224
Interactive.info("Macros", "This is a measure.")

src/engraving/api/v1/apitypes.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,13 +527,23 @@ enum class TextPlace {
527527
};
528528
Q_ENUM_NS(TextPlace);
529529

530+
/** APIDOC
531+
* Direction
532+
* @memberof Engraving
533+
* @enum
534+
*/
530535
enum class Direction {
531536
AUTO = int(mu::engraving::DirectionV::AUTO),
532537
UP = int(mu::engraving::DirectionV::UP),
533538
DOWN = int(mu::engraving::DirectionV::DOWN),
534539
};
535540
Q_ENUM_NS(Direction);
536541

542+
/** APIDOC
543+
* Horizontal direction
544+
* @memberof Engraving
545+
* @enum
546+
*/
537547
enum class DirectionH {
538548
AUTO = int(mu::engraving::DirectionH::AUTO),
539549
LEFT = int(mu::engraving::DirectionH::LEFT),
@@ -547,6 +557,11 @@ enum class Orientation {
547557
};
548558
Q_ENUM_NS(Orientation);
549559

560+
/** APIDOC
561+
* Auto-hide flag
562+
* @memberof Engraving
563+
* @enum
564+
*/
550565
enum class AutoOnOff {
551566
AUTO = int(mu::engraving::AutoOnOff::AUTO),
552567
ON = int(mu::engraving::AutoOnOff::ON),
@@ -699,6 +714,11 @@ enum class PreferSharpFlat {
699714
};
700715
Q_ENUM_NS(PreferSharpFlat);
701716

717+
/** APIDOC
718+
* Type of note head
719+
* @memberof Engraving
720+
* @enum
721+
*/
702722
enum class NoteHeadType {
703723
HEAD_AUTO = int(mu::engraving::NoteHeadType::HEAD_AUTO),
704724
HEAD_WHOLE = int(mu::engraving::NoteHeadType::HEAD_WHOLE),
@@ -724,6 +744,11 @@ enum class NoteHeadScheme {
724744
};
725745
Q_ENUM_NS(NoteHeadScheme);
726746

747+
/** APIDOC
748+
* Group of note head
749+
* @memberof Engraving
750+
* @enum
751+
*/
727752
enum class NoteHeadGroup {
728753
HEAD_NORMAL = int(mu::engraving::NoteHeadGroup::HEAD_NORMAL),
729754
HEAD_CROSS = int(mu::engraving::NoteHeadGroup::HEAD_CROSS),
@@ -1116,6 +1141,11 @@ enum class HookType {
11161141
};
11171142
Q_ENUM_NS(HookType);
11181143

1144+
/** APIDOC
1145+
* Mode of key
1146+
* @memberof Engraving
1147+
* @enum
1148+
*/
11191149
enum class KeyMode {
11201150
UNKNOWN = int(mu::engraving::KeyMode::UNKNOWN),
11211151
NONE = int(mu::engraving::KeyMode::NONE),
@@ -1301,6 +1331,11 @@ enum class ChordLineType {
13011331
};
13021332
Q_ENUM_NS(ChordLineType);
13031333

1334+
/** APIDOC
1335+
* Type of slur
1336+
* @memberof Engraving
1337+
* @enum
1338+
*/
13041339
enum class SlurStyleType {
13051340
Undefined = int(mu::engraving::SlurStyleType::Undefined),
13061341
Solid = int(mu::engraving::SlurStyleType::Solid),

0 commit comments

Comments
 (0)