summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
diff options
context:
space:
mode:
authorLakshmi Shanmugam <lshanmug@in.ibm.com>2012-02-24 17:59:22 +0530
committerLakshmi Shanmugam <lshanmug@in.ibm.com>2012-02-24 17:59:22 +0530
commit67d2c3a2030f152815bf563d9ce1b6fb14017009 (patch)
tree1fd96d5675ef3033075892dd5b371267d260c3cd /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
parent07ba1f64d20ad9c9857ad10a1871bf9d36485875 (diff)
downloadeclipse.platform.swt-67d2c3a2030f152815bf563d9ce1b6fb14017009.tar.gz
eclipse.platform.swt-67d2c3a2030f152815bf563d9ce1b6fb14017009.tar.xz
eclipse.platform.swt-67d2c3a2030f152815bf563d9ce1b6fb14017009.zip
Bug 355683-[10.7]API to tell whether scrollbars are overlay
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java
index 73bfc18af0..82a8b138a8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Scrollable.java
@@ -199,6 +199,32 @@ public ScrollBar getHorizontalBar () {
}
/**
+ * Returns the mode of the receiver's scrollbars. This will be
+ * <em>bitwise</em> OR of one or more of the constants defined in class
+ * <code>SWT</code>.<br>
+ * <li><code>SWT.SCROLLBAR_OVERLAY</code> - if receiver
+ * uses overlay scrollbars</li>
+ * <li><code>SWT.NONE</code> - otherwise</li>
+ *
+ * @return the mode of scrollbars
+ *
+ * @exception SWTException <ul>
+ * <li>ERROR_WIDGET_DISPOSED - if the receiver has been
+ * disposed</li>
+ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
+ * thread that created the receiver</li>
+ * </ul>
+ *
+ * @see SWT#SCROLLBAR_OVERLAY
+ *
+ * @since 3.8
+ */
+public int getScrollbarsMode () {
+ checkWidget();
+ return SWT.NONE;
+}
+
+/**
* Returns the receiver's vertical scroll bar if it has
* one, and null if it does not.
*