Click here to Skip to main content
15,887,477 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Sounds and Looks Impressive Wish i Understood It Pin
honey the codewitch25-Oct-23 3:00
mvahoney the codewitch25-Oct-23 3:00 
GeneralRe: Sounds and Looks Impressive Wish i Understood It Pin
Steve Raw24-Oct-23 16:49
professionalSteve Raw24-Oct-23 16:49 
GeneralRe: Sounds and Looks Impressive Wish i Understood It Pin
Gerry Schmitz24-Oct-23 20:46
mveGerry Schmitz24-Oct-23 20:46 
GeneralRe: Sounds and Looks Impressive Wish i Understood It Pin
jschell25-Oct-23 5:21
jschell25-Oct-23 5:21 
GeneralMS Teams - what an abortion... Pin
charlieg24-Oct-23 10:06
charlieg24-Oct-23 10:06 
GeneralRe: MS Teams - what an abortion... Pin
jschell25-Oct-23 5:25
jschell25-Oct-23 5:25 
GeneralRe: MS Teams - what an abortion... Pin
charlieg25-Oct-23 11:04
charlieg25-Oct-23 11:04 
GeneralIt works - with parts left over Pin
honey the codewitch24-Oct-23 8:46
mvahoney the codewitch24-Oct-23 8:46 
Unsure | :~
The code below successfully draws a rounded pushbutton (without text since my SVG engine doesn't support text directly and i haven't added the text drawing code yet)

I just fired it up this morning and wrote it and it worked. Last time it didn't. I have no idea why. I've changed some things but nothing that should have destroyed it to where it silently failed.

I'm not sure whether I'm happy about this or not.

dumb button (without text) in svg - YouTube[^]

C++
if(m_doc_dirty) {
    gfx_result res;
    svg_doc_builder builder(ssizef(destination.dimensions().width,destination.dimensions().width));
    svg_shape_info si;
    si.stroke.color = color<rgba_pixel<32>>::white;
    si.stroke.type = svg_paint_type::color;
    si.fill.type = svg_paint_type::color;
    si.fill.color = m_pressed ? color<rgba_pixel<32>>::red : color<rgba_pixel<32>>::purple;
    srect16 b = this->bounds().dimensions().bounds(); // zero out top left
    res = builder.add_rounded_rectangle(rectf(b.x1,b.y1,b.x2,b.y2),{10,10}, si);
    if (res != gfx_result::success) {
        Serial.printf("Error: %d\r\n", (int)res);
        return;
    }
    builder.to_doc(&m_doc);
    m_doc_dirty = false;
}

Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: It works - with parts left over Pin
charlieg24-Oct-23 10:02
charlieg24-Oct-23 10:02 
GeneralRe: It works - with parts left over Pin
englebart24-Oct-23 12:34
professionalenglebart24-Oct-23 12:34 
NewsMessage Closed Pin
24-Oct-23 15:23
professionalSteve Raw24-Oct-23 15:23 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
pkfox23-Oct-23 22:32
professionalpkfox23-Oct-23 22:32 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw23-Oct-23 22:35
professionalSteve Raw23-Oct-23 22:35 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane PinPopular
OriginalGriff23-Oct-23 22:36
mveOriginalGriff23-Oct-23 22:36 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw23-Oct-23 23:54
professionalSteve Raw23-Oct-23 23:54 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
honey the codewitch24-Oct-23 1:14
mvahoney the codewitch24-Oct-23 1:14 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
DerekT-P24-Oct-23 1:37
professionalDerekT-P24-Oct-23 1:37 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw24-Oct-23 1:53
professionalSteve Raw24-Oct-23 1:53 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
OriginalGriff23-Oct-23 22:40
mveOriginalGriff23-Oct-23 22:40 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw23-Oct-23 23:19
professionalSteve Raw23-Oct-23 23:19 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
trønderen23-Oct-23 23:11
trønderen23-Oct-23 23:11 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw24-Oct-23 1:18
professionalSteve Raw24-Oct-23 1:18 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Nelek24-Oct-23 1:37
protectorNelek24-Oct-23 1:37 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
jschell24-Oct-23 7:42
jschell24-Oct-23 7:42 
GeneralRe: Alaska Airlines Pilot Tries to Crash Plane Pin
Steve Raw24-Oct-23 1:18
professionalSteve Raw24-Oct-23 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.