Lumiera
0.pre.03
»edit your freedom«
|
Functions | |
double | anchorLeft (StyleC style, double scale) |
place left anchor reference line to right side of bold bar. More... | |
double | anchorLower (StyleC style, double scale, int canvasHeight) |
place bottom cap vertical anchor, mirroring top cap More... | |
double | anchorUpper (StyleC style, double scale) |
place top cap vertical anchor, down from canvas upside. More... | |
double | baseWidth (StyleC style) |
Setup the base metric for this bracket drawing based on CSS styling. More... | |
int | calcDesiredWidth (StyleC style) |
int | calcRequiredWidth (StyleC style, int givenHeight) |
void | connect (CairoC cox, Gdk::RGBA colour, double leftX, double upperY, double lowerY, double width, double scale, std::vector< uint > connectors) |
Indicate connection to nested sub-Track scopes. More... | |
double | determineScale (StyleC style, int givenHeight) |
determine the base metric, taking into account the available canvas size. More... | |
void | drawBar (CairoC cox, Gdk::RGBA colour, double leftX, double upperY, double lowerY, double scale) |
draw the double bar to fit between upper and lower cap | |
void | drawCap (CairoC cox, Gdk::RGBA colour, double ox, double oy, double scale, bool upside=true) |
Draw the curved end cap of the bracket, inspired by musical notation. More... | |
double | getAbsoluteFontSize (StyleC style) |
Use contextual CSS style information to find out about the standard font size More... | |
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::getAbsoluteFontSize | ( | StyleC | style | ) |
Use contextual CSS style information to find out about the standard font size
Definition at line 107 of file stave-bracket-widget.cpp.
Referenced by baseWidth().
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::baseWidth | ( | StyleC | style | ) |
Setup the base metric for this bracket drawing based on CSS styling.
Definition at line 130 of file stave-bracket-widget.cpp.
References getAbsoluteFontSize().
Referenced by calcDesiredWidth().
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::determineScale | ( | StyleC | style, |
int | givenHeight | ||
) |
determine the base metric, taking into account the available canvas size.
style | CSS style context where this calculation shall apply |
givenHeight | the allocated vertical space for the drawing |
Definition at line 150 of file stave-bracket-widget.cpp.
Referenced by calcRequiredWidth(), and StaveBracketWidget::on_draw().
int stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::calcRequiredWidth | ( | StyleC | style, |
int | givenHeight | ||
) |
givenHeight | vertical limitation in (device) pixels |
Definition at line 164 of file stave-bracket-widget.cpp.
References determineScale().
Referenced by StaveBracketWidget::get_preferred_width_for_height_vfunc().
int stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::calcDesiredWidth | ( | StyleC | style | ) |
Definition at line 174 of file stave-bracket-widget.cpp.
References baseWidth().
Referenced by StaveBracketWidget::get_preferred_width_for_height_vfunc().
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::anchorLeft | ( | StyleC | style, |
double | scale | ||
) |
place left anchor reference line to right side of bold bar.
Definition at line 186 of file stave-bracket-widget.cpp.
Referenced by StaveBracketWidget::on_draw().
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::anchorUpper | ( | StyleC | style, |
double | scale | ||
) |
place top cap vertical anchor, down from canvas upside.
Definition at line 196 of file stave-bracket-widget.cpp.
Referenced by StaveBracketWidget::on_draw().
double stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::anchorLower | ( | StyleC | style, |
double | scale, | ||
int | canvasHeight | ||
) |
place bottom cap vertical anchor, mirroring top cap
Definition at line 206 of file stave-bracket-widget.cpp.
Referenced by StaveBracketWidget::on_draw().
void stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::drawCap | ( | CairoC | cox, |
Gdk::RGBA | colour, | ||
double | ox, | ||
double | oy, | ||
double | scale, | ||
bool | upside = true |
||
) |
Draw the curved end cap of the bracket, inspired by musical notation.
ox | horizontal offset of the anchor point; pixels in target device space |
oy | vertical anchor point offset, downwards is positive |
scale | stretch the design; default is bracket line width = 1.0 |
upside | whether to draw the upper cup (true ) or the lower |
doc/devel/draw/StaveBracket.svg
for explanation Definition at line 226 of file stave-bracket-widget.cpp.
Referenced by StaveBracketWidget::on_draw().
void stage::timeline::anonymous_namespace{stave-bracket-widget.cpp}::connect | ( | CairoC | cox, |
Gdk::RGBA | colour, | ||
double | leftX, | ||
double | upperY, | ||
double | lowerY, | ||
double | width, | ||
double | scale, | ||
std::vector< uint > | connectors | ||
) |
Indicate connection to nested sub-Track scopes.
Draw a connector dot at each joint, and a arrow pointing towards the nested StaveBracket top.
Definition at line 278 of file stave-bracket-widget.cpp.
Referenced by StaveBracketWidget::on_draw().