本文整理了Java中org.eclipse.swt.widgets.DateTime.getGtkBorderPadding()
方法的一些代码示例,展示了DateTime.getGtkBorderPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateTime.getGtkBorderPadding()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.DateTime
类名称:DateTime
方法名:getGtkBorderPadding
[英]Gets the border padding structure, which can be used to determine the inner padding of the text field. Note, this function returns the correct padding only under GTK3. Under Gtk2, it returns a constant.
[中]获取边框填充结构,该结构可用于确定文本字段的内部填充。注意,此函数仅在GTK3下返回正确的填充。在Gtk2下,它返回一个常量。
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
int oldHeight = requisition.height; //Entry should not expand vertically. It is single liner.
int newWidth = width - (down.getSizeInPixels ().x + getGtkBorderPadding ().right);
OS.gtk_widget_set_size_request (textEntryHandle, (newWidth >= 0) ? newWidth : 0, oldHeight);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
int oldHeight = requisition.height; //Entry should not expand vertically. It is single liner.
int newWidth = width - (down.getSizeInPixels ().x + getGtkBorderPadding ().right);
OS.gtk_widget_set_size_request (textEntryHandle, (newWidth >= 0) ? newWidth : 0, oldHeight);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
int oldHeight = requisition.height; //Entry should not expand vertically. It is single liner.
int newWidth = width - (down.getSizeInPixels ().x + getGtkBorderPadding ().right);
OS.gtk_widget_set_size_request (textEntryHandle, (newWidth >= 0) ? newWidth : 0, oldHeight);
内容来源于网络,如有侵权,请联系作者删除!