Xfce Foundation Classes
Main Page  | Index |  Namespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gdk::Segment Class Reference

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

#include <xfc/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

Xfc::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.

Xfc::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 Xfc::Gdk::Segment::equal (  const Segment &  other  )  const
 

Returns true if this segment and other compare equal.

Parameters:
other A Segment.

bool Xfc::Gdk::Segment::operator!= (  const Segment &  other  )  const
 

Returns true if this segment and other compare unequal.

Parameters:
other A Segment.

bool Xfc::Gdk::Segment::operator== (  const Segment &  other  )  const
 

Returns true if this segment and other compare equal.

Parameters:
other A Segment.

void Xfc::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 Xfc::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 Xfc::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 Xfc::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 Xfc::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 Xfc::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: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3