Difference between revisions of "Widget"

From Organic Design wiki
(nodal widgets, widget set)
m (badly)
Line 1: Line 1:
 
[[Category:Glossary]][[Category:Interface]]
 
[[Category:Glossary]][[Category:Interface]]
 
= General =
 
= General =
In computer programming,  a '''widget''' (or '''control''') is an interface element that a computer user interacts with, such as a [[w:window (computing)|window]] or a [[w:text box|text box]]. Widgets are sometimes qualified as ''virtual'' to distinguish them from their physical counterparts, e.g. [[w:button (computing)|''virtual'' buttons]] that can be clicked with a mouse [[w:cursor (computers)|cursor]], vs. physical [[w:button (control)|buttons]] that can be pressed with a finger. Widgets are often packaged together in [[w:widget toolkit|widget toolkit]]s. Programmers use widgets to build [[GUI]]s (graphical user interfaces).
+
In computer programming,  a '''widget''' (or '''control''') is an interface element that a computer user interacts with, such as a [[w:window (computing)|window]] or a [[w:text box|text box]]. Widgets are sometimes qualified as ''virtual'' to distinguish them from their physical counterparts, e.g. [[w:button (computing)|''virtual'' buttons]] that can be clicked with a mouse [[w:cursor (computers)|cursor]], vs. physical [[w:button (control)|buttons]] that can be pressed with a finger. Widgets are often packaged together in [[w:widget toolkit|widget toolkit]]s. Programmers use widgets to build [[GUI]]s (graphical user interfaces), in most cases ''very badly''.
 
*see [[w:Widget (computing)|Wikipedia:Widget]]
 
*see [[w:Widget (computing)|Wikipedia:Widget]]
  

Revision as of 10:56, 8 December 2006

General

In computer programming, a widget (or control) is an interface element that a computer user interacts with, such as a window or a text box. Widgets are sometimes qualified as virtual to distinguish them from their physical counterparts, e.g. virtual buttons that can be clicked with a mouse cursor, vs. physical buttons that can be pressed with a finger. Widgets are often packaged together in widget toolkits. Programmers use widgets to build GUIs (graphical user interfaces), in most cases very badly.

Nodal widgets

In the nodal model widgets are nodes containing graphical layers which can undergo change based on input events such as mouse clicks or drags. Widgets can exhibit input focus so they receive keyboard input. If a widget receives an event which it has no use for, it passes the event to its parent node.

Widget set

In the nodal model, all of the most important widgets (the ones required to achieve the basic wiki-like functionality of the nodal interface) are just trees of the same basic layer functionality. Different settings and containment structures of the same basic layout properties give rise to the basic classes of widget such as textarea, editbox, listbox, link, button, checkbox etc