![]() |
Lomse library. API documentation
0.30.0
|
AInstrGroup is the API object for interacting with the internal model Bla,bla bla...
Public Member Functions | |
| ImoInstrGroup * | internal_object () const |
Access to group properties | |
| EJoinBarlines | barlines_mode () const |
| EGroupSymbol | symbol () const |
| const std::string & | name_string () const |
| const std::string & | abbreviation_string () const |
Group properties modification | |
| void | set_symbol (EGroupSymbol symbol) |
| void | set_barlines_mode (EJoinBarlines value) |
| void | set_name_string (const std::string &name) |
| void | set_abbreviation_string (const std::string &abbrev) |
Instruments in the group | |
| int | num_instruments () const |
| AInstrument | instrument_at (int pos) const |
| AInstrument | first_instrument () const |
| AInstrument | last_instrument () const |
| int | index_to_first_instrument () const |
| int | index_to_last_instrument () const |
| bool | set_range (int iFirstInstr, int iLastInstr) |
Public Member Functions inherited from AObject | |
| AObject () | |
| bool | is_valid () const |
| ImoObj * | internal_object () const |
| ImoId | object_id () const |
| const std::string & | object_name () const |
| ADocument | owner_document () const |
| ADynamic | downcast_to_dynamic () const |
| AInstrument | downcast_to_instrument () const |
| AInstrGroup | downcast_to_instr_group () const |
| ALink | downcast_to_link () const |
| AList | downcast_to_list () const |
| AParagraph | downcast_to_paragraph () const |
| AScore | downcast_to_score () const |
| ATextItem | downcast_to_text_item () const |
| bool | is_anonymous_block () const |
| bool | is_button () const |
| bool | is_content () const |
| bool | is_control () const |
| bool | is_dynamic () const |
| bool | is_heading () const |
| bool | is_image () const |
| bool | is_inline_wrapper () const |
| bool | is_instrument () const |
| bool | is_instr_group () const |
| bool | is_link () const |
| bool | is_list () const |
| bool | is_list_item () const |
| bool | is_midi_info () const |
| bool | is_multicolumn () const |
| bool | is_music_data () const |
| bool | is_paragraph () const |
| bool | is_score () const |
| bool | is_sound_info () const |
| bool | is_table () const |
| bool | is_table_cell () const |
| bool | is_table_body () const |
| bool | is_table_head () const |
| bool | is_table_row () const |
| bool | is_text_item () const |
| const std::string & abbreviation_string | ( | ) | const |
Returns the short, abbreviated name of the group. This is the string for the group that appears on every system other than the first system.
| EJoinBarlines barlines_mode | ( | ) | const |
Returns a value from enum EJoinBarlines indicating how the barlines for the instruments in the group will be displayed.
| AInstrument first_instrument | ( | ) | const |
Returns the first instrument included in the group.
| int index_to_first_instrument | ( | ) | const |
Returns the index, referred to the score, of the first instrument included in the group. The returned index is the position occupied by this instrument in the score (0 based: 0 .. num.instrs - 1)
| int index_to_last_instrument | ( | ) | const |
Returns the index, referred to the score, of the last instrument included in the group. The returned index is the position occupied by this instrument in the score (0 based: 0 .. num.instrs - 1)
| AInstrument instrument_at | ( | int | pos | ) | const |
Returns the instrument at position pos in the group. First instrument in the group is position 0.
| ImoInstrGroup * internal_object | ( | ) | const |
Transitional, to facilitate migration to the new public API. Notice that this method will be removed in future so, please, if you need to use this method open an issue at https://github.com/lenmus/lomse/issues explaining the need, so that the public API could be fixed and your app. would not be affected in future when this method is removed.
| AInstrument last_instrument | ( | ) | const |
Returns the last instrument included in the group.
| const std::string & name_string | ( | ) | const |
Returns the name of the group, that is the string for the group that is placed at the start of the first system in the score.
| int num_instruments | ( | ) | const |
Returns the number of instruments included in the group.
| void set_abbreviation_string | ( | const std::string & | abbrev | ) |
Sets the short, abbreviated name for the group that appears on every system other than the first one.
| void set_barlines_mode | ( | EJoinBarlines | value | ) |
Defines how the barlines for the instruments in the group will be displayed. Parameter must be a value from enum EJoinBarlines.
| void set_name_string | ( | const std::string & | name | ) |
Sets the name of the group, that is the string for the group that is placed at the start of the first system in the score.
| bool set_range | ( | int | iFirstInstr, |
| int | iLastInstr | ||
| ) |
Defines the instruments that will be included in the group. Returns false if any error.
| iFirstInstr | Position in the score of the first instrument to be included in the group: 0 .. num.instrs - 1 |
| iLastInstr | Position in the score of the last instrument to be included in the group: 0 .. num.instrs - 1 |
Notice that iFirstInstr must be lower than iLastInstr. Otherwise this method will do nothing.
| void set_symbol | ( | EGroupSymbol | symbol | ) |
Sets the symbol that will be displayed for marking the instruments that form the group. Must be a value from enum EGroupSymbol.
| EGroupSymbol symbol | ( | ) | const |
Returns a value from enum EGroupSymbol indicating what symbol will be displayed for marking the instruments that form the group.