gpt4 book ai didi

com.sun.jna.platform.unix.X11.XInternAtom()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 00:27:05 26 4
gpt4 key购买 nike

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

X11.XInternAtom介绍

暂无

代码示例

代码示例来源:origin: net.java.dev.jna/jna-platform

@Override
  public void run() {
    X11 x11 = X11.INSTANCE;
    Display dpy = x11.XOpenDisplay(null);
    if (dpy == null)
      return;
    try {
      X11.Window win = getDrawable(w);
      if (alpha == 1f) {
        x11.XDeleteProperty(dpy, win,
                  x11.XInternAtom(dpy, OPACITY,
                          false));
      }
      else {
        int opacity = (int)((long)(alpha * OPAQUE) & 0xFFFFFFFF);
        IntByReference patom = new IntByReference(opacity);
        x11.XChangeProperty(dpy, win,
                  x11.XInternAtom(dpy, OPACITY,
                          false),
                  X11.XA_CARDINAL, 32,
                  X11.PropModeReplace,
                  patom.getPointer(), 1);
      }
    }
    finally {
      x11.XCloseDisplay(dpy);
    }
  }
};

代码示例来源:origin: net.java.dev.jna/platform

public void run() {
    X11 x11 = X11.INSTANCE;
    Display dpy = x11.XOpenDisplay(null);
    if (dpy == null)
      return;
    try {
      X11.Window win = getDrawable(w);
      if (alpha == 1f) {
        x11.XDeleteProperty(dpy, win,
                  x11.XInternAtom(dpy, OPACITY,
                          false));
      }
      else {
        int opacity = (int)((long)(alpha * OPAQUE) & 0xFFFFFFFF);
        IntByReference patom = new IntByReference(opacity);
        x11.XChangeProperty(dpy, win,
                  x11.XInternAtom(dpy, OPACITY,
                          false),
                  X11.XA_CARDINAL, 32,
                  X11.PropModeReplace,
                  patom.getPointer(), 1);
      }
    }
    finally {
      x11.XCloseDisplay(dpy);
    }
  }
};

代码示例来源:origin: uk.co.caprica/vlcj

int result = sendClientMessage(display, Native.getWindowID(w), "_NET_WM_STATE", new NativeLong(fullScreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE), x.XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", false));
return result != 0;

代码示例来源:origin: uk.co.caprica/vlcj

event.xclient.serial = new NativeLong(0L);
event.xclient.send_event = TRUE;
event.xclient.message_type = x.XInternAtom(display, msg, false);
event.xclient.window = new com.sun.jna.platform.unix.X11.Window(wid);
event.xclient.format = 32;

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com