Comments (7)
But is it really needed to implement a virtual destructor? It is only needed when you are using a pointer to a derived class. And Gui isn't intended to be used as base class, neither should u use new and delete.
from tgui.
The usage of new and delete with tgui::Gui in my circumstance comes from binding TGUI to a scripting language.
As I am not using C++ when I create and delete instances, using C++ scoping rules is out of the question.
from tgui.
I suppose instead of using new/delete I could create a global container of GUI instances...
This is a nuisance though. My previous code worked and only broke as a result of updating TGUI.
The scripting language I use, Squirrel, was already made for plugging in new/delete or malloc/free in this scenario.
Doing anything different would be a hack...
Edit: Extra, unnecessary copying would be involved too in making the global container hack...
from tgui.
Using new/delete is ok then in your situation, and you should be able to safely ignore this warning.
I'll either implement an empty virtual destructor, or mark the class as final. But I'll see about that later.
from tgui.
Removing the virtual keyword from all members that have it is an option too...
from tgui.
I'll look into this later. I'm currently writing something for LD, so I don't want to spend too much time on my gui right now.
And because it is just a warning I think it can be ignored for a few days.
from tgui.
No problem
Thank you for the nearly immediate responses.
from tgui.
Related Issues (20)
- Autocomplete support for EditBox HOT 2
- Can not input CJK words HOT 9
- Black background shown when changing window size HOT 4
- How to customize the window's title bar and frame HOT 2
- How to implement a polygon window HOT 2
- Hover style does not disappear when mouse moves out of the window HOT 6
- Add a 2d chart or rendering 3d data for TGUI? HOT 1
- Chinese support? HOT 5
- Focus Issues HOT 1
- [ANNOUNCE] The TGUI now distributed via MSYS2 on Windows HOT 1
- CMake fails to install pkg-config files HOT 2
- On macOS, Input Method Editors(IME) behavior seems incorrect. HOT 6
- How to use SDL2/3 backend with cmake `FetchContent` HOT 2
- [Question] How to compile my first example of TGUI ? HOT 13
- [Bug] Dead radio button text HOT 3
- [Bug] Tabs state after disabled tab click HOT 2
- FileDialog documentation needs clarification and maybe working examples HOT 4
- Is there a C binding? HOT 12
- Raylib backend? HOT 15
- Cannot delete widgets inside of the gui-builder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgui.