Next:
Contents
A Short Tutorial on X Windows Programming: Version 1.0
Jim Peterson
March 30, 1999
Contents
Introduction:
Why Graphics?
Background Reading and Study:
Graphical Interfaces:
Basic Code:
The Simulation Header: simulation.h
sim.c
Improving the Basic Code:
Desiging Classes for Application Data:
The Main Simulation File: sim.c
The Full Simulation Code:
The Main Code:
handle_button_release.c:
set_animate.c:
set_active.c:
input.c:
expose.c:
resize.c:
quit_application.c:
scalesliderCB.c:
rotatesliderCB.c:
image.c:
run.c:
The Utility Code:
myxutility.h:
setxcolor.c:
find_named_color.c:
makeslider.c:
A Blow By Blow Description:
Adding Popup Windows:
Adding Popup Code To Our Simulation:
The New Simulation Code: simpop.c
The Popup Callback: set_popupcolor.c
Forcing the Update:
What Does the Popup Look Like?
Drawing the Popup: imagepopupcolor.c
Popup Utilities:
popup.h
popupdrawResizeCB.c
popupdrawExposeCB.c
popupquitCB.c
The Color Choice Methods:
redsliderCB.c
greensliderCB.c
bluesliderCB.c
update_color.c
colorslideCB.c
Solving ODE's as an X Application:
The Overall Simulation:
The Main Window:
The ODE Plot Popup Window:
The Plotting Method:
The ODE Code:
Typical Results:
References:
About this document ...
Jim Peterson
1999-04-13