I thought of making a logic & business layers for a GUI and let the user implant the view using policies.
Can I open up a new namespace for this?
I think that GUI Abstraction is something that has never been done (except in Java but that doesn't count since we don't implant any of the graphics). Even if it was done, a Generic, Policy Based Abstraction was never made. It sounds really cool to me :)
What do you guys say?
Here a template based C++ GUI library:
Is it policy based? Completely?
I don't see it by browsing the CVS.
Yes, lot of template Aspects:
It's at sf:
hmm nice :) didn't see it in the cvs.
But it is for Windows only !
Would you be interested in developing such a library for Loki ?
Cross-platform GUI support is not a job for Loki.
You could use gtk, qt, wxwidget, fltk, ...
The only thing I could imagine are toolkit agnostic
policy based GUI classes which are effectively
wrappers for other gui-toolkits.
That's exactly what I was talking about.
Implementing GUI design patterns and making full abstraction of classes.
I wasn't thinking about cross platform GUI :)
One can ofcourse make his own development based on the loki library agnostic GUI. But that's not our job.
We provide a threading library but we don't provide specific implementations for each OS, right?
I was expecting some brilliant ideas.
What I want to achive here is a standard for GUI apps and provide useful DPs when programming a GUI based program.
MVC is the most prominant GUI design pattern.
How can we generalize that in your opinion?
I think it's good idea. Imagine a complex strategy game - you need a many complex menus and windows, very offten there are classic items from GUI like checkbox and so. So this library would implement a basic GUI tools and user would render items.
For example, basic class would send events to the right elemets, manage their positions, rendendering in right order and so.
For a very simple example:
// Items are ordered by their focus
for(int i = 0; i < num_items; ++i)
// Key/other events
// GetWidth/Height would be user-defined in abstract function
width = GetWidth();
height = GetHeight();
// Position manages a library
pos_x = GetPosX();
pos_y = GetPosY();
You are in the right direction. :)
Eh, I'm not sure, how to understand it *drop*
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.