本文整理了Java中org.eclipse.swt.widgets.Button.getBorder()
方法的一些代码示例,展示了Button.getBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getBorder()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:getBorder
暂无
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
height = hHint;
BoxDimensions border = getBorder();
width += border.left + border.right;
height += border.top + border.bottom;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
trimWidth += thickness.x * 2;
trimHeight += thickness.y * 2;
GtkBorder innerBorder = getBorder (OS.inner_border, handle, INNER_BORDER);
trimWidth += innerBorder.left + innerBorder.right;
trimHeight += innerBorder.top + innerBorder.bottom;
if (OS.gtk_widget_get_can_default (handle)) {
GtkBorder defaultBorder = getBorder (OS.default_border, handle, DEFAULT_BORDER);
trimWidth += defaultBorder.left + defaultBorder.right;
trimHeight += defaultBorder.top + defaultBorder.bottom;
GtkBorder border = getBorder (OS.default_border, handle, DEFAULT_BORDER);
if (wHint != SWT.DEFAULT) size.x += border.left + border.right;
if (hHint != SWT.DEFAULT) size.y += border.top + border.bottom;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
trimWidth += thickness.x * 2;
trimHeight += thickness.y * 2;
GtkBorder innerBorder = getBorder (OS.inner_border, handle, INNER_BORDER);
trimWidth += innerBorder.left + innerBorder.right;
trimHeight += innerBorder.top + innerBorder.bottom;
if (OS.gtk_widget_get_can_default (handle)) {
GtkBorder defaultBorder = getBorder (OS.default_border, handle, DEFAULT_BORDER);
trimWidth += defaultBorder.left + defaultBorder.right;
trimHeight += defaultBorder.top + defaultBorder.bottom;
GtkBorder border = getBorder (OS.default_border, handle, DEFAULT_BORDER);
if (wHint != SWT.DEFAULT) size.x += border.left + border.right;
if (hHint != SWT.DEFAULT) size.y += border.top + border.bottom;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
trimWidth += thickness.x * 2;
trimHeight += thickness.y * 2;
GtkBorder innerBorder = getBorder (OS.inner_border, handle, INNER_BORDER);
trimWidth += innerBorder.left + innerBorder.right;
trimHeight += innerBorder.top + innerBorder.bottom;
if (OS.gtk_widget_get_can_default (handle)) {
GtkBorder defaultBorder = getBorder (OS.default_border, handle, DEFAULT_BORDER);
trimWidth += defaultBorder.left + defaultBorder.right;
trimHeight += defaultBorder.top + defaultBorder.bottom;
GtkBorder border = getBorder (OS.default_border, handle, DEFAULT_BORDER);
if (wHint != SWT.DEFAULT) size.x += border.left + border.right;
if (hHint != SWT.DEFAULT) size.y += border.top + border.bottom;
内容来源于网络,如有侵权,请联系作者删除!