org.eclipse.swt.widgets.Button.getBorder()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.eclipse.swt.widgets.Button.getBorder()方法的一些代码示例,展示了Button.getBorder()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getBorder()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:getBorder

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;

相关文章

Button类方法