GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gdk::Segment Class Reference

A GdkSegment C++ wrapper class. More...

#include <gfc/gdk/types.hh>

List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A GdkSegment C++ wrapper class.

Segment specifies the start and end point of a line for use by the Gdk::Drawable::draw_segments() method. Segment uses default copy, assignment and destruction.


Constructor & Destructor Documentation

GFC::Gdk::Segment::Segment int  x1,
int  y1,
int  x2,
int  y2
 

Construct a new segment.

Parameters:
x1 The X coordinate at the start of the segment.
y1 The Y coordinate at the start of the segment.
x2 The X coordinate at the end of the segment.
y2 The Y coordinate at the end of the segment.

GFC::Gdk::Segment::Segment const Point start,
const Point end
 

Construct a new segemnt.

Parameters:
start The x, y coordinates at the start of the segment.
end The x, y coordinates at the end of the segment.


Member Function Documentation

bool GFC::Gdk::Segment::equal const Segment other  )  const
 

Returns true if this segment and other compare equal.

Parameters:
other A Segment.

bool GFC::Gdk::Segment::operator!= const Segment other  )  const
 

Returns true if this segment and other compare unequal.

Parameters:
other A Segment.

bool GFC::Gdk::Segment::operator== const Segment other  )  const
 

Returns true if this segment and other compare equal.

Parameters:
other A Segment.

void GFC::Gdk::Segment::set const Point start,
const Point end
 

Sets the coordinates for the segment.

Parameters:
start The x, y coordinates at the start of the segment.
end The x, y coordinates at the end of the segment.

void GFC::Gdk::Segment::set int  x1,
int  y1,
int  x2,
int  y2
 

Sets the coordinates for the segment.

Parameters:
x1 The X coordinate at the start of the segment.
y1 The Y coordinate at the start of the segment.
x2 The X coordinate at the end of the segment.
y2 The Y coordinate at the end of the segment.

void GFC::Gdk::Segment::set_end const Point point  ) 
 

Sets the end coordinates of the segment.

Parameters:
point The x, y coordinates at the end of the segment.

void GFC::Gdk::Segment::set_end int  x,
int  y
 

Sets the end coordinates of the segment.

Parameters:
x The X coordinate at the end of the segment.
y The Y coordinate at the end of the segment.

void GFC::Gdk::Segment::set_start const Point point  ) 
 

Sets the start coordinates of the segment.

Parameters:
point The x, y coordinates at the start of the segment.

void GFC::Gdk::Segment::set_start int  x,
int  y
 

Sets the start coordinates of the segment.

Parameters:
x The X coordinate at the start of the segment.
y The Y coordinate at the start of the segment.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:36 2004 for GFC-UI by doxygen 1.3.8