#include <CNCL/EZDQueue.h>
CN_EZDQUEUE
BASE CLASSES
EZDObject
None
EZDServer
EZDQueue
is the graphical representation of a queue.
This drawing is handled as an EZDObject
, in which x is the most left
and y the middle axis' coordinate. The bar, itself an EZDObject
,
is representing the amount of tasks waiting inside the queue.
Constructors:
EZDQueue();
EZDQueue(Param *param);
EZDQueue(int x, int y, int width = WIDTH, int heigth = HEIGTH, int tail = TAIL);
EZDQueue(const CNString &name, int x, int y, int width = WIDTH, int heigth = HEIGTH,
int tail = TAIL);
EZDQueue
as an EZDObject
(default object
name : "queue" ) inside the current drawing at the coordinates
(x,y)
( default value (0,0) ). Width ( 100 pixels ) and heigth (
20 pixels ) are the queue body's rectangle size measured in pixels, tail
( 20 pixels ) the tail's length.
In addition to the member functions required by CNCL, EZDQueue
provides:
int left() const;
int rigth() const;
int upper() const;
int lower() const;
virtual void redraw();
int length() const;
int get_length() const;
void length(int l);
void set_length(int l);
void color(const CNString &c);
c
and redraws the queue.
Go to the first, previous, next, last section, table of contents.