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

x33g5p2x  于2022-01-29 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(98)

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

Text.translateOffset介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);
if ((style & SWT.SINGLE) != 0) {
  OS.gtk_entry_set_max_length (handle, segments != null ? Math.min (LIMIT, translateOffset (limit)) : limit);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);
if ((style & SWT.SINGLE) != 0) {
  OS.gtk_entry_set_max_length (handle, segments != null ? Math.min (LIMIT, translateOffset (limit)) : limit);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);
if ((style & SWT.SINGLE) != 0) {
  OS.gtk_entry_set_max_length (handle, segments != null ? Math.min (LIMIT, translateOffset (limit)) : limit);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

start = translateOffset (start);
end = translateOffset (end);
if (!OS.IsUnicode && OS.IsDBLocale) {
  start = wcsToMbcsPos (start);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

start = translateOffset (start);
if (!OS.IsUnicode && OS.IsDBLocale) start = wcsToMbcsPos (start);
OS.SendMessage (handle, OS.EM_SETSEL, start, start);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

start = translateOffset (start);
end = translateOffset (end);
if ((style & SWT.SINGLE) != 0) {
  int /*long*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

start = translateOffset (start);
end = translateOffset (end);
if ((style & SWT.SINGLE) != 0) {
  int /*long*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

start = translateOffset (start);
end = translateOffset (end);
if ((style & SWT.SINGLE) != 0) {
  long /*int*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

OS.SendMessage (handle, OS.EM_REPLACESEL, undo, buffer);
start [0] = translateOffset (start [0]);
end [0] = translateOffset (end [0]);
if (!OS.IsUnicode && OS.IsDBLocale) {
  start [0] = wcsToMbcsPos (start [0]);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int position = translateOffset (getCaretPosition ());
int /*long*/ caretPos = OS.SendMessage (handle, OS.EM_POSFROMCHAR, position, 0);
if (caretPos == -1) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

start = translateOffset (start);
if ((style & SWT.SINGLE) != 0) {
  int /*long*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

start = translateOffset (start);
if ((style & SWT.SINGLE) != 0) {
  long /*int*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

start = translateOffset (start);
if ((style & SWT.SINGLE) != 0) {
  int /*long*/ ptr = OS.gtk_entry_get_text (handle);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);
int limit = OS.gtk_entry_get_max_length (handle);
if (limit != 0) OS.gtk_entry_set_max_length (handle, translateOffset (limit));
int [] pos = new int [1];
for (int i = 0; i < nSegments; i++) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);
int limit = OS.gtk_entry_get_max_length (handle);
if (limit != 0) OS.gtk_entry_set_max_length (handle, translateOffset (limit));
int [] pos = new int [1];
for (int i = 0; i < nSegments; i++) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, INSERT_TEXT);
int limit = OS.gtk_entry_get_max_length (handle);
if (limit != 0) OS.gtk_entry_set_max_length (handle, translateOffset (limit));
int [] pos = new int [1];
for (int i = 0; i < nSegments; i++) {

相关文章

Text类方法