marktools.Mark

Inheritance diagram of abjad.tools.marktools.Mark.Mark.Mark

class abjad.tools.marktools.Mark.Mark.Mark(*args)[source]

New in version 2.0.

Abstract class from which concrete marks inherit:

abjad> note = Note("c'4")
abjad> marktools.Mark()(note)
Mark()(c'4)

Marks override ___call__ to attach to a note, rest or chord.

Marks implement __slots__.

Read-only Properties

Mark.start_component[source]

Read-only reference to mark start component:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")

Return component or none.

Methods

Mark.attach(start_component)[source]

Attach mark to start_component:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()
abjad> mark.attach(note)
Mark()(c'4)
abjad> mark.start_component
Note("c'4")

Return mark.

Mark.detach()[source]

Detach mark:

abjad> note = Note("c'4")
abjad> mark = marktools.Mark()(note)
abjad> mark.start_component
Note("c'4")
abjad> mark.detach()
Mark()
abjad> mark.start_component is None
True

Return mark.

Special Methods

Mark.__call__(*args)[source]
Mark.__delattr__(*args)[source]
Mark.__eq__(arg)[source]
Mark.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

Mark.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

Mark.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

Mark.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

Mark.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

Mark.__ne__(arg)[source]
Mark.__repr__()[source]
Mark.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

Mark.__str__() <==> str(x)

Note

Inherited from __builtin__.object

Table Of Contents

This Page