The width and height parts of the geometry specification
are measured in pixels. The xoffset and yoffset parts are
also measured in pixels and are used to specify the distance of the placement
coordinate from the left or right and top and bottom edges of the image,
respectively. Both types of offsets are measured from the indicated edge
of the object to the corresponding edge of the image. The X offset may
be specified in the following ways:
+xoffset | The left edge of the object is to be placed xoffset pixels in from the left edge of the image. |
-xoffset | The right edge of the window is to be placed xoffset pixels in from the right edge of the image. |
The Y offset has similar meanings:
+yoffset | The top edge of the object is to be yoffset pixels below the top edge of the image. |
-yoffset | The bottom edge of the object is to be yoffset pixels above the bottom edge of the image. |
Offsets must be given as pairs; in other words, in order to specify
either xoffset or yoffset both must be present. Objects can
be placed in the four corners of the image using the following specifications:
+0+0 | upper left hand corner. |
-0+0 | upper right hand corner. |
-0-0 | lower right hand corner. |
+0-0 | lower left hand corner. |
|
|
|
Interpret width and height as a percentage of the current size. |
|
Resize to width and height exactly, loosing original aspect ratio. |
|
Resize only if the image is smaller than the geometry specification. |
|
Resize only if the image is greater than the geometry specification. |
An example of a Postscript page size specification is "letter+43+43>".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Geometry | unsigned int width_, unsigned int height_, unsigned int xOff_ = 0, unsigned int yOff_ = 0, bool xNegative_ = false, bool yNegative_ = false | Construct X11 geometry via explicit parameters. | |
const string geometry_ | Construct geometry from C++ string | ||
const char * geometry_ | Construct geometry from C string | ||
width | void | unsigned int width_ | Width |
unsigned int | void | ||
height | void | unsigned int height_ | Height |
unsigned int | void | ||
xOff | void | unsigned int xOff_ | X offset from origin |
int | void | ||
yOff | void | unsigned int yOff_ | Y offset from origin |
int | void | ||
xNegative | void | bool xNegative_ | Sign of X offset negative? (X origin at right) |
bool | void | ||
yNegative | void | bool yNegative_ | Sign of Y offset negative? (Y origin at bottom) |
bool | void | ||
percent | void | bool percent_ | Width and height are expressed as percentages |
bool | void | ||
aspect | void | bool aspect_ | Resize without preserving aspect ratio (!) |
bool | void | ||
greater | void | bool greater_ | Resize if image is greater than size (>) |
bool | void | ||
less | void | bool less_ | Resize if image is less than size (<) |
bool | void | ||
isValid | void | bool isValid_ | Does object contain valid geometry? |
bool | void | ||
operator = | const Geometry& | const string geometry_ | Set geometry via C++ string |
operator = | const Geometry& | const char * geometry_ | Set geometry via C string |
operator string | string | Geometry& | Obtain C++ string representation of geometry |
operator<< | ostream& | ostream& stream_, const Geometry& geometry_ | Stream onto ostream |