WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::Rect Class Reference

This structure defines rectangle coordinates. More...

#include "../include/Rect.h"

Public Member Functions

int init ()
 Rect ()
 Rect (float x1, float y1, float x2, float y2)
int set (float x1, float y1, float x2, float y2)
int setu (float x1, float y1, float x2, float y2)
float getXMin ()
float getXMax ()
float getYMin ()
float getYMax ()
int print ()

Public Attributes

float xmin
float ymin
float xmax
float ymax

Detailed Description

This structure defines rectangle coordinates.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Rect() [1/2]

Rect::Rect ( )

Constructor

References init().

◆ Rect() [2/2]

Rect::Rect ( float x1,
float y1,
float x2,
float y2 )

Constructor. Sets values

Parameters
x1First X value
y1First Y value
x2Second X value
y2Second Y value

References set().

Member Function Documentation

◆ getXMax()

float WXP::Rect::getXMax ( )
inline

Returns min Y value

References xmax.

Referenced by WXP::Graph::drawFill().

◆ getXMin()

float WXP::Rect::getXMin ( )
inline

Returns min X value

References xmin.

Referenced by WXP::Graph::drawFill().

◆ getYMax()

float WXP::Rect::getYMax ( )
inline

Returns max Y value

References ymax.

Referenced by WXP::Graph::drawFill().

◆ getYMin()

float WXP::Rect::getYMin ( )
inline

Returns max X value

References ymin.

Referenced by WXP::Graph::drawFill().

◆ init()

int Rect::init ( )

Initializes the values

References WXP::Const::MISS, xmax, xmin, ymax, and ymin.

Referenced by Rect().

◆ print()

int Rect::print ( )

Prints the object values

References xmax, xmin, ymax, and ymin.

Referenced by WXP::Graph::setViewportAspect().

◆ set()

int Rect::set ( float x1,
float y1,
float x2,
float y2 )

Sets values

Parameters
x1First X value
y1First Y value
x2Second X value
y2Second Y value

References xmax, xmin, ymax, and ymin.

Referenced by WXP::XWindow::getCoords(), WXP::XWindow::getCoords(), and Rect().

◆ setu()

int Rect::setu ( float x1,
float y1,
float x2,
float y2 )

Sets values, unsorted

Parameters
x1First X value
y1First Y value
x2Second X value
y2Second Y value

References xmax, xmin, ymax, and ymin.

Member Data Documentation

◆ xmax

◆ xmin

◆ ymax

◆ ymin


The documentation for this class was generated from the following files: