123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628 |
- #ifndef AuswahlBox_H
- #define AuswahlBox_H
- #include "Array.h"
- #include "Zeichnung.h"
- namespace Framework
- {
- class TextFeld;
- class VScrollBar;
- class Rahmen;
- class Knopf;
- class AlphaFeld;
- class Text;
- class Schrift;
- class TextRenderer;
-
-
- class AuswahlBox : public ZeichnungHintergrund
- {
- public:
- class Style : public ZeichnungHintergrund::Style
- {
- public:
-
-
- static const __int64 FeldRahmen = 0x000001000;
-
-
- static const __int64 FeldHintergrund = 0x000002000;
-
-
- static const __int64 FeldHBild = 0x000004000;
-
-
- static const __int64 FeldHAlpha = 0x000008000;
-
-
- static const __int64 FeldBuffer = 0x000010000;
-
-
- static const __int64 AuswahlHintergrund = 0x000020000;
-
-
- static const __int64 AuswahlHBild = 0x000040000;
-
-
- static const __int64 AuswahlHAlpha = 0x000080000;
-
-
- static const __int64 AuswahlBuffer = 0x000100000;
-
-
- static const __int64 AuswahlRahmen = 0x000200000;
-
-
- static const __int64 MultiStyled = 0x000400000;
-
-
-
- static const __int64 MaxHeight = 0x004000000;
-
-
- static const __int64 MausHintergrund = 0x008000000;
-
-
- static const __int64 MausHBild = 0x010000000;
-
-
- static const __int64 MausHAlpha = 0x020000000;
-
-
- static const __int64 MausBuffer = 0x040000000;
-
-
- static const __int64 MausRahmen = 0x080000000;
-
-
-
-
-
- static const __int64 Normal
- = Sichtbar | Erlaubt | Rahmen | FeldRahmen | AuswahlBuffer
- | AuswahlRahmen | MaxHeight | VScroll | MausRahmen | MausBuffer
- | Hintergrund | MEIgnoreParentInside | MEIgnoreVerarbeitet;
- };
- private:
- TextRenderer* textRd;
- Array<__int64>* msStyle;
- RCArray<TextFeld>* members;
- Knopf* ausfahren;
- Rahmen* auswRahmen;
- int auswBgF;
- Bild* auswBgB;
- AlphaFeld* auswAf;
- RCArray<Rahmen>* msAuswRahmen;
- Array<int>* msAuswBgF;
- RCArray<Bild>* msAuswBgB;
- RCArray<AlphaFeld>* msAuswAf;
- Rahmen* mausRahmen;
- int mausBgF;
- Bild* mausBgB;
- AlphaFeld* mausAf;
- RCArray<Rahmen>* msMausRahmen;
- Array<int>* msMausBgF;
- RCArray<Bild>* msMausBgB;
- RCArray<AlphaFeld>* msMausAf;
- int anzahl;
- int auswahl;
- bool ausgeklappt;
- int ausklappHeight;
- int ausklapMaxHeight;
- int eintragHeight;
- double tickval;
- int mausEintrag;
- bool scrollAnzeigen;
- void* eAkP;
- std::function<void(void*, AuswahlBox*, int, int)> eAk;
-
-
- DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
- public:
-
- DLLEXPORT AuswahlBox();
-
- DLLEXPORT virtual ~AuswahlBox();
-
-
- DLLEXPORT void setEventParam(void* p);
-
-
-
- DLLEXPORT void setEventAktion(
- std::function<void(void*, AuswahlBox*, int, int)> event);
-
-
- DLLEXPORT void setTextRendererZ(TextRenderer* textRd);
-
-
- DLLEXPORT void setSchriftZ(Schrift* schrift);
-
-
-
- DLLEXPORT void addEintrag(const char* txt);
-
-
-
- DLLEXPORT void addEintrag(Text* txt);
-
-
-
- DLLEXPORT void addEintragZ(TextFeld* txt);
-
-
-
- DLLEXPORT void setEintrag(int i, const char* txt);
-
-
-
- DLLEXPORT void setEintrag(int i, Text* txt);
-
-
-
- DLLEXPORT void setEintragZ(int i, TextFeld* txt);
-
-
- DLLEXPORT void removeEintrag(int i);
-
-
- DLLEXPORT void setAusklappKnopfZ(Knopf* ausK);
-
-
-
- DLLEXPORT void setEintragRahmenZ(int i, Rahmen* rahmen);
-
-
-
- DLLEXPORT void setEintragRahmenFarbe(int i, int f);
-
-
-
- DLLEXPORT void setEintragRahmenBreite(int i, int rbr);
-
-
-
- DLLEXPORT void setEintragHintergrundFarbe(int i, int f);
-
-
-
- DLLEXPORT void setEintragHintergrundBildZ(int i, Bild* bgB);
-
-
-
- DLLEXPORT void setEintragHintergrundBild(int i, Bild* bgB);
-
-
-
- DLLEXPORT void setEintragAlphaFeldZ(int i, AlphaFeld* af);
-
-
-
- DLLEXPORT void setEintragAlphaFeldFarbe(int i, int afF);
-
-
-
- DLLEXPORT void setEintragAlphaFeldStrength(int i, int afSt);
-
-
- DLLEXPORT void setAuswRahmenZ(Rahmen* rahmen);
-
-
- DLLEXPORT void setAuswRahmenFarbe(int f);
-
-
- DLLEXPORT void setAuswRahmenBreite(int rbr);
-
-
- DLLEXPORT void setAuswHintergrundFarbe(int f);
-
-
- DLLEXPORT void setAuswHintergrundBildZ(Bild* bgB);
-
-
- DLLEXPORT void setAuswHintergrundBild(Bild* bgB);
-
-
- DLLEXPORT void setAuswAlphaFeldZ(AlphaFeld* af);
-
-
- DLLEXPORT void setAuswAlphaFeldFarbe(int afF);
-
-
- DLLEXPORT void setAuswAlphaFeldStrength(int afSt);
-
-
-
- DLLEXPORT void setMsAuswRahmenZ(int i, Rahmen* rahmen);
-
-
-
- DLLEXPORT void setMsAuswRahmenFarbe(int i, int f);
-
-
-
- DLLEXPORT void setMsAuswRahmenBreite(int i, int rbr);
-
-
-
- DLLEXPORT void setMsAuswHintergrundFarbe(int i, int f);
-
-
-
-
- DLLEXPORT void setMsAuswHintergrundBildZ(int i, Bild* bgB);
-
-
-
-
- DLLEXPORT void setMsAuswHintergrundBild(int i, Bild* bgB);
-
-
-
-
- DLLEXPORT void setMsAuswAlphaFeldZ(int i, AlphaFeld* af);
-
-
-
- DLLEXPORT void setMsAuswAlphaFeldFarbe(int i, int afF);
-
-
-
- DLLEXPORT void setMsAuswAlphaFeldStrength(int i, int afSt);
-
-
- DLLEXPORT void setMausRahmenZ(Rahmen* rahmen);
-
-
- DLLEXPORT void setMausRahmenFarbe(int f);
-
-
- DLLEXPORT void setMausRahmenBreite(int rbr);
-
-
- DLLEXPORT void setMausHintergrundFarbe(int f);
-
-
- DLLEXPORT void setMausHintergrundBildZ(Bild* bgB);
-
-
- DLLEXPORT void setMausHintergrundBild(Bild* bgB);
-
-
- DLLEXPORT void setMausAlphaFeldZ(AlphaFeld* af);
-
-
- DLLEXPORT void setMausAlphaFeldFarbe(int afF);
-
-
- DLLEXPORT void setMausAlphaFeldStrength(int afSt);
-
-
-
-
- DLLEXPORT void setMsMausRahmenZ(int i, Rahmen* rahmen);
-
-
-
- DLLEXPORT void setMsMausRahmenFarbe(int i, int f);
-
-
-
-
- DLLEXPORT void setMsMausRahmenBreite(int i, int rbr);
-
-
-
- DLLEXPORT void setMsMausHintergrundFarbe(int i, int f);
-
-
-
- DLLEXPORT void setMsMausHintergrundBildZ(int i, Bild* bgB);
-
-
-
- DLLEXPORT void setMsMausHintergrundBild(int i, Bild* bgB);
-
-
-
- DLLEXPORT void setMsMausAlphaFeldZ(int i, AlphaFeld* af);
-
-
-
-
- DLLEXPORT void setMsMausAlphaFeldFarbe(int i, int afF);
-
-
-
-
- DLLEXPORT void setMsMausAlphaFeldStrength(int i, int afSt);
-
-
- DLLEXPORT void setAuswahl(int i);
-
- DLLEXPORT void ausklappen();
-
- DLLEXPORT void einklappen();
-
-
- DLLEXPORT void scrollZuEintrag(int i);
-
-
- DLLEXPORT void setMaxAuskappHeight(int maxHeight);
-
-
- DLLEXPORT void setEintragHeight(int height);
-
-
-
- DLLEXPORT void addMsStyle(int i, __int64 abStyle);
-
-
-
-
- DLLEXPORT void setMsStyle(int i, __int64 abStyle, bool add);
-
-
-
- DLLEXPORT void setMsStyle(int i, __int64 abStyle);
-
-
-
- DLLEXPORT void removeMsStyle(int i, __int64 abStyle);
-
-
-
-
- DLLEXPORT bool tick(double tickVal) override;
-
-
-
- DLLEXPORT void doTastaturEreignis(TastaturEreignis& te) override;
-
-
- DLLEXPORT void render(Bild& zRObj) override;
-
-
- DLLEXPORT int getEintragPos(const char* txt) const;
-
-
- DLLEXPORT int getEintragPos(Text* txt) const;
-
-
- DLLEXPORT Text* getEintragText(int i) const;
-
-
- DLLEXPORT Text* zEintragText(int i) const;
-
-
- DLLEXPORT TextFeld* getEintrag(int i) const;
-
-
- DLLEXPORT TextFeld* zEintrag(int i) const;
-
- DLLEXPORT int getAuswahl() const;
-
- DLLEXPORT int getEintragAnzahl() const;
-
- DLLEXPORT bool istAusgeklappt() const;
-
- DLLEXPORT int getMaxHeight() const;
-
- DLLEXPORT int getEintragHeight() const;
-
-
- DLLEXPORT Knopf* getAusklappKnopf() const;
-
-
- DLLEXPORT Knopf* zAusklappKnopf() const;
-
-
- DLLEXPORT Rahmen* getEintragRahmen(int i) const;
-
-
- DLLEXPORT Rahmen* zEintragRahmen(int i) const;
-
-
- DLLEXPORT int getEintragRahmenFarbe(int i) const;
-
-
- DLLEXPORT int getEintragRahmenBreite(int i) const;
-
-
- DLLEXPORT AlphaFeld* getEintragAlphaFeld(int i) const;
-
-
- DLLEXPORT AlphaFeld* zEintragAlphaFeld(int i) const;
-
-
- DLLEXPORT int getEintragAlphaFeldFarbe(int i) const;
-
-
- DLLEXPORT int getEintragAlphaFeldStrength(int i) const;
-
-
- DLLEXPORT int getEintragHintergrundFarbe(int i) const;
-
-
- DLLEXPORT Bild* getEintragHintergrundBild(int i) const;
-
-
- DLLEXPORT Bild* zEintragHintergrundBild(int i) const;
-
-
- DLLEXPORT Rahmen* getAuswRahmen() const;
-
-
- DLLEXPORT Rahmen* zAuswRahmen() const;
-
-
- DLLEXPORT int getAuswRahmenFarbe() const;
-
-
- DLLEXPORT int getAuswRahmenBreite() const;
-
-
- DLLEXPORT AlphaFeld* getAuswAlphaFeld() const;
-
-
- DLLEXPORT AlphaFeld* zAuswAlphaFeld() const;
-
-
- DLLEXPORT int getAuswAlphaFeldFarbe() const;
-
-
- DLLEXPORT int getAuswAlphaFeldStrength() const;
-
-
- DLLEXPORT int getAuswHintergrundFarbe() const;
-
-
- DLLEXPORT Bild* getAuswHintergrundBild() const;
-
-
- DLLEXPORT Bild* zAuswHintergrundBild() const;
-
-
-
- DLLEXPORT Rahmen* getMsAuswRahmen(int i) const;
-
-
-
- DLLEXPORT Rahmen* zMsAuswRahmen(int i) const;
-
-
-
- DLLEXPORT int getMsAuswRahmenFarbe(int i) const;
-
-
-
- DLLEXPORT int getMsAuswRahmenBreite(int i) const;
-
-
-
- DLLEXPORT AlphaFeld* getMsAuswAlphaFeld(int i) const;
-
-
-
- DLLEXPORT AlphaFeld* zMsAuswAlphaFeld(int i) const;
-
-
-
- DLLEXPORT int getMsAuswAlphaFeldFarbe(int i) const;
-
-
-
- DLLEXPORT int getMsAuswAlphaFeldStrength(int i) const;
-
-
-
- DLLEXPORT int getMsAuswHintergrundFarbe(int i) const;
-
-
-
- DLLEXPORT Bild* getMsAuswHintergrundBild(int i) const;
-
-
-
- DLLEXPORT Bild* zMsAuswHintergrundBild(int i) const;
-
-
- DLLEXPORT Rahmen* getMausRahmen() const;
-
-
- DLLEXPORT Rahmen* zMausRahmen() const;
-
-
- DLLEXPORT int getMausRahmenFarbe() const;
-
-
- DLLEXPORT int getMausRahmenBreite() const;
-
-
- DLLEXPORT AlphaFeld* getMausAlphaFeld() const;
-
-
- DLLEXPORT AlphaFeld* zMausAlphaFeld() const;
-
-
- DLLEXPORT int getMausAlphaFeldFarbe() const;
-
-
- DLLEXPORT int getMausAlphaFeldStrength() const;
-
-
- DLLEXPORT int getMausHintergrundFarbe() const;
-
-
- DLLEXPORT Bild* getMausHintergrundBild() const;
-
-
- DLLEXPORT Bild* zMausHintergrundBild() const;
-
-
-
- DLLEXPORT Rahmen* getMsMausRahmen(int i) const;
-
-
-
- DLLEXPORT Rahmen* zMsMausRahmen(int i) const;
-
-
-
- DLLEXPORT int getMsMausRahmenFarbe(int i) const;
-
-
-
- DLLEXPORT int getMsMausRahmenBreite(int i) const;
-
-
-
- DLLEXPORT AlphaFeld* getMsMausAlphaFeld(int i) const;
-
-
-
- DLLEXPORT AlphaFeld* zMsMausAlphaFeld(int i) const;
-
-
-
- DLLEXPORT int getMsMausAlphaFeldFarbe(int i) const;
-
-
-
- DLLEXPORT int getMsMausAlphaFeldStrength(int i) const;
-
-
-
- DLLEXPORT int getMsMausHintergrundFarbe(int i) const;
-
-
-
- DLLEXPORT Bild* getMsMausHintergrundBild(int i) const;
-
-
-
- DLLEXPORT Bild* zMsMausHintergrundBild(int i) const;
-
-
-
-
- DLLEXPORT bool istPunktInnen(int x, int y) const override;
-
-
-
- DLLEXPORT inline bool hatMsStyle(int i, __int64 abStyle) const;
-
-
-
- DLLEXPORT inline bool hatMsStyleNicht(int i, __int64 abStyle) const;
- DLLEXPORT Zeichnung*
- dublizieren() const override;
- };
- }
- #endif
|