本文整理了Java中org.eclipse.swt.widgets.ToolBar.getDrawing()
方法的一些代码示例,展示了ToolBar.getDrawing()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToolBar.getDrawing()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ToolBar
类名称:ToolBar
方法名:getDrawing
暂无
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
boolean getDrawing () {
return parent.getDrawing ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void relayout () {
if (!getDrawing()) return;
Rectangle rect = getClientArea ();
layout (rect.width, rect.height, true);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
void setBoundsInPixels (int x, int y, int width, int height, int flags) {
/*
* Feature in Windows. For some reason, when a tool bar is
* repositioned more than once using DeferWindowPos () into
* the same HDWP, the toolbar redraws more than once, defeating
* the purpose of DeferWindowPos (). The fix is to end the
* deferred positioning before the next tool bar is added,
* ensuring that only one tool bar position is deferred at
* any given time.
*/
if (parent.lpwp != null) {
if (getDrawing () && OS.IsWindowVisible (handle)) {
parent.setResizeChildren (false);
parent.setResizeChildren (true);
}
}
super.setBoundsInPixels (x, y, width, height, flags);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int newWidth = wHint == SWT.DEFAULT ? 0x3FFF : wHint + border * 2;
int newHeight = hHint == SWT.DEFAULT ? 0x3FFF : hHint + border * 2;
boolean redraw = getDrawing () && OS.IsWindowVisible (handle);
ignoreResize = true;
if (redraw) OS.UpdateWindow (handle);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (!getDrawing ()) return result;
if ((style & SWT.WRAP) == 0) return result;
if (!OS.IsWindowVisible (handle)) return result;
内容来源于网络,如有侵权,请联系作者删除!