|
@@ -1,4 +1,4 @@
|
|
|
-#ifndef Zeichnung_H
|
|
|
|
|
|
|
+#ifndef Zeichnung_H
|
|
|
#define Zeichnung_H
|
|
#define Zeichnung_H
|
|
|
|
|
|
|
|
#include <functional>
|
|
#include <functional>
|
|
@@ -14,8 +14,8 @@ namespace Framework
|
|
|
struct MausEreignis; //! MausEreignis.h
|
|
struct MausEreignis; //! MausEreignis.h
|
|
|
struct TastaturEreignis; //! TastaturEreignis.h
|
|
struct TastaturEreignis; //! TastaturEreignis.h
|
|
|
class Bild; //! Bild.h
|
|
class Bild; //! Bild.h
|
|
|
- class Zeichnung; //! Aus dieser Datei
|
|
|
|
|
- class ToolTip; //! ToopTip.h
|
|
|
|
|
|
|
+ class Zeichnung; //! From this file
|
|
|
|
|
+ class ToolTip; //! ToolTip.h
|
|
|
class Bildschirm; //! Bildschirm.h
|
|
class Bildschirm; //! Bildschirm.h
|
|
|
class Rahmen; //! Rahmen.h
|
|
class Rahmen; //! Rahmen.h
|
|
|
class AlphaFeld; //! AlphaFeld.h
|
|
class AlphaFeld; //! AlphaFeld.h
|
|
@@ -23,38 +23,33 @@ namespace Framework
|
|
|
class HScrollBar; //! Scroll.h
|
|
class HScrollBar; //! Scroll.h
|
|
|
class Schrift;
|
|
class Schrift;
|
|
|
|
|
|
|
|
- //! Eine Zeichnung für das 2D GUI Framework
|
|
|
|
|
|
|
+ //! A drawing element for the 2D GUI Framework
|
|
|
class Zeichnung : public virtual ReferenceCounter
|
|
class Zeichnung : public virtual ReferenceCounter
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
class Style
|
|
class Style
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
- //! Wenn dieser Style gesetzt ist, wird die Zeichnung beim Zeichnen
|
|
|
|
|
- //! angezeigt
|
|
|
|
|
|
|
+ //! If this style is set, the drawing is displayed when rendered
|
|
|
static const __int64 Sichtbar = 0x00001;
|
|
static const __int64 Sichtbar = 0x00001;
|
|
|
- //! Wenn dieser Style gesetzt ist, kann der Benutzer mit der
|
|
|
|
|
- //! Zeichnung interagieren
|
|
|
|
|
|
|
+ //! If this style is set, the user can interact with the drawing
|
|
|
static const __int64 Erlaubt = 0x00002;
|
|
static const __int64 Erlaubt = 0x00002;
|
|
|
- //! Wenn dieser Style gesetzt ist, wird ein TastaturEreignis von der
|
|
|
|
|
- //! Zeichnung verarbeitet
|
|
|
|
|
|
|
+ //! If this style is set, keyboard events are processed by the drawing
|
|
|
static const __int64 Fokus = 0x00004;
|
|
static const __int64 Fokus = 0x00004;
|
|
|
- //! Wenn dieser Style gesetzt ist, wird ein MausEreignis auch
|
|
|
|
|
- //! verarbeitet, wenn das Objekt nicht sichtbar ist
|
|
|
|
|
|
|
+ //! If this style is set, mouse events are processed even when
|
|
|
|
|
+ //! the object is not visible
|
|
|
static const __int64 MEIgnoreSichtbar = 0x0800000000000000;
|
|
static const __int64 MEIgnoreSichtbar = 0x0800000000000000;
|
|
|
- //! Wenn dieser Style gesetzt ist, lockt der Thread das Objekt
|
|
|
|
|
- //! während das MausEreignis verarbeitet wird
|
|
|
|
|
|
|
+ //! If this style is set, the thread locks the object while
|
|
|
|
|
+ //! the mouse event is being processed
|
|
|
static const __int64 MELockZeichnung = 0x1000000000000000;
|
|
static const __int64 MELockZeichnung = 0x1000000000000000;
|
|
|
- //! Wenn dieser Style gesetzt ist, wird ein MausEreignis auch
|
|
|
|
|
- //! verarbeitet, wenn es außerhalb der Zeichnung liegt
|
|
|
|
|
|
|
+ //! If this style is set, mouse events are processed even when
|
|
|
|
|
+ //! they are outside the drawing
|
|
|
static const __int64 MEIgnoreInside = 0x2000000000000000;
|
|
static const __int64 MEIgnoreInside = 0x2000000000000000;
|
|
|
- //! Wenn dieser Style gesetzt ist, wird ein MausEreignis auch
|
|
|
|
|
- //! verarbeitet, wenn es bereits von einer anderen Zeichnung
|
|
|
|
|
- //! verarbeitet wurde
|
|
|
|
|
|
|
+ //! If this style is set, mouse events are processed even when
|
|
|
|
|
+ //! they have already been processed by another drawing
|
|
|
static const __int64 MEIgnoreVerarbeitet = 0x4000000000000000;
|
|
static const __int64 MEIgnoreVerarbeitet = 0x4000000000000000;
|
|
|
- //! Wenn dieser Style gesetzt ist, wird ein MausEreignis auch
|
|
|
|
|
- //! verarbeitet, wenn es sich außerhalb der Zeichnung befindet, zu
|
|
|
|
|
- //! der diese Zeichnung gehört
|
|
|
|
|
|
|
+ //! If this style is set, mouse events are processed even when
|
|
|
|
|
+ //! they are outside the drawing to which this drawing belongs
|
|
|
static const __int64 MEIgnoreParentInside = 0x8000000000000000;
|
|
static const __int64 MEIgnoreParentInside = 0x8000000000000000;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -77,46 +72,43 @@ namespace Framework
|
|
|
std::function<bool(Zeichnung*, Punkt localPos)> onNeedToolTip;
|
|
std::function<bool(Zeichnung*, Punkt localPos)> onNeedToolTip;
|
|
|
bool toolTipRequested;
|
|
bool toolTipRequested;
|
|
|
|
|
|
|
|
- //! Verarbeitet ein Maus Ereignis. Wird vom Framework automatisch
|
|
|
|
|
- //! aufgerufen. \param me Das MausEreignis \param userRet true wenn
|
|
|
|
|
- //! MausEreignis::verarbeitet auf true gesetzt werden soll
|
|
|
|
|
|
|
+ //! Processes a mouse event. Called automatically by the framework.
|
|
|
|
|
+ //! \param me The mouse event \param userRet true if
|
|
|
|
|
+ //! MausEreignis::verarbeitet should be set to true
|
|
|
DLLEXPORT virtual void doMausEreignis(MausEreignis& me, bool userRet);
|
|
DLLEXPORT virtual void doMausEreignis(MausEreignis& me, bool userRet);
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
|
- //! Konstruktor
|
|
|
|
|
|
|
+ //! Constructor
|
|
|
DLLEXPORT Zeichnung();
|
|
DLLEXPORT Zeichnung();
|
|
|
- //! Destruktor
|
|
|
|
|
|
|
+ //! Destructor
|
|
|
DLLEXPORT virtual ~Zeichnung();
|
|
DLLEXPORT virtual ~Zeichnung();
|
|
|
- //! Legt fest, ob sich die Zeichnung seit des letzten Bildes verändert
|
|
|
|
|
- //! hat und neu gezeichnet werden muss
|
|
|
|
|
|
|
+ //! Specifies whether the drawing has changed since the last frame
|
|
|
|
|
+ //! and needs to be redrawn
|
|
|
DLLEXPORT void setRender();
|
|
DLLEXPORT void setRender();
|
|
|
- //! Setzt den Text, der erscheint, wenn der Benutzer für längere Zeit
|
|
|
|
|
- //! mit der Maus in der Zeichnung verweilt \param txt Der Text, der
|
|
|
|
|
- //! angezeigt werden soll \param zScreen Ein Zeiger auf das Verwendete
|
|
|
|
|
- //! Bildschirm Objekt ohne erhöhten Reference Counter \param zSchrift
|
|
|
|
|
- //! Ein Zeiger auf die Schrift, die verwendet werden soll ohne erhöhten
|
|
|
|
|
- //! Reference Counter
|
|
|
|
|
|
|
+ //! Sets the text that appears when the user hovers the mouse over
|
|
|
|
|
+ //! the drawing for a longer time \param txt The text to display
|
|
|
|
|
+ //! \param zScreen A pointer to the screen object without increased
|
|
|
|
|
+ //! reference counter \param zSchrift A pointer to the font to use
|
|
|
|
|
+ //! without increased reference counter
|
|
|
DLLEXPORT void setToolTipText(
|
|
DLLEXPORT void setToolTipText(
|
|
|
const char* txt, Bildschirm* zScreen, Schrift* zSchrift);
|
|
const char* txt, Bildschirm* zScreen, Schrift* zSchrift);
|
|
|
- //! setzt eine Funktion, die aufgerufen wird, falls ein Tooltip benötigt
|
|
|
|
|
- //! wird und noch keiner gesetzt wurde \param initToolTip die Funktion
|
|
|
|
|
|
|
+ //! Sets a function called when a tooltip is needed and none has
|
|
|
|
|
+ //! been set yet \param initToolTip The function
|
|
|
DLLEXPORT void setNeedToolTipEvent(
|
|
DLLEXPORT void setNeedToolTipEvent(
|
|
|
std::function<bool(Zeichnung*, Punkt localPos)> onNeedTooltip);
|
|
std::function<bool(Zeichnung*, Punkt localPos)> onNeedTooltip);
|
|
|
- //! legt den tooltip fest
|
|
|
|
|
- //! \param tt der tooltip
|
|
|
|
|
|
|
+ //! Sets the tooltip
|
|
|
|
|
+ //! \param tt The tooltip
|
|
|
DLLEXPORT void setToolTipZ(ToolTip* tt);
|
|
DLLEXPORT void setToolTipZ(ToolTip* tt);
|
|
|
- //! Dies ist notwendig, falls mehrere Threads gleichzeitig die Zeichnung
|
|
|
|
|
- //! benutzen. Wenn lockZeichnung() von zwei threads aufgerufen wird,
|
|
|
|
|
- //! wartet der letzte so lange, bis der erste unlockZeichnung()
|
|
|
|
|
- //! aufgerufen hat.
|
|
|
|
|
|
|
+ //! This is necessary if multiple threads use the drawing simultaneously.
|
|
|
|
|
+ //! If lockZeichnung() is called by two threads, the last one waits
|
|
|
|
|
+ //! until the first has called unlockZeichnung().
|
|
|
DLLEXPORT void lockZeichnung();
|
|
DLLEXPORT void lockZeichnung();
|
|
|
- //! Dies ist notwendig, falls mehrere Threads gleichzeitig die Zeichnung
|
|
|
|
|
- //! benutzen. Wenn lockZeichnung() von zwei threads aufgerufen wird,
|
|
|
|
|
- //! wartet der letzte so lange, bis der erste unlockZeichnung()
|
|
|
|
|
- //! aufgerufen hat.
|
|
|
|
|
|
|
+ //! This is necessary if multiple threads use the drawing simultaneously.
|
|
|
|
|
+ //! If lockZeichnung() is called by two threads, the last one waits
|
|
|
|
|
+ //! until the first has called unlockZeichnung().
|
|
|
DLLEXPORT void unlockZeichnung();
|
|
DLLEXPORT void unlockZeichnung();
|
|
|
- //! setzt den Parameter, der bei einem Maus Ereignis an die
|
|
|
|
|
- //! Rückruffunktion übergeben wird \param p Der Parameter
|
|
|
|
|
|
|
+ //! Sets the parameter passed to the callback function on a mouse event
|
|
|
|
|
+ //! \param p The parameter
|
|
|
DLLEXPORT void setMausEreignisParameter(void* p);
|
|
DLLEXPORT void setMausEreignisParameter(void* p);
|
|
|
//! Setzt den Parameter, der bei einem Tastatur Ereignis an die
|
|
//! Setzt den Parameter, der bei einem Tastatur Ereignis an die
|
|
|
//! Rückruffunktion übergeben wird \param p Der Parameter
|
|
//! Rückruffunktion übergeben wird \param p Der Parameter
|
|
@@ -125,89 +117,82 @@ namespace Framework
|
|
|
//! werden soll. Wenn die Rückruffunktion 0 zurückgiebt, oder nicht
|
|
//! werden soll. Wenn die Rückruffunktion 0 zurückgiebt, oder nicht
|
|
|
//! gesetzt wurde, wird ein Maus Ereignis von der Zeichnung nicht weiter
|
|
//! gesetzt wurde, wird ein Maus Ereignis von der Zeichnung nicht weiter
|
|
|
//! beachtet Es kann die Standartfunktion __ret1ME verwendet werden, die
|
|
//! beachtet Es kann die Standartfunktion __ret1ME verwendet werden, die
|
|
|
- //! in MausEreignis.h definiert ist und immer 1 zurückgibt \param ak Ein
|
|
|
|
|
- //! Zeiger auf die Rückruffunktion
|
|
|
|
|
|
|
+ //! in MausEreignis.h and always returns 1 \param ak A pointer to
|
|
|
|
|
+ //! the callback function
|
|
|
DLLEXPORT void setMausEreignis(MausAktion ak);
|
|
DLLEXPORT void setMausEreignis(MausAktion ak);
|
|
|
- //! Fügt eine Rückruffunktion hinzu, die bei einem Maus Ereignis aufgerufen
|
|
|
|
|
- //! werden soll. Wenn eine der Rückruffunktionen 0 zurückgiebt, oder keine
|
|
|
|
|
- //! gesetzt wurde, wird ein Maus Ereignis von der Zeichnung nicht weiter
|
|
|
|
|
- //! beachtet Es kann die Standartfunktion __ret1ME verwendet werden, die
|
|
|
|
|
- //! in MausEreignis.h definiert ist und immer 1 zurückgibt \param ak Ein
|
|
|
|
|
- //! Zeiger auf die Rückruffunktion
|
|
|
|
|
|
|
+ //! Adds a callback function to be called on a mouse event.
|
|
|
|
|
+ //! If any callback returns 0, or none was set, the mouse event
|
|
|
|
|
+ //! is not further processed by the drawing. The standard function
|
|
|
|
|
+ //! __ret1ME can be used, which is defined in MausEreignis.h and always
|
|
|
|
|
+ //! returns 1 \param ak A pointer to the callback function
|
|
|
DLLEXPORT void addMausEreignis(MausAktion ak);
|
|
DLLEXPORT void addMausEreignis(MausAktion ak);
|
|
|
- //! Setzt die Rückruffunktion, die bei einem Tastatur Ereignis
|
|
|
|
|
- //! aufgerufen werdne soll. Wenn die Rückruffunktion 0 zurückgiebt, oder
|
|
|
|
|
- //! nicht gesetzt wurde, wird ein Tastatur Ereignis von der Zeichnung
|
|
|
|
|
- //! nicht weiter beachtet Es kann die Standartfunktion __ret1TE
|
|
|
|
|
- //! verwendet werden, die in TastaturEreignis.h definiert ist und immer
|
|
|
|
|
- //! 1 zurückgibt Weitere Standartfunktionen sind _nurNummernTE und
|
|
|
|
|
- //! _nurHexTE ebenfals aus TastaturEreignis.h \param ak Ein Zeiger auf
|
|
|
|
|
- //! die Rückruffunktion
|
|
|
|
|
|
|
+ //! Sets the callback function to be called on a keyboard event.
|
|
|
|
|
+ //! If the callback returns 0, or was not set, the keyboard event
|
|
|
|
|
+ //! is not further processed by the drawing. The standard function
|
|
|
|
|
+ //! __ret1TE can be used, which is defined in TastaturEreignis.h and
|
|
|
|
|
+ //! always returns 1. Other standard functions are _nurNummernTE and
|
|
|
|
|
+ //! _nurHexTE also from TastaturEreignis.h \param ak A pointer to
|
|
|
|
|
+ //! the callback function
|
|
|
DLLEXPORT void setTastaturEreignis(TastaturAktion ak);
|
|
DLLEXPORT void setTastaturEreignis(TastaturAktion ak);
|
|
|
- //! Fügt eine Rückruffunktion hinzu, die bei einem Tastatur Ereignis
|
|
|
|
|
- //! aufgerufen werdne soll. Wenn eine der Rückruffunktionen 0 zurückgiebt, oder
|
|
|
|
|
- //! keine gesetzt wurde, wird ein Tastatur Ereignis von der Zeichnung
|
|
|
|
|
- //! nicht weiter beachtet Es kann die Standartfunktion __ret1TE
|
|
|
|
|
- //! verwendet werden, die in TastaturEreignis.h definiert ist und immer
|
|
|
|
|
- //! 1 zurückgibt Weitere Standartfunktionen sind _nurNummernTE und
|
|
|
|
|
- //! _nurHexTE ebenfals aus TastaturEreignis.h \param ak Ein Zeiger auf
|
|
|
|
|
- //! die Rückruffunktion
|
|
|
|
|
|
|
+ //! Adds a callback function to be called on a keyboard event.
|
|
|
|
|
+ //! If any callback returns 0, or none was set, the keyboard event
|
|
|
|
|
+ //! is not further processed by the drawing. The standard function
|
|
|
|
|
+ //! __ret1TE can be used, which is defined in TastaturEreignis.h and
|
|
|
|
|
+ //! always returns 1. Other standard functions are _nurNummernTE and
|
|
|
|
|
+ //! _nurHexTE also from TastaturEreignis.h \param ak A pointer to
|
|
|
|
|
+ //! the callback function
|
|
|
DLLEXPORT void addTastaturEreignis(TastaturAktion ak);
|
|
DLLEXPORT void addTastaturEreignis(TastaturAktion ak);
|
|
|
- //! setzt den Parameter, der bei einem Maus Ereignis an die
|
|
|
|
|
- //! Rückruffunktion übergeben wird, die aufgerufen wird, fals das
|
|
|
|
|
- //! Ereignis von der Zeichnung verarbeitet wurde \param p Der Parameter
|
|
|
|
|
|
|
+ //! Sets the parameter passed to the callback function on a mouse event
|
|
|
|
|
+ //! that is called after the event was processed by the drawing
|
|
|
|
|
+ //! \param p The parameter
|
|
|
DLLEXPORT void setNMausEreignisParameter(void* p);
|
|
DLLEXPORT void setNMausEreignisParameter(void* p);
|
|
|
- //! Setzt den Parameter, der bei einem Tastatur Ereignis an die
|
|
|
|
|
- //! Rückruffunktion übergeben wird, die aufgerufen wird, fals das
|
|
|
|
|
- //! Ereignis von der Zeichnung verarbeitet wurde \param p Der Parameter
|
|
|
|
|
|
|
+ //! Sets the parameter passed to the callback function on a keyboard
|
|
|
|
|
+ //! event that is called after the event was processed by the drawing
|
|
|
|
|
+ //! \param p The parameter
|
|
|
DLLEXPORT void setNTastaturEreignisParameter(void* p);
|
|
DLLEXPORT void setNTastaturEreignisParameter(void* p);
|
|
|
- //! Setzt die Rückruffunktion, die bei einem Maus Ereignis aufgerufen
|
|
|
|
|
- //! werden soll, nachdem das Ereignis bereits von der Zeichnung
|
|
|
|
|
- //! verarbeitet wurde Wenn die Rückruffunktion 1 zurückgiebt, oder nicht
|
|
|
|
|
- //! gesetzt wurde, wird das Maus Ereignis von keiner weiteren Zeichnung
|
|
|
|
|
- //! verarbeitet, die zum Beispiel hinter dieser Zeichnung liegen Es kann
|
|
|
|
|
- //! die Standartfunktion __ret1ME verwendet werden, die in
|
|
|
|
|
- //! MausEreignis.h definiert ist und immer 1 zurückgibt \param ak Ein
|
|
|
|
|
- //! Zeiger auf die Rückruffunktion
|
|
|
|
|
|
|
+ //! Sets the callback function to be called on a mouse event after
|
|
|
|
|
+ //! the event has already been processed by the drawing. If the callback
|
|
|
|
|
+ //! returns 1, or was not set, the mouse event will not be processed
|
|
|
|
|
+ //! by any other drawing, such as ones behind this drawing. The standard
|
|
|
|
|
+ //! function __ret1ME can be used, which is defined in MausEreignis.h
|
|
|
|
|
+ //! and always returns 1 \param ak A pointer to the callback function
|
|
|
DLLEXPORT void setNMausEreignis(MausAktion ak);
|
|
DLLEXPORT void setNMausEreignis(MausAktion ak);
|
|
|
- //! Setzt die Rückruffunktion, die bei einem Tastatur Ereignis
|
|
|
|
|
- //! aufgerufen werdne soll, nachdem das Ereignis bereits von der
|
|
|
|
|
- //! Zeichnung verarbeitet wurde Wenn die Rückruffunktion 1 zurückgiebt,
|
|
|
|
|
- //! oder nicht gesetzt wurde, wird das Tastatur Ereignis von keiner
|
|
|
|
|
- //! weiteren Zeichnung verarbeitet Es kann die Standartfunktion __ret1TE
|
|
|
|
|
- //! verwendet werden, die in TastaturEreignis.h definiert ist und immer
|
|
|
|
|
- //! 1 zurückgibt Weitere Standartfunktionen sind _nurNummernTE und
|
|
|
|
|
- //! _nurHexTE ebenfals aus TastaturEreignis.h \param ak Ein Zeiger auf
|
|
|
|
|
- //! die Rückruffunktion
|
|
|
|
|
|
|
+ //! Sets the callback function to be called on a keyboard event after
|
|
|
|
|
+ //! the event has already been processed by the drawing. If the callback
|
|
|
|
|
+ //! returns 1, or was not set, the keyboard event will not be processed
|
|
|
|
|
+ //! by any other drawing. The standard function __ret1TE can be used,
|
|
|
|
|
+ //! which is defined in TastaturEreignis.h and always returns 1. Other
|
|
|
|
|
+ //! standard functions are _nurNummernTE and _nurHexTE also from
|
|
|
|
|
+ //! TastaturEreignis.h \param ak A pointer to the callback function
|
|
|
DLLEXPORT void setNTastaturEreignis(TastaturAktion ak);
|
|
DLLEXPORT void setNTastaturEreignis(TastaturAktion ak);
|
|
|
- //! Verarbeitet ein Maus Ereignis. Wird vom Framework automatisch
|
|
|
|
|
- //! aufgerufen. \param me Das Ereignis
|
|
|
|
|
|
|
+ //! Processes a mouse event. Called automatically by the framework.
|
|
|
|
|
+ //! \param me The event
|
|
|
DLLEXPORT virtual void doPublicMausEreignis(MausEreignis& me);
|
|
DLLEXPORT virtual void doPublicMausEreignis(MausEreignis& me);
|
|
|
- //! Verarbeitet ein Tastatur Ereignis. Wird vom Framework automatisch
|
|
|
|
|
- //! aufgerufen \param te Das Ereignis
|
|
|
|
|
|
|
+ //! Processes a keyboard event. Called automatically by the framework
|
|
|
|
|
+ //! \param te The event
|
|
|
DLLEXPORT virtual void doTastaturEreignis(TastaturEreignis& te);
|
|
DLLEXPORT virtual void doTastaturEreignis(TastaturEreignis& te);
|
|
|
- //! Verarbeitet die Zeit, die seit dem letzten aufruf dieser Funktion
|
|
|
|
|
- //! vergangen ist \param tickVal Die vergangene Zeit in Sekunden
|
|
|
|
|
|
|
+ //! Processes the time elapsed since the last call of this function
|
|
|
|
|
+ //! \param tickVal The elapsed time in seconds
|
|
|
DLLEXPORT virtual bool tick(double tickval);
|
|
DLLEXPORT virtual bool tick(double tickval);
|
|
|
- //! Setzt die Position der Zeichnung
|
|
|
|
|
- //! \param pos Die Position in Pixeln
|
|
|
|
|
|
|
+ //! Sets the position of the drawing
|
|
|
|
|
+ //! \param pos The position in pixels
|
|
|
DLLEXPORT void setPosition(const Punkt& pos);
|
|
DLLEXPORT void setPosition(const Punkt& pos);
|
|
|
- //! Setzt die X Position der Zeichnung
|
|
|
|
|
- //! \param xPos Die Position in Pixeln
|
|
|
|
|
|
|
+ //! Sets the X position of the drawing
|
|
|
|
|
+ //! \param xPos The position in pixels
|
|
|
DLLEXPORT void setX(int xPos);
|
|
DLLEXPORT void setX(int xPos);
|
|
|
- //! Setzt die Y Position der Zeichnung
|
|
|
|
|
- //! \param yPos Die Position in Pixeln
|
|
|
|
|
|
|
+ //! Sets the Y position of the drawing
|
|
|
|
|
+ //! \param yPos The position in pixels
|
|
|
DLLEXPORT void setY(int yPos);
|
|
DLLEXPORT void setY(int yPos);
|
|
|
- //! Setzt die Größe der Zeichnung
|
|
|
|
|
- //! \param gr Ein Punkt mit x als Breite und y als Höhe in Pixeln
|
|
|
|
|
|
|
+ //! Sets the size of the drawing
|
|
|
|
|
+ //! \param gr A point with x as width and y as height in pixels
|
|
|
DLLEXPORT void setSize(const Punkt& gr);
|
|
DLLEXPORT void setSize(const Punkt& gr);
|
|
|
- //! Setzt die Position der Zeichnung
|
|
|
|
|
- //! \param x Die X Position in Pixeln
|
|
|
|
|
- //! \param y Die Y Position in Pixeln
|
|
|
|
|
|
|
+ //! Sets the position of the drawing
|
|
|
|
|
+ //! \param x The X position in pixels
|
|
|
|
|
+ //! \param y The Y position in pixels
|
|
|
DLLEXPORT void setPosition(int x, int y);
|
|
DLLEXPORT void setPosition(int x, int y);
|
|
|
- //! Setzt die Größe der Zeichnung
|
|
|
|
|
- //! \param br Die Breite in Pixeln
|
|
|
|
|
- //! \param height Die Höhe in Pixeln
|
|
|
|
|
|
|
+ //! Sets the size of the drawing
|
|
|
|
|
+ //! \param br The width in pixels
|
|
|
|
|
+ //! \param height The height in pixels
|
|
|
DLLEXPORT void setSize(int br, int height);
|
|
DLLEXPORT void setSize(int br, int height);
|
|
|
//! Set the width in pixel
|
|
//! Set the width in pixel
|
|
|
//! \param width the width
|
|
//! \param width the width
|
|
@@ -215,46 +200,44 @@ namespace Framework
|
|
|
//! Set the height in pixel
|
|
//! Set the height in pixel
|
|
|
//! \param width the height
|
|
//! \param width the height
|
|
|
DLLEXPORT void setHeight(int height);
|
|
DLLEXPORT void setHeight(int height);
|
|
|
- //! Setzt den Style der Zeichnung
|
|
|
|
|
- //! \param style Der neue Style bestehend aus den Flags aus der
|
|
|
|
|
- //! zugehörigen Style Klasse
|
|
|
|
|
|
|
+ //! Sets the style of the drawing
|
|
|
|
|
+ //! \param style The new style consisting of flags from the
|
|
|
|
|
+ //! corresponding Style class
|
|
|
DLLEXPORT void setStyle(__int64 style);
|
|
DLLEXPORT void setStyle(__int64 style);
|
|
|
- //! Setzt den Style der Zeichnung
|
|
|
|
|
- //! \param style Alle Style Flags, die verändert werden sollen
|
|
|
|
|
- //! \param add_remove 1, falls der Style hinzugefügt werden soll. 0,
|
|
|
|
|
- //! falls der Style entfernt weden soll
|
|
|
|
|
|
|
+ //! Sets the style of the drawing
|
|
|
|
|
+ //! \param style All style flags to be modified
|
|
|
|
|
+ //! \param add_remove 1 if the style should be added. 0 if the style
|
|
|
|
|
+ //! should be removed
|
|
|
DLLEXPORT void setStyle(__int64 style, bool add_remove);
|
|
DLLEXPORT void setStyle(__int64 style, bool add_remove);
|
|
|
- //! Fügt Style Flags hinzu
|
|
|
|
|
- //! \param style Der Style, der hinzugefügt werden soll
|
|
|
|
|
|
|
+ //! Adds style flags
|
|
|
|
|
+ //! \param style The style to add
|
|
|
DLLEXPORT void addStyle(__int64 style);
|
|
DLLEXPORT void addStyle(__int64 style);
|
|
|
- //! Entfernt Style Flags
|
|
|
|
|
- //! \param style Der Style, der entfernt werden soll
|
|
|
|
|
|
|
+ //! Removes style flags
|
|
|
|
|
+ //! \param style The style to remove
|
|
|
DLLEXPORT void removeStyle(__int64 style);
|
|
DLLEXPORT void removeStyle(__int64 style);
|
|
|
- //! Zeichnet die Zeihnung in ein bestimmtes Bild
|
|
|
|
|
- //! \param zRObj Das Bild, in das gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Renders the drawing into a specific image
|
|
|
|
|
+ //! \param zRObj The image to draw into
|
|
|
DLLEXPORT virtual void render(Bild& zRObj);
|
|
DLLEXPORT virtual void render(Bild& zRObj);
|
|
|
- //! Gibt zurück, ob eine Rückruffunktion für Maus Ereignisse gesetzt
|
|
|
|
|
- //! wurde
|
|
|
|
|
|
|
+ //! Returns whether a callback function for mouse events was set
|
|
|
DLLEXPORT bool hatMausEreignis() const;
|
|
DLLEXPORT bool hatMausEreignis() const;
|
|
|
- //! Gibt zurück, ob eine Rückruffunktion für Tastatur Ereignisse gesetzt
|
|
|
|
|
- //! wurde
|
|
|
|
|
|
|
+ //! Returns whether a callback function for keyboard events was set
|
|
|
DLLEXPORT bool hatTastaturEreignis() const;
|
|
DLLEXPORT bool hatTastaturEreignis() const;
|
|
|
- //! Gibt die Position der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the position of the drawing in pixels
|
|
|
DLLEXPORT const Punkt& getPosition() const;
|
|
DLLEXPORT const Punkt& getPosition() const;
|
|
|
- //! Gibt die Größe der Zeichnung in Pixeln zurück. x für Breite und y
|
|
|
|
|
- //! für Höhe
|
|
|
|
|
|
|
+ //! Returns the size of the drawing in pixels. x for width and y
|
|
|
|
|
+ //! for height
|
|
|
DLLEXPORT const Punkt& getSize() const;
|
|
DLLEXPORT const Punkt& getSize() const;
|
|
|
- //! Gibt die Breite der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the width of the drawing in pixels
|
|
|
DLLEXPORT int getBreite() const;
|
|
DLLEXPORT int getBreite() const;
|
|
|
- //! Gibt die Höhe der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the height of the drawing in pixels
|
|
|
DLLEXPORT int getHeight() const;
|
|
DLLEXPORT int getHeight() const;
|
|
|
- //! Gibt die Breite des Innenraumes in der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the inner width of the drawing in pixels
|
|
|
DLLEXPORT virtual int getInnenBreite() const;
|
|
DLLEXPORT virtual int getInnenBreite() const;
|
|
|
- //! Gibt die Höhe des Innenraumes in der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the inner height of the drawing in pixels
|
|
|
DLLEXPORT virtual int getInnenHeight() const;
|
|
DLLEXPORT virtual int getInnenHeight() const;
|
|
|
- //! Gibt die X Position der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the X position of the drawing in pixels
|
|
|
DLLEXPORT int getX() const;
|
|
DLLEXPORT int getX() const;
|
|
|
- //! Gibt die Y Position der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the Y position of the drawing in pixels
|
|
|
DLLEXPORT int getY() const;
|
|
DLLEXPORT int getY() const;
|
|
|
//! Prüft, ob ein Punkt in diesem Objekt liegt
|
|
//! Prüft, ob ein Punkt in diesem Objekt liegt
|
|
|
//! \param p der Punkt
|
|
//! \param p der Punkt
|
|
@@ -265,56 +248,51 @@ namespace Framework
|
|
|
//! \param y die y koordinate des punktes
|
|
//! \param y die y koordinate des punktes
|
|
|
//! \return 1, wenn der punkt innen ist, 0 sonst
|
|
//! \return 1, wenn der punkt innen ist, 0 sonst
|
|
|
DLLEXPORT virtual bool istPunktInnen(int x, int y) const;
|
|
DLLEXPORT virtual bool istPunktInnen(int x, int y) const;
|
|
|
- //! Gibt einen Zeiger auf das Tooltip Objekt zurück, walls es verwendet
|
|
|
|
|
- //! wird
|
|
|
|
|
|
|
+ //! Returns a pointer to the tooltip object, if it is used
|
|
|
DLLEXPORT ToolTip* getToolTip() const;
|
|
DLLEXPORT ToolTip* getToolTip() const;
|
|
|
- //! Gibt einen Zeiger auf das Tooltip Objekt ohne erhöhten Reference
|
|
|
|
|
- //! Counter zurück, walls es verwendet wird
|
|
|
|
|
|
|
+ //! Returns a pointer to the tooltip object without increased
|
|
|
|
|
+ //! reference counter, if it is used
|
|
|
DLLEXPORT ToolTip* zToolTip() const;
|
|
DLLEXPORT ToolTip* zToolTip() const;
|
|
|
- //! Gibt zurück, ob bestimmte Styles gesetzt wurden
|
|
|
|
|
- //! \param style Die Styles, die überprüft werden sollen
|
|
|
|
|
- //! \return 1, falls alle Styles in style gesetzt wurden
|
|
|
|
|
|
|
+ //! Returns whether specific styles are set
|
|
|
|
|
+ //! \param style The styles to check
|
|
|
|
|
+ //! \return 1 if all styles in style are set
|
|
|
DLLEXPORT bool hatStyle(__int64 style) const;
|
|
DLLEXPORT bool hatStyle(__int64 style) const;
|
|
|
- //! Gibt zurück, ob bestimmte Styles nicht gesetzt wurden
|
|
|
|
|
- //! \param style Die Styles, die geprüft werden sollen
|
|
|
|
|
- //! \return 1, falls alle Styles in style nicht gesetzt wurden
|
|
|
|
|
|
|
+ //! Returns whether specific styles are not set
|
|
|
|
|
+ //! \param style The styles to check
|
|
|
|
|
+ //! \return 1 if all styles in style are not set
|
|
|
DLLEXPORT bool hatStyleNicht(__int64 style) const;
|
|
DLLEXPORT bool hatStyleNicht(__int64 style) const;
|
|
|
//! returns all currently active styles
|
|
//! returns all currently active styles
|
|
|
DLLEXPORT __int64 getStyles() const;
|
|
DLLEXPORT __int64 getStyles() const;
|
|
|
- //! Kopiert die Komplette Zeichnung, so dass sie ohne Effekt auf das
|
|
|
|
|
- //! Original verändert werden kann
|
|
|
|
|
|
|
+ //! Copies the complete drawing so it can be modified without
|
|
|
|
|
+ //! affecting the original
|
|
|
DLLEXPORT virtual Zeichnung* dublizieren() const;
|
|
DLLEXPORT virtual Zeichnung* dublizieren() const;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- //! Eine Zeichnung für das 2D GUI Framework mit Hintergrund, Rahmen und
|
|
|
|
|
- //! Scroll Balken
|
|
|
|
|
|
|
+ //! A drawing element for the 2D GUI Framework with background, border
|
|
|
|
|
+ //! and scroll bars
|
|
|
class ZeichnungHintergrund : public Zeichnung
|
|
class ZeichnungHintergrund : public Zeichnung
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
class Style : public Zeichnung::Style
|
|
class Style : public Zeichnung::Style
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
- //! Wenn dieser Flag gesetzt wird, bekommt die Zeichnugn einen Rahmen
|
|
|
|
|
|
|
+ //! If this flag is set, the drawing gets a border
|
|
|
static const __int64 Rahmen = 0x00010;
|
|
static const __int64 Rahmen = 0x00010;
|
|
|
- //! Wenn dieser Flag gesetzt wird, bekommt die Zeichnung einen
|
|
|
|
|
- //! Hintergrund
|
|
|
|
|
|
|
+ //! If this flag is set, the drawing gets a background
|
|
|
static const __int64 Hintergrund = 0x00020;
|
|
static const __int64 Hintergrund = 0x00020;
|
|
|
- //! Wenn dieser Flag gesetzt wird, wird der Hintergrund durchsichtig.
|
|
|
|
|
- //! Benötigt Flag Hintergrund
|
|
|
|
|
|
|
+ //! If this flag is set, the background is transparent.
|
|
|
|
|
+ //! Requires flag Hintergrund
|
|
|
static const __int64 HAlpha = 0x00040;
|
|
static const __int64 HAlpha = 0x00040;
|
|
|
- //! Wenn dieser Flag gesetzt wird, wird ein Bild als hintergrund
|
|
|
|
|
- //! verwendet. Benötigt Flag Hintergrund
|
|
|
|
|
|
|
+ //! If this flag is set, an image is used as background.
|
|
|
|
|
+ //! Requires flag Hintergrund
|
|
|
static const __int64 HBild = 0x00080;
|
|
static const __int64 HBild = 0x00080;
|
|
|
- //! Wenn dieser Flag gesetzt wird, Erscheint ein Farbübergang als
|
|
|
|
|
- //! Rahmen
|
|
|
|
|
|
|
+ //! If this flag is set, a color gradient appears as border
|
|
|
static const __int64 Buffered = 0x00100;
|
|
static const __int64 Buffered = 0x00100;
|
|
|
- //! Wenn dieser Flag gesetzt wird, erscheint eine Scrollbar am
|
|
|
|
|
- //! rechten Rand
|
|
|
|
|
|
|
+ //! If this flag is set, a scrollbar appears at the right edge
|
|
|
static const __int64 VScroll = 0x00200;
|
|
static const __int64 VScroll = 0x00200;
|
|
|
- //! Wenn dieser Flag gesetzt wird, erscheint eine Scrollbar am
|
|
|
|
|
- //! unteren Rand
|
|
|
|
|
|
|
+ //! If this flag is set, a scrollbar appears at the bottom edge
|
|
|
static const __int64 HScroll = 0x00400;
|
|
static const __int64 HScroll = 0x00400;
|
|
|
- //! Wenn dieser Flag gesetzt wird, wird das Bild skaliert
|
|
|
|
|
|
|
+ //! If this flag is set, the image is scaled
|
|
|
static const __int64 HBildScale = 0x00800;
|
|
static const __int64 HBildScale = 0x00800;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -329,30 +307,27 @@ namespace Framework
|
|
|
Punkt innenSize;
|
|
Punkt innenSize;
|
|
|
|
|
|
|
|
protected:
|
|
protected:
|
|
|
- //! Verarbeitet Maus Nachrichten
|
|
|
|
|
- //! \param me Das Ereignis, was durch die Mauseingabe ausgelößt wurde
|
|
|
|
|
|
|
+ //! Processes mouse messages
|
|
|
|
|
+ //! \param me The event triggered by the mouse input
|
|
|
DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
|
|
DLLEXPORT void doMausEreignis(MausEreignis& me, bool userRet) override;
|
|
|
|
|
|
|
|
public:
|
|
public:
|
|
|
- //! Konstruktor
|
|
|
|
|
|
|
+ //! Constructor
|
|
|
DLLEXPORT ZeichnungHintergrund();
|
|
DLLEXPORT ZeichnungHintergrund();
|
|
|
- //! Destruktor
|
|
|
|
|
|
|
+ //! Destructor
|
|
|
DLLEXPORT virtual ~ZeichnungHintergrund();
|
|
DLLEXPORT virtual ~ZeichnungHintergrund();
|
|
|
- //! Setzt das Hintergrund Bild (benötigt Flag zum Zeichnen:
|
|
|
|
|
- //! Style::Hintergrund, HBild) \param bild Das Bild wird kopiert und als
|
|
|
|
|
- //! Hintergrundbild verwendet
|
|
|
|
|
|
|
+ //! Sets the background image (requires drawing flag:
|
|
|
|
|
+ //! Style::Hintergrund, HBild) \param bild The image is copied and used
|
|
|
|
|
+ //! as background image
|
|
|
DLLEXPORT void setHintergrundBild(Bild* bild);
|
|
DLLEXPORT void setHintergrundBild(Bild* bild);
|
|
|
- //! Setzt einen Zeiger auf das Hintergrund Bild (benötigt Flag zum
|
|
|
|
|
- //! Zeichnen: Style::Hintergrund) \param bild Das Bild wid ohne es zu
|
|
|
|
|
- //! kopieren verwendet
|
|
|
|
|
|
|
+ //! Sets a pointer to the background image (requires drawing flag:
|
|
|
|
|
+ //! Style::Hintergrund) \param bild The image is used without copying
|
|
|
DLLEXPORT void setHintergrundBildZ(Bild* bild);
|
|
DLLEXPORT void setHintergrundBildZ(Bild* bild);
|
|
|
- //! Setzt die Hintergrund Farbe (benötigt Flag zum Zeichnen:
|
|
|
|
|
- //! Style::Hintergrund) \param fc Die Hintergrundfarbe im A8R8G8B8
|
|
|
|
|
- //! Format
|
|
|
|
|
|
|
+ //! Sets the background color (requires drawing flag:
|
|
|
|
|
+ //! Style::Hintergrund) \param fc The background color in A8R8G8B8 format
|
|
|
DLLEXPORT void setHintergrundFarbe(int fc);
|
|
DLLEXPORT void setHintergrundFarbe(int fc);
|
|
|
- //! Setzt einen Zeiger auf das AlphaFeld (benötigt Flag zum Zeichnen:
|
|
|
|
|
- //! Style::Buffered) \param buff Das AlphaFeld, das über den Hintergrund
|
|
|
|
|
- //! gezeichnet werden soll
|
|
|
|
|
|
|
+ //! Sets a pointer to the AlphaFeld (requires drawing flag:
|
|
|
|
|
+ //! Style::Buffered) \param buff The AlphaFeld to draw over the background
|
|
|
DLLEXPORT void setAlphaFeldZ(AlphaFeld* buff);
|
|
DLLEXPORT void setAlphaFeldZ(AlphaFeld* buff);
|
|
|
//! Setzt die Stärke des AlphaFeldes (benötigt Flag zum Zeichnen:
|
|
//! Setzt die Stärke des AlphaFeldes (benötigt Flag zum Zeichnen:
|
|
|
//! Style::Buffered) \param st Die Stärke des AlphaFeldes, welches über
|
|
//! Style::Buffered) \param st Die Stärke des AlphaFeldes, welches über
|
|
@@ -362,103 +337,95 @@ namespace Framework
|
|
|
//! Style::Buffered) \param fc Die Farbe des AlphaFeldes, welches über
|
|
//! Style::Buffered) \param fc Die Farbe des AlphaFeldes, welches über
|
|
|
//! dem Hintergrund gezeichnet werden soll
|
|
//! dem Hintergrund gezeichnet werden soll
|
|
|
DLLEXPORT void setAlphaFeldFarbe(int fc);
|
|
DLLEXPORT void setAlphaFeldFarbe(int fc);
|
|
|
- //! Setzt einen Zeiger zu dem Linien Rahmen, der um das TextFeld
|
|
|
|
|
- //! gezeichnet werden soll (benötigt Flag zum Zeichnen: Style::Rahmen)
|
|
|
|
|
- //! \param ram Der Rahmen
|
|
|
|
|
|
|
+ //! Sets a pointer to the line border drawn around the text field
|
|
|
|
|
+ //! (requires drawing flag: Style::Rahmen)
|
|
|
|
|
+ //! \param ram The border
|
|
|
DLLEXPORT void setRahmenZ(Rahmen* ram);
|
|
DLLEXPORT void setRahmenZ(Rahmen* ram);
|
|
|
- //! Setzt die Breite des Linien Rahmens (benötigt Flag zum Zeichnen:
|
|
|
|
|
- //! Style::Rahmen) \param br Die Breite in Pixeln
|
|
|
|
|
|
|
+ //! Sets the width of the line border (requires drawing flag:
|
|
|
|
|
+ //! Style::Rahmen) \param br The width in pixels
|
|
|
DLLEXPORT void setRahmenBreite(int br);
|
|
DLLEXPORT void setRahmenBreite(int br);
|
|
|
- //! Setzt die Farbe des Linien Rahmens (benötigt Flag zum Zeichnen:
|
|
|
|
|
- //! Style::Rahmen) \param fc Die Farbe im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the color of the line border (requires drawing flag:
|
|
|
|
|
+ //! Style::Rahmen) \param fc The color in A8R8G8B8 format
|
|
|
DLLEXPORT void setRahmenFarbe(int fc);
|
|
DLLEXPORT void setRahmenFarbe(int fc);
|
|
|
- //! Setzt die Scrollgeschwindigkeit der vertikalen ScrollBar (benötigt
|
|
|
|
|
- //! Flag zum Zeichnen: Style::VScroll) \param ks Die
|
|
|
|
|
- //! Scrollgeschwindigkeit in Pixeln für jeden Maus Klick
|
|
|
|
|
|
|
+ //! Sets the scroll speed of the vertical scroll bar (requires drawing
|
|
|
|
|
+ //! flag: Style::VScroll) \param ks The scroll speed in pixels per mouse click
|
|
|
DLLEXPORT void setVertikalKlickScroll(int ks);
|
|
DLLEXPORT void setVertikalKlickScroll(int ks);
|
|
|
- //! Scrollt an eine Bestimmte Stelle bei der vertikalen ScrollBar
|
|
|
|
|
- //! (benötigt Flag zum Zeichnen: Style::VScroll) \param pos Das Scroll
|
|
|
|
|
- //! Offset in Pixeln.
|
|
|
|
|
|
|
+ //! Scrolls to a specific position on the vertical scroll bar
|
|
|
|
|
+ //! (requires drawing flag: Style::VScroll) \param pos The scroll offset in pixels
|
|
|
DLLEXPORT void setVertikalScrollPos(int pos);
|
|
DLLEXPORT void setVertikalScrollPos(int pos);
|
|
|
- //! Setzt die Farbe der vertikalen ScrollBar (benötigt Flag zum
|
|
|
|
|
- //! Zeichnen: Style::VScroll) \param f Die Fordergrundfarbe der
|
|
|
|
|
- //! ScrollBar im A8R8G8B8 Format \param bgF Die Hintergrundfarbe der
|
|
|
|
|
- //! ScrollBar im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the color of the vertical scroll bar (requires drawing flag:
|
|
|
|
|
+ //! Style::VScroll) \param f The foreground color in A8R8G8B8 format
|
|
|
|
|
+ //! \param bgF The background color in A8R8G8B8 format
|
|
|
DLLEXPORT void setVertikalScrollFarbe(int f, int bgF);
|
|
DLLEXPORT void setVertikalScrollFarbe(int f, int bgF);
|
|
|
- //! Setzt die Scrollgeschwindigkeit der horizontalen ScrollBar (benötigt
|
|
|
|
|
- //! Flag zum Zeichnen: Style::HScroll) \param ks Die
|
|
|
|
|
- //! Scrollgeschwindigkeit in Pixeln für jeden Maus Klick
|
|
|
|
|
|
|
+ //! Sets the scroll speed of the horizontal scroll bar (requires drawing
|
|
|
|
|
+ //! flag: Style::HScroll) \param ks The scroll speed in pixels per mouse click
|
|
|
DLLEXPORT void setHorizontalKlickScroll(int ks);
|
|
DLLEXPORT void setHorizontalKlickScroll(int ks);
|
|
|
- //! Scrollt an eine Bestimmte Stelle bei der horizontalen ScrollBar
|
|
|
|
|
- //! (benötigt Flag zum Zeichnen: Style::HScroll) \param pos Das Scroll
|
|
|
|
|
- //! Offset in Pixeln.
|
|
|
|
|
|
|
+ //! Scrolls to a specific position on the horizontal scroll bar
|
|
|
|
|
+ //! (requires drawing flag: Style::HScroll) \param pos The scroll offset in pixels
|
|
|
DLLEXPORT void setHorizontalScrollPos(int pos);
|
|
DLLEXPORT void setHorizontalScrollPos(int pos);
|
|
|
- //! Setzt die Farbe der horizontalen ScrollBar (benötigt Flag zum
|
|
|
|
|
- //! Zeichnen: Style::HScroll) \param f Die Fordergrundfarbe der
|
|
|
|
|
- //! ScrollBar im A8R8G8B8 Format \param bgF Die Hintergrundfarbe der
|
|
|
|
|
- //! ScrollBar im A8R8G8B8 Format
|
|
|
|
|
|
|
+ //! Sets the color of the horizontal scroll bar (requires drawing flag:
|
|
|
|
|
+ //! Style::HScroll) \param f The foreground color in A8R8G8B8 format
|
|
|
|
|
+ //! \param bgF The background color in A8R8G8B8 format
|
|
|
DLLEXPORT void setHorizontalScrollFarbe(int f, int bgF);
|
|
DLLEXPORT void setHorizontalScrollFarbe(int f, int bgF);
|
|
|
- //! Updated den Zeichenhintergrund
|
|
|
|
|
- //! \param tickVal Die vergangene Zeit in Sekunden, die seit dem Letzten
|
|
|
|
|
- //! Aufruf dieser Funktion verstrichen ist \return 1, wenn das Bild neu
|
|
|
|
|
- //! gezeichnet werden muss. 0 sonnst
|
|
|
|
|
|
|
+ //! Updates the drawing background
|
|
|
|
|
+ //! \param tickVal The elapsed time in seconds since the last call
|
|
|
|
|
+ //! of this function \return 1 if the image needs to be redrawn. 0 otherwise
|
|
|
DLLEXPORT bool tick(double tickVal) override;
|
|
DLLEXPORT bool tick(double tickVal) override;
|
|
|
- //! Zeichnet den Hintergrund eines Zeichnunges nach rObj
|
|
|
|
|
|
|
+ //! Renders the background of a drawing to rObj
|
|
|
DLLEXPORT void render(Bild& rObj) override;
|
|
DLLEXPORT void render(Bild& rObj) override;
|
|
|
|
|
|
|
|
- //! Gibt die Breite des Innenraumes in der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the inner width of the drawing in pixels
|
|
|
DLLEXPORT virtual int getInnenBreite() const override;
|
|
DLLEXPORT virtual int getInnenBreite() const override;
|
|
|
- //! Gibt die Höhe des Innenraumes in der Zeichnung in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the inner height of the drawing in pixels
|
|
|
DLLEXPORT virtual int getInnenHeight() const override;
|
|
DLLEXPORT virtual int getInnenHeight() const override;
|
|
|
- //! Gibt das Hintergrundbild zurück.
|
|
|
|
|
- //! \return 0, falls kein Hintergrundbild verwendet wird
|
|
|
|
|
|
|
+ //! Returns the background image.
|
|
|
|
|
+ //! \return 0 if no background image is used
|
|
|
DLLEXPORT Bild* getHintergrundBild() const;
|
|
DLLEXPORT Bild* getHintergrundBild() const;
|
|
|
- //! Gibt das Hintergrundbild ohne erhöhten reference Counter zurück.
|
|
|
|
|
- //! \return 0, falls kein Hintergrundbild verwendet wird
|
|
|
|
|
|
|
+ //! Returns the background image without increased reference counter.
|
|
|
|
|
+ //! \return 0 if no background image is used
|
|
|
DLLEXPORT Bild* zHintergrundBild() const;
|
|
DLLEXPORT Bild* zHintergrundBild() const;
|
|
|
- //! Gibt die Hintergrundfarbe im A8R8G8B8 Format zurück
|
|
|
|
|
|
|
+ //! Returns the background color in A8R8G8B8 format
|
|
|
DLLEXPORT int getHintergrundFarbe() const;
|
|
DLLEXPORT int getHintergrundFarbe() const;
|
|
|
- //! Gibt das AlphaFeld zurück, das über den Hintergrund gezeichnet wird.
|
|
|
|
|
- //! \return 0, falls das AlphaFeld nicht definiert wurde
|
|
|
|
|
|
|
+ //! Returns the AlphaFeld drawn over the background.
|
|
|
|
|
+ //! \return 0 if the AlphaFeld was not defined
|
|
|
DLLEXPORT AlphaFeld* getAlphaFeld() const;
|
|
DLLEXPORT AlphaFeld* getAlphaFeld() const;
|
|
|
- //! Gibt das AlphaFeld ohne erhöhten Reference Counter zurück, das über
|
|
|
|
|
- //! den Hintergrund gezeichnet wird. \return 0, falls das AlphaFeld
|
|
|
|
|
- //! nicht definiert wurde
|
|
|
|
|
|
|
+ //! Returns the AlphaFeld without increased reference counter drawn
|
|
|
|
|
+ //! over the background. \return 0 if the AlphaFeld was not defined
|
|
|
DLLEXPORT AlphaFeld* zAlphaFeld() const;
|
|
DLLEXPORT AlphaFeld* zAlphaFeld() const;
|
|
|
- //! Git die Stärke des Alphafeldes zurück
|
|
|
|
|
|
|
+ //! Returns the strength of the AlphaFeld
|
|
|
DLLEXPORT int getAlphaFeldStrength() const;
|
|
DLLEXPORT int getAlphaFeldStrength() const;
|
|
|
- //! Gibt die Farbe des Alphafedes im A8R8G8B8 Format zurück
|
|
|
|
|
|
|
+ //! Returns the color of the AlphaFeld in A8R8G8B8 format
|
|
|
DLLEXPORT int getAlphaFeldFarbe() const;
|
|
DLLEXPORT int getAlphaFeldFarbe() const;
|
|
|
- //! Gibt den Rahmen zurück
|
|
|
|
|
- //! \return 0, falls kein Rahmen definiert wurde
|
|
|
|
|
|
|
+ //! Returns the border
|
|
|
|
|
+ //! \return 0 if no border was defined
|
|
|
DLLEXPORT Rahmen* getRahmen() const;
|
|
DLLEXPORT Rahmen* getRahmen() const;
|
|
|
- //! Gibt den Rahmen ohne erhöhten Reference Counter zurück
|
|
|
|
|
- //! \return 0, falls kein Rahmen definiert wurde
|
|
|
|
|
|
|
+ //! Returns the border without increased reference counter
|
|
|
|
|
+ //! \return 0 if no border was defined
|
|
|
DLLEXPORT Rahmen* zRahmen() const;
|
|
DLLEXPORT Rahmen* zRahmen() const;
|
|
|
- //! Gibt die Breite des Rahmens in Pixeln zurück
|
|
|
|
|
|
|
+ //! Returns the width of the border in pixels
|
|
|
DLLEXPORT int getRahmenBreite() const;
|
|
DLLEXPORT int getRahmenBreite() const;
|
|
|
- //! Gibt die Farbe des Rahmens im A8R8G8B8 Format zurück
|
|
|
|
|
|
|
+ //! Returns the color of the border in A8R8G8B8 format
|
|
|
DLLEXPORT int getRahmenFarbe() const;
|
|
DLLEXPORT int getRahmenFarbe() const;
|
|
|
- //! Gibt die Scroll geschwindigkeit der vertikalen Scroll Bar zurück
|
|
|
|
|
|
|
+ //! Returns the scroll speed of the vertical scroll bar
|
|
|
DLLEXPORT int getVertikalKlickScroll() const;
|
|
DLLEXPORT int getVertikalKlickScroll() const;
|
|
|
- //! Gibt die Scroll Position der vertikalen Scroll Bar zurück
|
|
|
|
|
|
|
+ //! Returns the scroll position of the vertical scroll bar
|
|
|
DLLEXPORT int getVertikalScrollPos() const;
|
|
DLLEXPORT int getVertikalScrollPos() const;
|
|
|
- //! Gibt die Farbe der vertikalen Scroll Bar im A8R8G8B8 Format zurück
|
|
|
|
|
|
|
+ //! Returns the color of the vertical scroll bar in A8R8G8B8 format
|
|
|
DLLEXPORT int getVertikalScrollFarbe() const;
|
|
DLLEXPORT int getVertikalScrollFarbe() const;
|
|
|
- //! Gibt die Hintergrundfarbe der vertikalen Scroll Bar im A8R8G8B8
|
|
|
|
|
- //! Format zurück
|
|
|
|
|
|
|
+ //! Returns the background color of the vertical scroll bar in A8R8G8B8
|
|
|
|
|
+ //! format
|
|
|
DLLEXPORT int getVertikalScrollHintergrund() const;
|
|
DLLEXPORT int getVertikalScrollHintergrund() const;
|
|
|
- //! Gibt die Scroll geschwindigkeit der horizontalen Scroll Bar zurück
|
|
|
|
|
|
|
+ //! Returns the scroll speed of the horizontal scroll bar
|
|
|
DLLEXPORT int getHorizontalKlickScroll() const;
|
|
DLLEXPORT int getHorizontalKlickScroll() const;
|
|
|
- //! Gibt die Scroll Position der horizontalen Scroll Bar zurück
|
|
|
|
|
|
|
+ //! Returns the scroll position of the horizontal scroll bar
|
|
|
DLLEXPORT int getHorizontalScrollPos() const;
|
|
DLLEXPORT int getHorizontalScrollPos() const;
|
|
|
- //! Gibt die Farbe der horizontalen Scroll Bar im A8R8G8B8 Format zurück
|
|
|
|
|
|
|
+ //! Returns the color of the horizontal scroll bar in A8R8G8B8 format
|
|
|
DLLEXPORT int getHorizontalScrollFarbe() const;
|
|
DLLEXPORT int getHorizontalScrollFarbe() const;
|
|
|
- //! Gibt die Hintergrundfarbe der horizontalen Scroll Bar im A8R8G8B8
|
|
|
|
|
- //! Format zurück
|
|
|
|
|
|
|
+ //! Returns the background color of the horizontal scroll bar in A8R8G8B8
|
|
|
|
|
+ //! format
|
|
|
DLLEXPORT int getHorizontalScrollHintergrund() const;
|
|
DLLEXPORT int getHorizontalScrollHintergrund() const;
|
|
|
- //! Erzeugt eine Kopie der Zeichnung, die ohne Auswirkungen auf das
|
|
|
|
|
- //! Original verändert werden kann
|
|
|
|
|
|
|
+ //! Creates a copy of the drawing that can be modified without
|
|
|
|
|
+ //! affecting the original
|
|
|
DLLEXPORT virtual Zeichnung* dublizieren() const;
|
|
DLLEXPORT virtual Zeichnung* dublizieren() const;
|
|
|
};
|
|
};
|
|
|
} // namespace Framework
|
|
} // namespace Framework
|