Home | History | Annotate | Download | only in wx

Lines Matching refs:scrollbar

33 #include "Scrollbar.h"
67 bool ScrollbarThemeWx::hasThumb(Scrollbar* scrollbar)
71 return thumbLength(scrollbar) > 0;
74 int ScrollbarThemeWx::minimumThumbLength(Scrollbar* scrollbar)
79 IntSize ScrollbarThemeWx::buttonSize(Scrollbar*)
88 void ScrollbarThemeWx::splitTrack(Scrollbar* scrollbar, const IntRect& unconstrainedTrackRect, IntRect& beforeThumbRect, IntRect& thumbRect, IntRect& afterThumbRect)
90 ScrollbarThemeComposite::splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect, afterThumbRect);
95 if (scrollbar->orientation() == HorizontalScrollbar) {
105 IntRect ScrollbarThemeWx::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool)
112 IntSize size = buttonSize(scrollbar);
113 int x = scrollbar->x();
114 int y = scrollbar->y();
117 if (scrollbar->orientation() == HorizontalScrollbar)
118 x += scrollbar->width() - (size.width() * 2) + cMacButtonOverlap;
120 y += scrollbar->height() - (size.height() * 2) + cMacButtonOverlap;
126 IntRect ScrollbarThemeWx::forwardButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool)
133 IntSize size = buttonSize(scrollbar);
135 if (scrollbar->orientation() == HorizontalScrollbar) {
139 x = scrollbar->x() + scrollbar->width() - size.width();
140 y = scrollbar->y();
142 x = scrollbar->x();
146 y = scrollbar->y() + scrollbar->height() - size.height();
151 IntRect ScrollbarThemeWx::trackRect(Scrollbar* scrollbar, bool)
153 IntSize bs = buttonSize(scrollbar);
155 if (scrollbar->orientation() == HorizontalScrollbar)
164 int thickness = scrollbarThickness(scrollbar->controlSize());
165 if (scrollbar->orientation() == HorizontalScrollbar) {
166 if (scrollbar->width() < 2 * thickness)
168 return IntRect(scrollbar->x() + trackStart, scrollbar->y(), scrollbar->width() - 2 * bs.width(), thickness);
170 if (scrollbar->height() < 2 * thickness)
172 return IntRect(scrollbar->x(), scrollbar->y() + trackStart, thickness, scrollbar->height() - 2 * bs.height());
180 // scrollbar corner rendering, which ScrollbarThemeComposite supports.
184 bool ScrollbarThemeWx::paint(Scrollbar* scrollbar, GraphicsContext* context, const IntRect& rect)
186 wxOrientation orientation = (scrollbar->orientation() == HorizontalScrollbar) ? wxHORIZONTAL : wxVERTICAL;
188 if (scrollbar->scrollableArea()->isActive())
191 if (!scrollbar->enabled())
197 ScrollView* root = scrollbar->root();
204 wxRenderer_DrawScrollbar(webview, *dc, scrollbar->frameRect(), orientation, scrollbar->currentPos(), static_cast<wxScrollbarPart>(scrollbar->pressedPart()),
205 static_cast<wxScrollbarPart>(scrollbar->hoveredPart()), scrollbar->maximum(), scrollbar->pageStep(), flags);