O'Reilly logo

Software Engineering and Computer Games by Rudy Rucker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

28.2. Cursor tools

Looking at the Pop Framework, you’ll notice that the user can activate different kinds of cursors. When you have a program where users can change the tool action of the cursor, it’s important to change the appearance of the cursor to match the mode. That is, the appearance of the cursor should inform the user about what the effects of mouse actions are likely to be.

We’ll let the tool type depend on the view, so that it’s possible to have two views open with a different tool being used in each one. This means that the data about which cursor to use should live in the CPopView. And the CPopView will be responsible for resetting the cursor whenever the cursor moves over the CPopView’s window.

How does the CPopView keep track ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required