22 #ifndef GRAPHICS_MACGUI_MACWINDOWBORDER_H 23 #define GRAPHICS_MACGUI_MACWINDOWBORDER_H 25 #include "common/str.h" 26 #include "common/list.h" 28 #include "graphics/managed_surface.h" 29 #include "graphics/primitives.h" 36 class MacWindowManager;
37 class NinePatchBitmap;
40 kWindowBorderActive = 1 << 0,
41 kWindowBorderTitle = 1 << 1,
42 kWindowBorderScrollbar = 1 << 2,
44 kWindowBorderMaxFlag = 1 << 3
52 kWinBorderWin95Scrollbar = kBorderScroll + 0x00,
53 kWindowBorderWin95NoBorderScrollbar,
54 kWindowBorderMacOSNoBorderScrollbar
66 int upperScrollHeight;
67 int lowerScrollHeight;
85 bool hasBorder(uint32 flags);
94 void addBorder(
ManagedSurface *source, uint32 flags,
int titlePos = 0);
100 bool hasOffsets()
const;
114 void setOffsets(
int left,
int right,
int top,
int bottom);
139 void setScroll(
int scrollPos,
int scrollSize) { _scrollPos = scrollPos, _scrollSize = scrollSize; }
146 void setWindow(
MacWindow *window) { _window = window; }
148 void setBorderType(
int type);
150 void disableBorder();
154 void loadInternalBorder(uint32 flags);
156 void setBorder(
Graphics::ManagedSurface *surface, uint32 flags,
int lo = -1,
int ro = -1,
int to = -1,
int bo = -1);
159 int _scrollPos, _scrollSize;
168 bool _useInternalBorder;
Definition: managed_surface.h:51
Definition: macwindow.h:192
Definition: macwindowmanager.h:148
Definition: macwindowborder.h:57
Definition: formatinfo.h:28
Definition: macwindowborder.h:75