Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A lightweight C++ GUI library welcomes your feedback.

383 views
Skip to first unread message

Jinhao

unread,
May 18, 2013, 6:05:29 AM5/18/13
to
Hi,
Nana C++ Library provides a GUI programming with Standard C++ style,
and also includes C++11 features. I would like to hear your feedback.

http://sourceforge.net/p/nanapro/blog

This library welcomes your suggestions, contributions and bug fixes.

Regards!
Jinhao


--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Norman J. Goldstein

unread,
May 25, 2013, 7:56:15 PM5/25/13
to
{ Please place your reply after the quoted section you're replying to
-mod }

The simplicity of using the library is very attractive.
I was not able to build, unfortunately:

I am running on fedora 18, x86, 32-bit.

I edited nana/include/config.h to indicate a linux system,
and to use the system png installation:

#define USE_NANA_LINUX_X11
// #define NANA_LIBPNG

The following compilation failed:

g++ -g -c ../../source/paint/image.cpp -o ../../source/paint/image.o
-I../../include -I/usr/include/freetype2 -std=c++0x -Wall

../../include/nana/paint/detail/image_png.hpp:148:75: error: no matching
function for call to ‘nana::paint::graphics::bitblt(int&, int&, const
unsigned int&, const unsigned int&, const nana::paint::graphics&, const
int&, const int&)’

This bitblt wants 7 arguments. All the candidates have 2 or 3
arguments. There is a matching prototype in class drawing ... ??

Norm


On 05/18/2013 03:05 AM, Jinhao wrote:
> Hi,
> Nana C++ Library provides a GUI programming with Standard C++ style,
> and also includes C++11 features. I would like to hear your feedback.
>
> http://sourceforge.net/p/nanapro/blog
>
> This library welcomes your suggestions, contributions and bug fixes.

{ Quoted greetings and signature removed -mod }

Richard

unread,
May 26, 2013, 3:08:09 AM5/26/13
to
[Please do not mail me a copy of your followup]

Jinhao <cnji...@this.is.invalid> spake the secret code
<kn7ajl$qee$1...@speranza.aioe.org> thusly:

>This library welcomes your suggestions, contributions and bug fixes.

How does this library support unit testing?

Are the widgets modeled as pure virtual interfaces that facilitate
mocking?

Or am I once again, like all GUI libraries before, tied to the
concrete widgets and forced to wrap them in interfaces myself?

IMO, any GUI library that does not directly support unit testing is
more of the same and not a step forward.

All the rest is syntactic sugar.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
0 new messages