GEOS SDK TechDocs
|
|
6.5 Managing 32-Bit Geometry
|
6.7 Setting Up the Objects
The GenView is built to support large documents, though its default is normal-sized documents. Thus, you can request the view to send large mouse events, which carry with them 32 bits of integer and 16 bits of fraction in each dimension. The visible classes have no default handlers for these messages, so your own classes will have to handle them appropriately.
The large mouse events are the equivalent of their 16-bit counterparts. They just carry different data to represent the coordinates of the pointer. All the mouse events, both large and normal, are described in the Input chapter.
Normal composite objects will not be affected by large mouse events; the composite will continue to send the event on to the proper child as if it were in a 16-bit document. Layer and content objects, however, must process these messages differently.
If no object within the visible tree has the mouse grabbed, the content of the tree must decide which layer object should receive the mouse events. How the content and layer objects negotiate this is up to the particular application; some applications may consider that one layer is "on top of" the others, and other applications may determine which layer is the most appropriate based on the event context. By default, the large mouse events are passed by
VisContentClass
straight on to the first layer child. If you want a more complex scheme, you will have to subclass
VisContentClass
and intercept these messages.
GEOS SDK TechDocs
|
|
6.5 Managing 32-Bit Geometry
|
6.7 Setting Up the Objects