#include <ugraph.hpp>
Inheritance diagram for UWinGraph:
Public Member Functions | |
UWinGraph (class UWin *) | |
bool | init (UDisp *, UView *window_view) |
inits the WinGraph | |
bool | isWinRealized () const |
is the X Window created ?. | |
UDisp * | getDisp () const |
returns the logical Display of this View. | |
UAppli * | getAppli () const |
returns the Application context. | |
UWin * | getHardwin () 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: |
Notes:
|
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() |
|
variants of the begin() function a drawing sequence must always be terminated by end() |
|
blends the 'clip' zone with current color 'alpha' is the value for alpha blending. the current color must have been specified by calling setColor() |
|
must be called after drawing (to release graphical resources) a drawing sequence must start by begin() and finish by end() |
|
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. |
|
inits the WinGraph Note: init() does not create the X Window (this is done by UWin::realize) |
|
set the clipping zone relatively to VIEW coordinates coordinates are relative to the origin of the VIEW Reimplemented from UGraph. |
|
setClip and setWinClip are similar for this class: notes:
Reimplemented from UGraph. |