NEURON
Line Class Reference

#include <rect.h>

Inheritance diagram for Line:
Appear

Public Member Functions

 Line (Coord dx, Coord dy, const Color *color=NULL, const Brush *brush=NULL)
 
 Line (Coord dx, Coord dy, float x_align, float y_align, const Color *color=NULL, const Brush *brush=NULL)
 
virtual ~Line ()
 
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 &)
 
- 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 dx_
 
Coord dy_
 
float x_
 
float y_
 

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 60 of file rect.h.

Constructor & Destructor Documentation

◆ Line() [1/2]

Line::Line ( Coord  dx,
Coord  dy,
const Color color = NULL,
const Brush brush = NULL 
)

◆ Line() [2/2]

Line::Line ( Coord  dx,
Coord  dy,
float  x_align,
float  y_align,
const Color color = NULL,
const Brush brush = NULL 
)

◆ ~Line()

virtual Line::~Line ( )
virtual

Member Function Documentation

◆ allocate()

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

◆ draw()

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

◆ pick()

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

◆ request()

virtual void Line::request ( Requisition ) const
virtual

Member Data Documentation

◆ dx_

Coord Line::dx_
private

Definition at line 77 of file rect.h.

◆ dy_

Coord Line::dy_
private

Definition at line 77 of file rect.h.

◆ x_

float Line::x_
private

Definition at line 78 of file rect.h.

◆ y_

float Line::y_
private

Definition at line 78 of file rect.h.


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