Chapter 21. Pencil
Line Object
In this chapter
Creating a
Pencil
ObjectPencil
Object ManagementNext Steps
By choosing the Pencil creation icon seen in Figure 21.1, the user enters the interactive creation mode for a freestyle line.
Figure 21.1. Selecting the Pencil creation icon starts the process for a freestyle line.
The creation of the Pencil
object begins with the first ButtonPress
and ends with the next.
During the interim MotionNotify
events separating the ButtonPress
events starting and ending the creation, points are added to a points array defining the object under construction.
However, not every point is put into the array. This approach would ...
Get X Window Programming from Scratch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.