Reply To: How to use createDashedStroke

Home Forums General Programming How to use createDashedStroke Reply To: How to use createDashedStroke

#27415
atom
Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    Here is the comment from Jules that’s inside the library code:

    //==============================================================================
    void Graphics::drawSingleLineText (const String& text, const int startX, const int baselineY,
                                       Justification justification) const
    {
        if (text.isNotEmpty())
        {
            // Don't pass any vertical placement flags to this method - they'll be ignored.
            jassert (justification.getOnlyVerticalFlags() == 0);
    
            const int flags = justification.getOnlyHorizontalFlags();
    Ctrlr