Click here to Skip to main content
16,004,678 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: (brain dead) How do you call text files with data stored with fixed width/length ? Pin
k505427-Aug-24 10:30
mvek505427-Aug-24 10:30 
GeneralRe: (brain dead) How do you call text files with data stored with fixed width/length ? Pin
Alister Morton27-Aug-24 23:09
Alister Morton27-Aug-24 23:09 
GeneralRe: (brain dead) How do you call text files with data stored with fixed width/length ? Pin
Jeremy Falcon27-Aug-24 1:45
professionalJeremy Falcon27-Aug-24 1:45 
JokeRe: (brain dead) How do you call text files with data stored with fixed width/length ? Pin
Marc Clifton26-Aug-24 14:57
mvaMarc Clifton26-Aug-24 14:57 
JokeRe: (brain dead) How do you call text files with data stored with fixed width/length ? Pin
Jeremy Falcon27-Aug-24 1:51
professionalJeremy Falcon27-Aug-24 1:51 
AnswerPunched cards. Pin
CPallini27-Aug-24 0:07
mveCPallini27-Aug-24 0:07 
GeneralRe: Punched cards. Pin
Maximilien27-Aug-24 2:24
Maximilien27-Aug-24 2:24 
GeneralThis feels great. 5000 lines of code cleaned the heck up Pin
honey the codewitch26-Aug-24 4:10
mvahoney the codewitch26-Aug-24 4:10 
Every single one of these inherited classes exposes one or more static template methods to facilitate drawing such that you can do like draw::line(...), draw::filled_rectangle(...) or draw::text(...)

It's not just one liner classes either. Most of these are at least a page. I had to start the inherited classes with "x" to move them down the autocomplete list in vs code so they don't get in the way.

Yesterday this was all in a single 5000 line header. This morning I finished refactoring and integrating. Woo!

C++
#ifndef HTCW_GFX_DRAW_HPP
#define HTCW_GFX_DRAW_HPP
#include "gfx_draw_common.hpp"
#include "gfx_draw_point.hpp"
#include "gfx_draw_filled_rectangle.hpp"
#include "gfx_draw_line.hpp"
#include "gfx_draw_rectangle.hpp"
#include "gfx_draw_bitmap.hpp"
#include "gfx_draw_icon.hpp"
#include "gfx_draw_text.hpp"
#include "gfx_draw_ellipse.hpp"
#include "gfx_draw_arc.hpp"
#include "gfx_draw_rounded_rectangle.hpp"
#include "gfx_draw_filled_rounded_rectangle.hpp"
#include "gfx_draw_polygon.hpp"
#include "gfx_draw_filled_polygon.hpp"
#include "gfx_draw_sprite.hpp"
#include "gfx_draw_image.hpp"
namespace gfx {
struct draw : public helpers::xdraw_point, 
            public helpers::xdraw_filled_rectangle, 
            public helpers::xdraw_line, 
            public helpers::xdraw_rectangle,
            public helpers::xdraw_bitmap,
            public helpers::xdraw_icon,
            public helpers::xdraw_text,
            public helpers::xdraw_ellipse,
            public helpers::xdraw_arc,
            public helpers::xdraw_rounded_rectangle,
            public helpers::xdraw_filled_rounded_rectangle,
            public helpers::xdraw_polygon,
            public helpers::xdraw_filled_polygon,
            public helpers::xdraw_sprite,
            public helpers::xdraw_image
{};
}
#endif

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

GeneralRe: This feels great. 5000 lines of code cleaned the heck up Pin
GKP199226-Aug-24 4:15
professionalGKP199226-Aug-24 4:15 
GeneralRe: This feels great. 5000 lines of code cleaned the heck up Pin
Member 1299508726-Aug-24 8:45
Member 1299508726-Aug-24 8:45 
GeneralRe: This feels great. 5000 lines of code cleaned the heck up Pin
honey the codewitch26-Aug-24 8:46
mvahoney the codewitch26-Aug-24 8:46 
GeneralRe: This feels great. 5000 lines of code cleaned the heck up Pin
pkfox26-Aug-24 9:32
professionalpkfox26-Aug-24 9:32 
GeneralWordle 1,164 Pin
Shane010325-Aug-24 17:39
Shane010325-Aug-24 17:39 
GeneralRe: Wordle 1,164 Pin
GKP199225-Aug-24 17:55
professionalGKP199225-Aug-24 17:55 
GeneralRe: Wordle 1,164 Pin
OriginalGriff25-Aug-24 18:47
mveOriginalGriff25-Aug-24 18:47 
GeneralRe: Wordle 1,164 - 4 4 me Pin
pkfox25-Aug-24 21:02
professionalpkfox25-Aug-24 21:02 
GeneralRe: Wordle 1,164 Pin
PJ Arends25-Aug-24 21:03
professionalPJ Arends25-Aug-24 21:03 
GeneralRe: Wordle 1,164 Pin
StarNamer@work25-Aug-24 23:06
professionalStarNamer@work25-Aug-24 23:06 
GeneralRe: Wordle 1,164 - 4/6 Pin
ChandraRam25-Aug-24 23:17
ChandraRam25-Aug-24 23:17 
GeneralRe: Wordle 1,164 Pin
Cp-Coder26-Aug-24 1:55
Cp-Coder26-Aug-24 1:55 
GeneralRe: Wordle 1,164 Pin
Richard Andrew x6426-Aug-24 5:45
professionalRichard Andrew x6426-Aug-24 5:45 
GeneralRe: Wordle 1,164 Pin
Jeremy Falcon26-Aug-24 7:09
professionalJeremy Falcon26-Aug-24 7:09 
GeneralRe: Wordle 1,164 (lucky guess) Pin
Jeremy Falcon26-Aug-24 7:08
professionalJeremy Falcon26-Aug-24 7:08 
GeneralIt's harder to subtract code than to add it PinPopular
honey the codewitch25-Aug-24 13:53
mvahoney the codewitch25-Aug-24 13:53 
GeneralRe: It's harder to subtract code than to add it Pin
Amarnath S25-Aug-24 13:58
professionalAmarnath S25-Aug-24 13:58 

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.