diff options
author | Borja Lorente | 2016-07-29 10:27:30 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-02 08:33:43 +0200 |
commit | bc798d9ff4d46ba758fa2d225cdd741f4c94ff18 (patch) | |
tree | 0b500c6fe1b753a224bbcc4ea279f1ede0934e17 /graphics/macgui/macwindow.h | |
parent | 2b586e7c5959c839323d24d1f788c9a836ece765 (diff) | |
download | scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.tar.gz scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.tar.bz2 scummvm-rg350-bc798d9ff4d46ba758fa2d225cdd741f4c94ff18.zip |
GRAPHICS: Add custom border measures
Diffstat (limited to 'graphics/macgui/macwindow.h')
-rw-r--r-- | graphics/macgui/macwindow.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/macgui/macwindow.h b/graphics/macgui/macwindow.h index ce5cd1a813..763e215c46 100644 --- a/graphics/macgui/macwindow.h +++ b/graphics/macgui/macwindow.h @@ -75,6 +75,8 @@ namespace MacWindowConstants { kBorderNone = 0, kBorderScrollUp, kBorderScrollDown, + kBorderScrollLeft, + kBorderScrollRight, kBorderCloseButton, kBorderInner, kBorderBorder, @@ -132,13 +134,18 @@ public: bool draw(ManagedSurface *g, bool forceRedraw = false); void setActive(bool active); + bool isActive(); + void setTitle(Common::String &title) { _title = title; } void setHighlight(WindowClick highlightedPart); void setScroll(float scrollPos, float scrollSize); bool processEvent(Common::Event &event); bool hasAllFocus() { return _beingDragged || _beingResized; } - void setBorder(TransparentSurface &border, bool active, int lo, int ro, int to, int bo); + void loadBorder(Common::SeekableReadStream &file, bool active, int lo, int ro, int to, int bo); + //void setBorder(TransparentSurface &border, bool active); + + void setCloseable(bool closeable); private: void drawBorder(); @@ -151,6 +158,10 @@ private: void updateInnerDims(); WindowClick isInBorder(int x, int y); + bool isInCloseButton(int x, int y); + bool isInResizeButton(int x, int y); + WindowClick isInScroll(int x, int y); + private: ManagedSurface _borderSurface; ManagedSurface _composeSurface; @@ -177,6 +188,8 @@ private: Common::String _title; }; + + } // End of namespace Graphics #endif |