Table Of Contents
0.1
Conventions
0.2
Getting
EZwgl
0.3
Credits
0.4
License
1
Using The
EZ
Widget Library
1.1
Data Types
1.2
Structure of an
EZwgl
Application
1.2.1
Example 1, Hello World
1.2.2
Compling and Linking
1.2.3
Running an
EZwgl
Application
1.3
The
EZwgl
Header File
1.4
Initialization
1.5
Overriding the Default Attributes
1.5.1
Setting the Default Background
1.5.2
Setting the Default Fonts
1.5.3
Disable Button Highlighting/Offseting
1.5.4
Disable Slider Depression
1.5.5
Disable Image Dithering
1.6
Creating and Configuring Widgets
1.6.1
Options for Configuring the Geometry
1.6.2
Options for Configuring Border and Padding
1.6.3
Options for Setting Foreground/Background Color
1.6.4
Options for Arranging Children Widgets
1.6.5
Options for Setting Client Data
1.6.6
Window Manager Hints
1.6.7
Miscellaneous Attributes
1.6.8
Options for Setting a Label
1.6.9
Setting the Return Value for a Menu Item
1.6.10
About Pixmap Labels
1.6.11
Other Configuration Routines
1.6.12
Example 2, The 15 Puzzle
1.6.13
Example 3, A DirTree
1.7
Registering Callbacks and Event Handlers
1.7.1
Prototypes for Callbacks and Event Handlers
1.7.2
Example 4, Button with a Menu
1.7.3
Example 5, Button with a Menu Again
1.7.4
Example 6, Read the Pixel
1.7.5
Registering Widget Callbacks
1.7.6
Registering Event Handlers
1.8
Displaying a Widget
1.9
Processing Events
1.9.1
Example 7, Catch the Moving Label
1.10
Widget Interaction Functions
1.10.1
Setting and Extracting Client Data
1.10.2
Inquring about the Geometry of a Widget
1.10.3
Disable a Widget
1.10.4
Destroying a Widget
1.10.5
Temporarily Freezing a Widget
1.10.6
Hiding a Widget
1.10.7
Grabing a Widget
1.10.8
Example 8, A Dialogue
1.10.9
Focusing a Widget
1.10.10
Example 9, The Dialogue Again
1.10.11
Destroying Widget Windows
1.11
Writting a Client Message Handler
1.11.1
Example 10, A ClientMessage handler
2
Resources
2.1
The Resources Aware Functions
2.2
Class and Instance Names
2.2.1
Default Widget Class and Instance Names
2.3
Resource Files
2.4
Forms of Resource Specifications
2.5
Widget Resource Names
2.6
Command Line Options
2.6.1
Standard Command Line Options
2.7
Application Resources
2.7.1
An Example
2.7.2
Internally Defined Symbolic Names
2.8
When Are Widget Resources Set
2.9
Resource and Composite Widgets
2.9.1
Scan Resource Database At a Later Time
2.9.2
Use the Builtin instance/Class Names
3
The
EZ
Widgets
3.1
Frames
3.2
Labels
3.3
Normal Buttons
3.3.1
Special Configuration Options
3.4
Check Buttons
3.4.1
Special Configuration Options
3.4.2
Interaction Routines
3.5
Radio Buttons
3.5.1
Special Configuration Options
3.5.2
Interaction Routines
3.6
Menu Buttons
3.6.1
Special Configuration Options
3.6.2
Interaction Routines
3.7
Menus
3.7.1
Special Configuration Options
3.7.2
Supported Menu Items
3.7.3
Creating Menu Items
3.7.4
Pop Up Menus
3.7.5
Interaction Routines
3.7.6
Creating Simple Menus
3.8
Menubar
3.8.1
Manipulate items on a Menubar
3.9
Sliders
3.9.1
Special Configuration Options
3.9.2
Interaction Routines
3.10
Entries
3.10.1
Special Configuration Options
3.10.2
Interaction Routines
3.10.3
Editing Commonds
3.11
Text
3.11.1
Special Configuration Options
3.11.2
Interaction Routines
3.11.3
Editing Commands
3.11.4
Text Properties
3.12
Note Books and Note Book Pages
3.12.1
Adding Notebook Pages
3.13
PaneHandle
3.14
FreeLabels
3.15
ListBoxes
3.15.1
Special Configuration Options
3.15.2
Interaction Routines
3.16
ListTree
3.16.1
Special Configuration Options
3.16.2
Interaction Routines
3.16.3
Creating Trees
3.16.4
Manipulating Trees
3.16.5
An Example
3.16.6
Directory Trees
3.17
Icons
3.18
Optional Entries
3.18.1
Special Configuration Options
3.18.2
Interaction Routines
3.19
FileSelectors
3.19.1
Special Configuration Options
3.19.2
Interaction Routines
3.20
Fancy ListBoxes
3.20.1
Special Configuration Options
3.20.2
Interaction Routines
3.20.3
An Example
3.21
WorkAreas
3.21.1
Special Configuration Options
3.21.2
Geometry Manager
3.21.3
Interaction Routines
3.22
Executors
3.22.1
Interaction Routines
3.23
Scrollbars
3.23.1
Special Configuration Options
3.23.2
Interaction Routines
3.24
Raw XWindow
3.25
LCD
3.25.1
Special Configuration Options
3.25.2
Interaction Routines
3.26
LED
3.26.1
Special Configuration Options
3.26.2
Interaction Routines
3.26.3
An Example
3.27
Status Meters
3.27.1
Special Configuration Options
3.27.2
Interaction Routines
4
Events
4.1
X Events
4.1.1
Global Variables
4.1.2
Symbolic Event Names
4.1.3
A Sample Event Handler
4.1.4
Enter Events
4.2
Timer Events
4.2.1
Example, A Timer
4.3
File Events
4.3.1
An Example
5
Using the Graphics Library
5.1
Getting Started
5.1.1
Example G1, A Polygon
5.2
The 3DCanvas Widget
5.3
Pre-allocated Colors
5.4
Setting the Display Mode
5.4.1
Choosing a Color Mode
5.4.2
Choosing a Back Buffer
5.4.3
Choosing a Shading Model
5.4.4
Clear Color
5.4.5
Example G2, The Sine Curve
5.5
EZ_Enable and EZ_Disable
5.6
Default State Attributes
5.7
Manipulating Matrices
5.7.1
Example G3, Using Matrices
5.8
Specifying Geometric Objects
5.8.1
EZ_Begin and EZ_End
5.8.2
A Brief Description of Geometrical Primitives
5.8.3
EZ_Vertex{23}f{v} and EZ_Normal3f{v}
5.8.4
Pixmaps
5.9
Lighting
5.9.1
Example G4, Lighting
5.9.2
Setting Light Source Properties
5.9.3
Setting Light Model Properties
5.9.4
Setting Material Properties
5.9.5
Convinence Routines
5.10
ColorMaterial
5.11
Logical Operations
5.12
Fog
5.13
Text
5.14
Polyhedra, Sphere and Tube
5.14.1
Tetrahedron
5.14.2
Cube
5.14.3
Octahedron
5.14.4
Dodecahedron
5.14.5
Icosahedron
5.14.6
Sphere
5.14.7
Tube
5.15
Polygon Modes
5.16
Display Lists
5.17
Miscellaneous Commands
HTML Documentation Maintainance:
Arturo Espinosa <arturo@nuclecu.unam.mx>