MCPcopy Create free account
hub / github.com/HumbleUI/JWM / setIconData

Method setIconData

linux/java/WindowX11.java:108–114  ·  view source on GitHub ↗

Set window icon from raw image bytes. data must have a length of width height 4, representing per-pixel ARGB data. @param width icon width in pixels @param height icon height in pixels @param data icon image data @return this

(int width, int height, byte[] data)

Source from the content-addressed store, hash-verified

106 * @return this
107 */
108 @NotNull @Contract("-> this")
109 public Window setIconData(int width, int height, byte[] data) {
110 assert _onUIThread() : "Should be run on UI thread";
111 assert data.length == width*height*4 : "Incorrect icon data array length";
112 _nSetIconData(width, height, data);
113 return this;
114 }
115
116 @Override
117 public Window setTitlebarVisible(boolean value) {

Callers

nothing calls this directly

Calls 2

_nSetIconDataMethod · 0.95
_onUIThreadMethod · 0.45

Tested by

no test coverage detected