OMNeT++ Simulation Library  6.0.3
cFigure::Rectangle Struct Reference

#include <ccanvas.h>

Description

Represents a rectangle as an (x,y,width,height) tuple.

Public Member Functions

Methods.
 Rectangle ()
 
 Rectangle (double x, double y, double width, double height)
 
Point getCenter () const
 
Point getSize () const
 
Rectangletranslate (double dx, double dy)
 
bool operator== (const Rectangle &other) const
 
std::string str () const
 

Public Attributes

Rectangle geometry as top-left corner and size.
double x = 0
 
double y = 0
 
double width = 0
 
double height = 0
 

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