diff --git a/changes.txt b/changes.txt index 933c1978..7df37130 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ -------------------------- Changes in 1.9 (not yet released) +- Add getAlign functions to IGUIElement - Add optional multitouch support to X11 (but disabled in IrrCompileConfig by default). Thanks @TheBrokenRail for a patch proposal based on example code from esjeon (patch #322). - Slightly changed close window handling on X11 (optimized and avoids problems on some shells). Thanks @TheBrokenRail for a patch (was part of patch #322). - Add getActiveColor functions to IGUIStaticText and IGUIButton (get currently used color). diff --git a/include/IGUIElement.h b/include/IGUIElement.h index d5d0bace..5968430a 100644 --- a/include/IGUIElement.h +++ b/include/IGUIElement.h @@ -209,6 +209,29 @@ public: } } + //! How left element border is aligned when parent is resized + EGUI_ALIGNMENT getAlignLeft() const + { + return AlignLeft; + } + + //! How right element border is aligned when parent is resized + EGUI_ALIGNMENT getAlignRight() const + { + return AlignRight; + } + + //! How top element border is aligned when parent is resized + EGUI_ALIGNMENT getAlignTop() const + { + return AlignTop; + } + + //! How bottom element border is aligned when parent is resized + EGUI_ALIGNMENT getAlignBottom() const + { + return AlignBottom; + } //! Updates the absolute position. virtual void updateAbsolutePosition()