123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- #ifndef Schrift_H
- #define Schrift_H
- #include "Critical.h"
- #include "Punkt.h"
- namespace Framework
- {
- class Bild;
- class Text;
- struct VScrollData;
- struct HScrollData;
- class Buchstabe;
- class Alphabet;
- class Schrift;
-
-
- class Buchstabe
- {
- private:
- Punkt size;
- Punkt pos;
- unsigned char *alpha;
- int schriftSize;
- int drawSg;
- int ref;
- public:
-
- __declspec( dllexport ) Buchstabe();
-
- __declspec( dllexport ) ~Buchstabe();
-
-
- __declspec( dllexport ) void NeuBuchstabe( Punkt &size );
-
-
-
- __declspec( dllexport ) void setPixel( Punkt &pos, unsigned char alpha );
-
-
-
-
- __declspec( dllexport ) void setPixel( int x, int y, unsigned char alpha );
-
-
-
- __declspec( dllexport ) void setPixel( int i, unsigned char alpha );
-
-
- __declspec( dllexport ) void setPosition( Punkt &pos );
-
-
-
- __declspec( dllexport ) void setPosition( int x, int y );
-
-
- __declspec( dllexport ) void setSchriftSize( int sg );
-
-
- __declspec( dllexport ) void setDrawSchriftSize( int dsg );
-
- __declspec( dllexport ) unsigned char *getBuff() const;
-
- __declspec( dllexport ) const Punkt &getSize() const;
-
- __declspec( dllexport ) int getBreite() const;
-
- __declspec( dllexport ) int getHeight() const;
-
- __declspec( dllexport ) int getNormHeight() const;
-
-
-
-
- __declspec( dllexport ) void render( Bild &zRObj, int f ) const;
-
-
- __declspec( dllexport ) Buchstabe *getThis();
-
-
- __declspec( dllexport ) Buchstabe *release();
- };
-
-
- class Alphabet
- {
- private:
- Buchstabe **zeichen;
- int schriftSize;
- int drawSchriftSize;
- Punkt pos;
- int zeilenHeight;
- int zeilenAbstand;
- int ref;
- public:
-
- __declspec( dllexport ) Alphabet();
-
- __declspec( dllexport ) ~Alphabet();
-
- __declspec( dllexport ) void NeuAlphabet();
-
-
-
-
- __declspec( dllexport ) void setBuchstabe( unsigned char i, Buchstabe *buchstabe );
-
-
- __declspec( dllexport ) void setSchriftSize( int gr );
-
-
- __declspec( dllexport ) void setDrawSchriftSize( int gr );
-
-
- __declspec( dllexport ) void setZeilenAbstand( int za );
-
-
- __declspec( dllexport ) void setDrawPosition( Punkt &pos );
-
-
-
- __declspec( dllexport ) void setDrawPosition( int x, int y );
-
-
-
- __declspec( dllexport ) Buchstabe *getBuchstabe( unsigned char i ) const;
-
-
-
- __declspec( dllexport ) Buchstabe *zBuchstabe( unsigned char i ) const;
-
-
-
- __declspec( dllexport ) bool hatBuchstabe( unsigned char b ) const;
-
- __declspec( dllexport ) int getSchriftSize() const;
-
- __declspec( dllexport ) int getDrawSchriftSize() const;
-
- __declspec( dllexport ) int getZeilenAbstand() const;
-
- __declspec( dllexport ) int getZeilenHeight() const;
-
- __declspec( dllexport ) const Punkt &getPosition() const;
-
-
- __declspec( dllexport ) int getTextBreite( Text *zTxt ) const;
-
-
- __declspec( dllexport ) int getTextHeight( Text *zTxt ) const;
-
-
-
-
- __declspec( dllexport ) int textPos( Text *zTxt, int mausX, int mausY ) const;
-
-
-
-
- __declspec( dllexport ) void textFormatieren( Text *zText, int maxBreite, int schriftSize );
-
-
-
-
-
- __declspec( dllexport ) void render( Text *zTxt, Bild &zRObj, int f ) const;
-
-
-
-
-
-
-
-
-
- __declspec( dllexport ) void render( Text *zTxt, Bild &zRObj, int cpos, int cf, int fbeg, int ff, int f ) const;
-
-
- __declspec( dllexport ) Alphabet *getThis();
-
-
- __declspec( dllexport ) Alphabet *release();
- };
-
-
- class AlphabetArray
- {
- private:
- AlphabetArray *next;
- Alphabet *This;
- public:
-
- __declspec( dllexport ) AlphabetArray();
-
- __declspec( dllexport ) ~AlphabetArray();
-
-
-
-
- __declspec( dllexport ) bool addAlphabet( Alphabet *alphabet );
-
-
-
- __declspec( dllexport ) bool removeAlphabet( int sg );
-
-
- __declspec( dllexport ) void setDrawSchriftSize( int sg );
-
-
- __declspec( dllexport ) void setZeilenAbstand( int za );
-
- __declspec( dllexport ) void setNext0();
-
-
-
- __declspec( dllexport ) Alphabet *getAlphabet( unsigned char sg ) const;
-
-
-
- __declspec( dllexport ) Alphabet *zAlphabet( unsigned char sg ) const;
-
-
-
-
- __declspec( dllexport ) Alphabet *getAlphabetI( int index, int count ) const;
-
-
-
-
- __declspec( dllexport ) Alphabet *zAlphabetI( int index, int count ) const;
-
- __declspec( dllexport ) AlphabetArray *getNext() const;
- };
-
- class Schrift
- {
- private:
- unsigned char alphabetAnzahl;
- AlphabetArray *alphabet;
- int schriftSize;
- int zeilenAbstand;
- Punkt drawPos;
- Critical cs;
- int ref;
- public:
-
- __declspec( dllexport ) Schrift();
-
- __declspec( dllexport ) ~Schrift();
-
-
- __declspec( dllexport ) void lock();
-
-
-
- __declspec( dllexport ) void unlock();
-
-
-
- __declspec( dllexport ) bool addAlphabet( Alphabet *alphabet );
-
-
- __declspec( dllexport ) void removeAlphabet( int sg );
-
-
-
- __declspec( dllexport ) void setDrawPosition( int x, int y );
-
-
- __declspec( dllexport ) void setDrawPosition( Punkt &pos );
-
-
- __declspec( dllexport ) void setSchriftSize( int sg );
-
-
- __declspec( dllexport ) void setZeilenAbstand( int za );
-
-
-
-
- __declspec( dllexport ) void textFormatieren( Text *zText, int maxBreite, int schriftSize );
-
-
-
-
-
- __declspec( dllexport ) void renderText( Text *zTxt, Bild &zRObj, int f );
-
-
-
-
-
-
-
-
-
- __declspec( dllexport ) void renderText( Text *zTxt, Bild &zRObj, int cpos, int cf, int fbeg, int ff, int f );
-
-
-
- __declspec( dllexport ) Alphabet *getAlphabet( int sg ) const;
-
-
-
- __declspec( dllexport ) Alphabet *zAlphabet( int sg ) const;
-
-
-
- __declspec( dllexport ) Alphabet *getAlphabetI( int index ) const;
-
-
-
- __declspec( dllexport ) Alphabet *zAlphabetI( int index ) const;
-
- __declspec( dllexport ) unsigned char getAlphabetAnzahl() const;
-
- __declspec( dllexport ) int getSchriftSize() const;
-
- __declspec( dllexport ) int getZeilenabstand() const;
-
- __declspec( dllexport ) int getDrawX() const;
-
- __declspec( dllexport ) int getDrawY() const;
-
- __declspec( dllexport ) const Punkt &getDrawPosition() const;
-
-
- __declspec( dllexport ) int getTextBreite( Text *zTxt ) const;
-
-
- __declspec( dllexport ) int getTextHeight( Text *zTxt ) const;
-
-
-
-
- __declspec( dllexport ) int textPos( Text *zTxt, int mausX, int mausY ) const;
-
-
- __declspec( dllexport ) Schrift *getThis();
-
-
- __declspec( dllexport ) Schrift *release();
- };
- }
- #endif
|