GMapRect Class Reference
#include <GMapAreas.h>
Inheritance diagram for GMapRect:

Detailed Description
Implements rectangular map areas.This is the only kind of map areas supporting SHADOW_IN_BORDER#, SHADOW_OUT_BORDER#, SHADOW_EIN_BORDER# and SHADOW_EOUT_BORDER# types of border and area highlighting.
Definition at line 290 of file GMapAreas.h.
GMapAreas.h | |
| Files #"GMapAreas.h"# and #"GMapAreas.cpp"# implement base objects used by the plugin to display and manage hyperlinks and highlighted areas inside a DjVuImage} page. The currently supported areas can be rectangular (GMapRect}), elliptical (GMapOval}) and polygonal (GMapPoly}). Every map area besides the definition of its shape contains information about display style and optional { URL}, which it may refer to. If this { URL} is not empty then the map area will work like a hyperlink. The classes also implement some useful functions to ease geometry manipulations Definition of base map area classes
| |
| operator GRect (void) | |
| virtual char const *const | get_shape_name (void) const |
| virtual int | gma_get_xmin (void) const |
| virtual int | gma_get_ymin (void) const |
| virtual int | gma_get_xmax (void) const |
| virtual int | gma_get_ymax (void) const |
| virtual char const *const | gma_check_object (void) const |
Public Member Functions | |
| virtual | ~GMapRect () |
| int | get_width (void) const |
| int | get_height (void) const |
| GMapRect & | operator= (const GRect &rect) |
| virtual GUTF8String | get_xmltag (const int height) const |
| virtual MapAreaType const | get_shape_type (void) const |
| virtual GP< GMapArea > | get_copy (void) const |
| virtual void | map (GRectMapper &mapper) |
| virtual void | unmap (GRectMapper &mapper) |
Static Public Member Functions | |
| static GP< GMapRect > | create (void) |
| static GP< GMapRect > | create (const GRect &rect) |
Protected Member Functions | |
| GMapRect (void) | |
| GMapRect (const GRect &rect) | |
| virtual void | gma_move (int dx, int dy) |
| virtual void | gma_resize (int new_width, int new_height) |
| virtual void | gma_transform (const GRect &grect) |
| virtual bool | gma_is_point_inside (const int x, const int y) const |
| virtual GUTF8String | gma_print (void) |
Protected Attributes | |
| int | xmin |
| int | ymin |
| int | xmax |
| int | ymax |
Member Function Documentation
| int GMapRect::get_height | ( | void | ) | const [inline] |
| char const *const GMapRect::get_shape_name | ( | void | ) | const [inline, virtual] |
| virtual MapAreaType const GMapRect::get_shape_type | ( | void | ) | const [inline, virtual] |
| int GMapRect::get_width | ( | void | ) | const [inline] |
| void GMapRect::map | ( | GRectMapper & | mapper | ) | [virtual] |
Virtual function maps rectangle from one area to another using mapper.
Implements GMapArea.
Definition at line 414 of file GMapAreas.cpp.
| GMapRect::operator GRect | ( | void | ) | [inline] |
| void GMapRect::unmap | ( | GRectMapper & | mapper | ) | [virtual] |
Virtual function unmaps rectangle from one area to another using mapper.
Implements GMapArea.
Definition at line 430 of file GMapAreas.cpp.
The documentation for this class was generated from the following files:

