
org.freedesktop.wayland.server.Global Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stubs-server Show documentation
Show all versions of stubs-server Show documentation
Wayland protocol Java-language Binding Stubs
The newest version!
//Copyright 2015 Erik De Rijcke
//
//Licensed under the Apache License,Version2.0(the"License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing,software
//distributed under the License is distributed on an"AS IS"BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
package org.freedesktop.wayland.server;
import org.freedesktop.jaccall.Pointer;
import org.freedesktop.jaccall.Ptr;
import org.freedesktop.jaccall.Unsigned;
import org.freedesktop.wayland.server.jaccall.WaylandServerCore;
import org.freedesktop.wayland.server.jaccall.wl_global_bind_func_t;
import org.freedesktop.wayland.util.InterfaceMeta;
import org.freedesktop.wayland.util.ObjectCache;
import static org.freedesktop.wayland.server.jaccall.Pointerwl_global_bind_func_t.nref;
public abstract class Global> {
private static final Pointer FUNC_T_POINTER = nref(new wl_global_bind_func_t() {
@Override
public void $(@Ptr final long client,
@Ptr(Object.class) final long data,
@Unsigned final int version,
@Unsigned final int id) {
final Global> global = (Global>) Pointer.wrap(Object.class,
data)
.dref();
global.onBindClient(Client.get(client),
version,
id);
}
});
private final Long pointer;
private final Pointer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy