stlab.adobe.com Adobe Systems Incorporated

extents_t::slice_t Class Reference
[Extents]

A class containing element geometry for a single orientation. More...

#include <adobe/extents.hpp>

List of all members.

Public Member Functions

 slice_t ()

Public Attributes

pair_long_t frame_m
guide_set_t guide_set_m
pair_long_t inset_m
int length_m
pair_long_t outset_m

Friends

bool operator== (const slice_t &x, const slice_t &y)

Detailed Description

Model Of:
Regular Type
Rationale
adobe::extents_t::slice_t is intended to make iterating over a extents easier. If the notion of orientation is abstracted out when manipulating geometries, it is possible to loop once over a series of extents in one direction, then again in the other. More code can be shared at that point, no matter which way you slice it.

Definition at line 80 of file extents.hpp.


Constructor & Destructor Documentation

slice_t (  )

Default constructor.

Definition at line 82 of file extents.hpp.


Friends And Related Function Documentation

bool operator== ( const slice_t x,
const slice_t y 
) [friend]

Member Data Documentation

frame is a pair of values- one for either end of the slice. A frame represents a border around the widget. An example of such would be the grow-frame around a typical window in the Windows operating system. A frame is surrounded by the outset of the widget on the outside and the inset of the widget on the inside.

Definition at line 86 of file extents.hpp.

guides are a vector of values relaying internal "points of interest" from the widget to the Eve engine so that these points in other widgets may "snap" into co-alignment. An example of something using guides would be colon-alignment (horizontal case) or baseline-alignment (vertical case). Note that the guides in a slice affect the position of the widget along the other orientation: to specify a horizontal guide point is to allow the widget to be shifted vertically to align with other horizontal guide points.

Definition at line 88 of file extents.hpp.

inset is a pair of values- one for either end of the slice. An inset represents an inner boundary of space taken up graphically by the widget, but is not considered when the functionality of the widget is concerned. An inset is bounded on the outside by the inside of the widget frame. An (seemingly nonsensical) example of something defined by the inset would be a drop shadow internal to the bounds of the window.
Note:
inset is not implemented yet.

Definition at line 87 of file extents.hpp.

length is the "active content" of the widget, and is also the space in which child widgets are allowed. In a container this the minimum allowable size of the container- Eve will then grow the container to contain its children if need be. Therefore, the typical value for this variable for a container is zero.

Definition at line 82 of file extents.hpp.

outset is a pair of values- one for either end of the slice. An outset represents an outer boundary of space taken up graphically by the widget, but is not considered when the functionality of the widget is concerned. The outset is bounded on the inside by the outside of the widget frame. An example of something defined by an outset would be a drop shadow. Outsets are allowed to bleed into the whitespace of the owning view (insets and spacings, but not margins), and if any outsets are left over they propagate to the parent view.

Definition at line 85 of file extents.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google