class WindowPipe

This class connect two Windows in order to put Sprite relatively to the Windows positions

Public Methods

WindowPipe(Window& aTo, Window& aFrom, const UnderMaskMatrix& underMask) throw()
~WindowPipe() throw()
void paintWindowFrom() throw()
void put(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()
Relative under mask
void putOn(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()
Relative
void putTo(const Sprite& s, int jPos, int iPos, bool uppest) throw()
No relative
void putUnder(const Sprite& s, int jPos, int iPos) throw()
under mask
void putColorTo(Pixel color, const Sprite& s, int jPos, int iPos) throw()
No relative
void putWithPalette(const Sprite& s, int jFromRelativePos, int iFromRelativePos, const PixelPalette& pal) throw()
Relative under mask
void refreshAll() throw()
Paint the background (windowFrom) and paint the Sprite according to the put order
void moveFrom(int j, int i) throw()
void moveTo(int j, int i) throw()
void getFrom(int& jPos, int& iPos, int& jSize, int& iSize) const throw()
void getTo(int& jPos, int& iPos, int& jSize, int& iSize) const throw()

Private Fields

Window* const to
Window* const from
const UnderMaskMatrix* const mask
List < T_Zlist * > Zlist
List < T_Zlist * > ZlistOn
List < T_Zlist * > ZlistTo
List < T_Zlist * > ZlistToUppest
List < T_ZColorlist * > ZlistColorTo

Private Methods

void realPaintWindowFrom() throw()
void realPut(const Sprite& s, int jFromRelativePos, int iFromRelativePos, const PixelPalette *pal) throw()
void realPutOn(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()
void realPutTo(const Sprite& s, int jPos, int iPos) throw()
void realPutColorTo(Pixel color, const Sprite& s, int jPos, int iPos) throw()

Documentation

This class connect two Windows in order to put Sprite relatively to the Windows positions. Very useful. With this class, no clipping or position calculating problem ! You can scroll and paint everything you want without any problem. Just call refresh() at the end (before the GraphicMode.refresh()). Usually, the windowTo is the window for GraphicMode (new Window(graphicMode));
Window* const to

Window* const from

const UnderMaskMatrix* const mask

struct T_Zlist

const Sprite* s

int j

int i

const PixelPalette* pal

struct T_ZColorlist

const Sprite* s

int j

int i

Pixel color

List < T_Zlist * > Zlist

List < T_Zlist * > ZlistOn

List < T_Zlist * > ZlistTo

List < T_Zlist * > ZlistToUppest

List < T_ZColorlist * > ZlistColorTo

void realPaintWindowFrom() throw()

void realPut(const Sprite& s, int jFromRelativePos, int iFromRelativePos, const PixelPalette *pal) throw()

void realPutOn(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()

void realPutTo(const Sprite& s, int jPos, int iPos) throw()

void realPutColorTo(Pixel color, const Sprite& s, int jPos, int iPos) throw()

WindowPipe(Window& aTo, Window& aFrom, const UnderMaskMatrix& underMask) throw()

~WindowPipe() throw()

void paintWindowFrom() throw()

void put(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()
Relative under mask

void putOn(const Sprite& s, int jFromRelativePos, int iFromRelativePos) throw()
Relative

void putTo(const Sprite& s, int jPos, int iPos, bool uppest) throw()
No relative

void putUnder(const Sprite& s, int jPos, int iPos) throw()
under mask

void putColorTo(Pixel color, const Sprite& s, int jPos, int iPos) throw()
No relative

void putWithPalette(const Sprite& s, int jFromRelativePos, int iFromRelativePos, const PixelPalette& pal) throw()
Relative under mask

void refreshAll() throw()
Paint the background (windowFrom) and paint the Sprite according to the put order

void moveFrom(int j, int i) throw()

void moveTo(int j, int i) throw()

void getFrom(int& jPos, int& iPos, int& jSize, int& iSize) const throw()

void getTo(int& jPos, int& iPos, int& jSize, int& iSize) const throw()


This class has no child classes.
Author:
David FAUTHOUX
See Also:
Window
GraphicMode
Sprite
Anim

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de