NEURON
Rect Class Reference

#include <rect.h>

Inheritance diagram for Rect:
Appear

Public Member Functions

 Rect (Coord left, Coord bottom, Coord width, Coord height, const Color *c=NULL, const Brush *b=NULL)
 
virtual void request (Requisition &) const
 
virtual void allocate (Canvas *, const Allocation &, Extension &)
 
virtual void draw (Canvas *, const Allocation &) const
 
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
 
Coord left () const
 
Coord right () const
 
Coord top () const
 
Coord bottom () const
 
Coord width () const
 
Coord height () const
 
void left (Coord)
 
void bottom (Coord)
 
void width (Coord)
 
void height (Coord)
 
- Public Member Functions inherited from Appear
virtual ~Appear ()
 
const Colorcolor () const
 
void color (const Color *)
 
const Brushbrush () const
 
void brush (const Brush *)
 

Private Attributes

Coord l_
 
Coord b_
 
Coord w_
 
Coord h_
 

Additional Inherited Members

- Static Public Member Functions inherited from Appear
static const Colordefault_color ()
 
static const Brushdefault_brush ()
 
- Protected Member Functions inherited from Appear
 Appear (const Color *color=NULL, const Brush *brush=NULL)
 

Detailed Description

Definition at line 44 of file rect.h.

Constructor & Destructor Documentation

◆ Rect()

Rect::Rect ( Coord  left,
Coord  bottom,
Coord  width,
Coord  height,
const Color c = NULL,
const Brush b = NULL 
)

Member Function Documentation

◆ allocate()

virtual void Rect::allocate ( Canvas ,
const Allocation ,
Extension  
)
virtual

◆ bottom() [1/2]

Coord Rect::bottom ( ) const
inline

Definition at line 150 of file rect.h.

◆ bottom() [2/2]

void Rect::bottom ( Coord  x)
inline

Definition at line 166 of file rect.h.

◆ draw()

virtual void Rect::draw ( Canvas ,
const Allocation  
) const
virtual

◆ height() [1/2]

Coord Rect::height ( ) const
inline

Definition at line 159 of file rect.h.

◆ height() [2/2]

void Rect::height ( Coord  x)
inline

Definition at line 172 of file rect.h.

◆ left() [1/2]

Coord Rect::left ( ) const
inline

Definition at line 144 of file rect.h.

◆ left() [2/2]

void Rect::left ( Coord  x)
inline

Definition at line 163 of file rect.h.

◆ pick()

virtual void Rect::pick ( Canvas ,
const Allocation ,
int  depth,
Hit  
)
virtual

◆ request()

virtual void Rect::request ( Requisition ) const
virtual

◆ right()

Coord Rect::right ( ) const
inline

Definition at line 147 of file rect.h.

◆ top()

Coord Rect::top ( ) const
inline

Definition at line 153 of file rect.h.

◆ width() [1/2]

Coord Rect::width ( ) const
inline

Definition at line 156 of file rect.h.

◆ width() [2/2]

void Rect::width ( Coord  x)
inline

Definition at line 169 of file rect.h.

Member Data Documentation

◆ b_

Coord Rect::b_
private

Definition at line 63 of file rect.h.

◆ h_

Coord Rect::h_
private

Definition at line 63 of file rect.h.

◆ l_

Coord Rect::l_
private

Definition at line 63 of file rect.h.

◆ w_

Coord Rect::w_
private

Definition at line 63 of file rect.h.


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