|
GEOS SDK TechDocs
|
|
Ruler Object Library
|
2 Ruler Setup
Rulers are a "must have" feature for drawing programs or any geode concerned with layout-intensive tasks. By alerting the rulers to pointer events, the application may display marks in the ruler which track the mouse's position so that the user knows the exact mouse coordinates. The ruler library provides many more features to applications prepared to support those features:
-
Grids
The ruler's tick marks are of course drawn inside the ruler. However, the ruler can draw a grid over the main view so that the user may see where major units fall on the document directly.
-
Guides
While a regular grid is helpful, the user may want to set up guidelines to mark off areas important to a document's layout. These guides may appear both as marks on the ruler and lines across the main view itself.
-
Mouse Constraints
The rulers can act as mouse constraint managers. The mouse location can snap to grid lines, guidelines, or lines at any angle through any point.
-
Large Document Support
The rulers work with large (32-bit) documents. They respond correctly to large mouse and scrolling events. However, at this time there is no way using C to intercept the message by which the Ruler handles large pointer events.
-
Controller Support
The ruler library includes a full suite of controller objects, including controllers for managing grids and guides.
|
GEOS SDK TechDocs
|
|
Ruler Object Library
|
2 Ruler Setup