OMNeT++ Simulation Library  5.6.1
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
 
double y
 
double width
 
double height
 

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