Sujet : Re: 'Graphics' of libwy
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c++Date : 18. Dec 2024, 08:38:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjtu57$26m9m$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 17/12/2024 17:53, Paavo Helde wrote:
On 17.12.2024 18:30, David Brown wrote:
>
I think if there is ever going to be a standard gui library for C++, it will be written specially for the purpose. That has some big advantages - if the designers decide they need extra language features for signals and slots, for example, then those can be added to the language rather than using an external tool.
For curiosity I looked at the https://neogfx.org page. Among other things it says: "C++ lambdas have made traditional signals and slots redundant".
It also promises "modern C++20 design" and "no reliance on macro-based code generation".
NeoGFX itself has a too restrictive license (GPL), but at least it suggests that C++ nowadays is expressive enough to actually allow for some kind of self-contained and concise GUI library.
I haven't looked at NeoGFX in any detail - a one-person GPL'ed PC gui library is not something I would find useful for my work, for a good many reasons. (But good luck to the developer anyway.)
Certainly lambdas can significantly simplify a lot of event-style programming.