![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
question regarding GUI factory.
hey guys!
i have a question regarding cross-platform GUIs. id like to create a custom windowing API, for linux and windows using design patterns... so i would have an abstract GUI factory, from which i derive linux and windows versions for my GUI factory, but the question is, is it a good idea to use wxWidgets for both windows and linux concrete factory objects? or would i be better off using the windows API and some linux GUI toolkit? sorry if this sounds silly, i dont have much knowledge of this! thanks ![]() |
|
|
|
|
|
#2 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,032
Rep Power: 5
![]() |
What's the point of adding another layer? If you already have a GUI API such as wxWidgets, and that API is already cross-platform, what's the benefit?
I agree there could be a benefit if you were writing a new API that wrapped native API functions- as I expect such toolkits do- but that benefit would mainly be that of learning. The only way I see it offering a benefit to others would be for you to incorporate features lacking in other cross-platform toolkits. Remember, each layer introduces dependencies, making the code more liable to break if changes to one layer are made. It can also become tedious to maintain, and less efficient (though this latter point is typically not an issue with user-driven interfaces).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2
![]() |
yeah, i guess!
|
|
|
|
|
|
#4 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Quote:
If a changes in a low level layer result in a need to change code in an upper level layer, then that's either a sign of excessive dependencies of the upper layer on implementation detail of the lower layer OR a sign that the lower layer wasn't complete. Higher levels of abstraction tend to involve more performance penalties, but that's usually because operations in the higher layers do things in terms of multiple lower level operations -- if that's not the case, one should ask why there are multiple layers in the first place. Well designed layered designs tend to avoid unnecessary performance penalties.
__________________
Dear God So far today I've done all right. I haven't been grumpy yet. But in a few minutes, God, I'm going to get out of bed, and from then on I'm going to need a lot more help. AMEN |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Attitudes | Oddball | Coder's Corner Lounge | 29 | Mar 18th, 2006 9:34 PM |
| C++ template and namespace question | Soulstorm | C++ | 3 | Jan 22nd, 2006 2:46 PM |
| How to post a question | nnxion | C++ | 10 | Jun 3rd, 2005 11:53 AM |
| How to post a question | nnxion | C++ | 0 | Jun 3rd, 2005 8:55 AM |
| How to post a question | nnxion | C | 0 | Jun 3rd, 2005 8:55 AM |