Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UWinGraph Class Reference

internal Graphics context for drawing Ubit objects. More...

#include <ugraph.hpp>

Inheritance diagram for UWinGraph:

UGraph List of all members.

Public Member Functions

 UWinGraph (class UWin *)
bool init (UDisp *, UView *window_view)
 inits the WinGraph.
bool isWinRealized () const
 is the X Window created ?.
UDispgetDisp () const
 returns the logical Display of this View.
UAppligetAppli () const
 returns the Application context.
UWingetHardwin () const
 returns the "hard window" that contains the current View.
UNatWin * getNatWin () const
 gives acces to implementation-dependent hidden objects.
UNatDisp * getNatDisp () const
void begin (const URegion &clip)
 must be called before drawing (to allocate graphical resources).
void end ()
 must be called after drawing (to release graphical resources).
void beginDoublebuf (const URegion &clip)
void beginBlend (const URegion &clip, float alpha)
void beginSubwin (const URegion &clip, u_pos xwin, u_pos ywin)
 variants of the begin() function.
void endBlend ()
void blendColor (const URegion &clip, float alpha)
 blends the 'clip' zone with current color.
void setClip (const URegion &)
void setClip (u_pos x, u_pos y, u_dim width, u_dim height)
 set the clipping zone relatively to VIEW coordinates.
void setWinClip (const URegion &r)
void setWinClip (u_pos x, u_pos y, u_dim width, u_dim height)
 setClip and setWinClip are similar for this class:.

Detailed Description

internal Graphics context for drawing Ubit objects.

Notes:


Member Function Documentation

void UWinGraph::begin const URegion clip  ) 
 

must be called before drawing (to allocate graphical resources).

the clip specificlip specifies where drawing will take place in the WINDOW. a drawing sequence must start by begin() and finish by end()

void UWinGraph::beginSubwin const URegion clip,
u_pos  xwin,
u_pos  ywin
 

variants of the begin() function.

a drawing sequence must always be terminated by end()

void UWinGraph::blendColor const URegion clip,
float  alpha
 

blends the 'clip' zone with current color.

'alpha' is the value for alpha blending. the current color must have been specified by calling setColor()

void UWinGraph::end  ) 
 

must be called after drawing (to release graphical resources).

a drawing sequence must start by begin() and finish by end()

class UNatWin* UWinGraph::getNatWin  )  const
 

gives acces to implementation-dependent hidden objects.

Note: these "Native Objects" encapsulate platform-dependant data. their implementation is subject to change and to vary depending on the native platform.

Reimplemented from UGraph.

bool UWinGraph::init UDisp ,
UView window_view
 

inits the WinGraph.

Note: init() does not create the X Window (this is done by UWin::realize)

void UWinGraph::setClip u_pos  x,
u_pos  y,
u_dim  width,
u_dim  height
 

set the clipping zone relatively to VIEW coordinates.

coordinates are relative to the origin of the VIEW

Reimplemented from UGraph.

void UWinGraph::setWinClip u_pos  x,
u_pos  y,
u_dim  width,
u_dim  height
 

setClip and setWinClip are similar for this class:.

notes:

  • coordinates are relative to the origin of the WINDOW in all cases
  • the view is no taken into account
  • see also: UGraph::setClip() and UGraph::setWinClip()

Reimplemented from UGraph.


The documentation for this class was generated from the following files:
Generated on Fri Jun 3 03:30:19 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2