Open ihhub opened 5 years ago
@ihhub, tell please, what is your vision.
There are could be function like
drawText( std::string & text );
Do we need something else? We could have possibilities to specify position, color and so on:
drawText( std::string & text, int x, int y, const PaintColor& color );
Hi @fullset , we have to have position of text and optionally color. Your second suggestion is correct. I'll soon take a look into your pending pull request. I was very busy these days but I'm trying to clear everything very soon.
@ihhub, no problem.
I'm going to take this issue but I have no possibility to make Win32 implementation so I think I'll make a work in progress PR during this week.
It's okay to do not implement win32. I can do it in my free time. I have Windows machine.
We have 3 classes for UI Window:
src/ui/ui.h
- base classsrc/ui/qt/qt_ui.h
- QT API based classsrc/ui/win/win_ui.h
- Win32 API based classCurrently classes support drawings of points and lines, we need to add functions to support drawings of text as well. The font could be fixed.
This issue relates to #104