NEURON
GLabel Class Reference

#include <graph.h>

Inheritance diagram for GLabel:
PointProcessGlyph

Public Member Functions

 GLabel (const char *s, const Color *, int fixtype=1, float size=12, float x_align=0., float y_align=0.)
 
virtual ~GLabel ()
 
virtual Glyphclone () const
 
virtual void request (Requisition &) const
 
virtual void allocate (Canvas *, const Allocation &, Extension &)
 
virtual void draw (Canvas *, const Allocation &) const
 
virtual void save (std::ostream &, Coord, Coord)
 
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
 
void text (const char *)
 
void fixed (float scale)
 
void vfixed (float scale)
 
void relative (float scale)
 
void align (float x, float y)
 
void color (const Color *)
 
bool fixed () const
 
float scale () const
 
const char * text () const
 
int fixtype () const
 
float x_align () const
 
float y_align () const
 
const Colorcolor () const
 
bool erase_flag ()
 
void erase_flag (bool b)
 
GPolyLinelabeled_line () const
 

Private Member Functions

void need (Canvas *, const Allocation &, Extension &) const
 

Private Attributes

int fixtype_
 
float scale_
 
float x_align_
 
float y_align_
 
std::string text_
 
Glyphlabel_
 
const Colorcolor_
 
GPolyLinegpl_
 
bool erase_flag_
 

Friends

void GPolyLine::label (GLabel *)
 

Detailed Description

Definition at line 418 of file graph.h.

Constructor & Destructor Documentation

◆ GLabel()

GLabel::GLabel ( const char *  s,
const Color ,
int  fixtype = 1,
float  size = 12,
float  x_align = 0.,
float  y_align = 0. 
)

◆ ~GLabel()

virtual GLabel::~GLabel ( )
virtual

Member Function Documentation

◆ align()

void GLabel::align ( float  x,
float  y 
)

◆ allocate()

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

◆ clone()

virtual Glyph* GLabel::clone ( ) const
virtual

◆ color() [1/2]

const Color* GLabel::color ( ) const
inline

Definition at line 460 of file graph.h.

◆ color() [2/2]

void GLabel::color ( const Color )

◆ draw()

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

◆ erase_flag() [1/2]

bool GLabel::erase_flag ( )
inline

Definition at line 463 of file graph.h.

◆ erase_flag() [2/2]

void GLabel::erase_flag ( bool  b)
inline

Definition at line 466 of file graph.h.

◆ fixed() [1/2]

bool GLabel::fixed ( ) const
inline

Definition at line 442 of file graph.h.

◆ fixed() [2/2]

void GLabel::fixed ( float  scale)

◆ fixtype()

int GLabel::fixtype ( ) const
inline

Definition at line 451 of file graph.h.

◆ labeled_line()

GPolyLine* GLabel::labeled_line ( ) const
inline

Definition at line 470 of file graph.h.

◆ need()

void GLabel::need ( Canvas ,
const Allocation ,
Extension  
) const
private

◆ pick()

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

◆ relative()

void GLabel::relative ( float  scale)

◆ request()

virtual void GLabel::request ( Requisition ) const
virtual

◆ save()

virtual void GLabel::save ( std::ostream &  ,
Coord  ,
Coord   
)
virtual

◆ scale()

float GLabel::scale ( ) const
inline

Definition at line 445 of file graph.h.

◆ text() [1/2]

const char* GLabel::text ( ) const
inline

Definition at line 448 of file graph.h.

◆ text() [2/2]

void GLabel::text ( const char *  )

◆ vfixed()

void GLabel::vfixed ( float  scale)

◆ x_align()

float GLabel::x_align ( ) const
inline

Definition at line 454 of file graph.h.

◆ y_align()

float GLabel::y_align ( ) const
inline

Definition at line 457 of file graph.h.

Friends And Related Function Documentation

◆ GPolyLine::label

void GPolyLine::label ( GLabel )
friend

Member Data Documentation

◆ color_

const Color* GLabel::color_
private

Definition at line 484 of file graph.h.

◆ erase_flag_

bool GLabel::erase_flag_
private

Definition at line 486 of file graph.h.

◆ fixtype_

int GLabel::fixtype_
private

Definition at line 479 of file graph.h.

◆ gpl_

GPolyLine* GLabel::gpl_
private

Definition at line 485 of file graph.h.

◆ label_

Glyph* GLabel::label_
private

Definition at line 483 of file graph.h.

◆ scale_

float GLabel::scale_
private

Definition at line 480 of file graph.h.

◆ text_

std::string GLabel::text_
private

Definition at line 482 of file graph.h.

◆ x_align_

float GLabel::x_align_
private

Definition at line 481 of file graph.h.

◆ y_align_

float GLabel::y_align_
private

Definition at line 481 of file graph.h.


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