alaCarte Maps
Renderer for OpenStreetMap tiles
Zoom Struct Reference

Simple structure to store a zoom range. More...

#include <mapcss_grammar.hpp>

Public Member Functions

 Zoom ()
 Creates the standard zoom. More...
 
 Zoom (int bottom, int top)
 Creates a zoom from given values. More...
 
void expand (const Zoom &other)
 
void focus (const Zoom &other)
 
bool operator== (const Zoom &z) const
 Compares to zoom's. More...
 

Public Attributes

int top
 The top of the zoom range. More...
 
int bottom
 The bottom of the zoom range. More...
 

Detailed Description

Simple structure to store a zoom range.

Definition at line 41 of file mapcss_grammar.hpp.

Constructor & Destructor Documentation

Zoom::Zoom ( )
inline

Creates the standard zoom.

Definition at line 44 of file mapcss_grammar.hpp.

Zoom::Zoom ( int  bottom,
int  top 
)
inline

Creates a zoom from given values.

Definition at line 50 of file mapcss_grammar.hpp.

Member Function Documentation

void Zoom::expand ( const Zoom other)
inline

Definition at line 56 of file mapcss_grammar.hpp.

void Zoom::focus ( const Zoom other)
inline

Definition at line 62 of file mapcss_grammar.hpp.

bool Zoom::operator== ( const Zoom z) const
inline

Compares to zoom's.

Definition at line 70 of file mapcss_grammar.hpp.

Member Data Documentation

int Zoom::bottom

The bottom of the zoom range.

Definition at line 79 of file mapcss_grammar.hpp.

int Zoom::top

The top of the zoom range.

Definition at line 76 of file mapcss_grammar.hpp.


The documentation for this struct was generated from the following file: