Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I was wondering if there were any resources that explain concepts/theory behind GUI development. I don't mean a resource that explains how to use a GUI library, but rather how to create your own widgets. For example a resource that explains different methods on how to implement scrollable listboxes.

I ask because I have an idea for a game tool where I would like to create my own widgets and let users drag and drop them onto some kind of form.

How do GUI libraries usually draw widgets?

I'm not sure if reskinning widgets from a GUI library fits my needs, since widget behavior needs to be dynamic based on user interaction.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

This depends so strongly on the architecture of the widget library you're inter operating with that you're unlikely to find a one-size-fits-all high level guide. For example, some libraries separate drawing views and responding to events, others put them in the same class. In some your widget prepares a bitmap of its view that it sends to the window manager, in others your widget emits a stream of vector commands or a graphics shader.

So the answer to your question about creating a game tool is where will that game tool run? You should find out how that gui's conventions work and build something that impedance-matches those conventions.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.