All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengl.GLXStereoNotifyEventEXT Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

import java.nio.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.MemoryUtil.*;

/**
 * 

Member documentation

* *
    *
  • {@code type} – GenericEvent
  • *
  • {@code serial} – \# of last request server processed
  • *
  • {@code send_event} – {@code True} if generated by {@code SendEvent} request
  • *
  • {@code display} – display the event was read from
  • *
  • {@code extension} – GLX major opcode, from {@code XQueryExtension}
  • *
  • {@code evtype} – always {@code GLX_STEREO_NOTIFY_EXT}
  • *
  • {@code window} – XID of the X window affected
  • *
  • {@code stereo_tree} – {@code True} if tree contains stereo windows
  • *
* *

Layout

* *
 * struct GLXStereoNotifyEventEXT {
 *     int type;
 *     unsigned long serial;
 *     Bool send_event;
 *     Display * display;
 *     int extension;
 *     int evtype;
 *     GLXDrawable window;
 *     Bool stereo_tree;
 * }
*/ public class GLXStereoNotifyEventEXT extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; public static final int ALIGNOF; /** The struct member offsets. */ public static final int TYPE, SERIAL, SEND_EVENT, DISPLAY, EXTENSION, EVTYPE, WINDOW, STEREO_TREE; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(4), __member(4), __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); TYPE = layout.offsetof(0); SERIAL = layout.offsetof(1); SEND_EVENT = layout.offsetof(2); DISPLAY = layout.offsetof(3); EXTENSION = layout.offsetof(4); EVTYPE = layout.offsetof(5); WINDOW = layout.offsetof(6); STEREO_TREE = layout.offsetof(7); } GLXStereoNotifyEventEXT(long address, ByteBuffer container) { super(address, container); } /** * Creates a {@link GLXStereoNotifyEventEXT} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be * visible to the struct instance and vice versa. * *

The created instance holds a strong reference to the container object.

*/ public GLXStereoNotifyEventEXT(ByteBuffer container) { this(memAddress(container), checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** Returns the value of the {@code type} field. */ public int type() { return ntype(address()); } /** Returns the value of the {@code serial} field. */ public long serial() { return nserial(address()); } /** Returns the value of the {@code send_event} field. */ public boolean send_event() { return nsend_event(address()) != 0; } /** Returns the value of the {@code display} field. */ public long display() { return ndisplay(address()); } /** Returns the value of the {@code extension} field. */ public int extension() { return nextension(address()); } /** Returns the value of the {@code evtype} field. */ public int evtype() { return nevtype(address()); } /** Returns the value of the {@code window} field. */ public long window() { return nwindow(address()); } /** Returns the value of the {@code stereo_tree} field. */ public boolean stereo_tree() { return nstereo_tree(address()) != 0; } // ----------------------------------- /** Returns a new {@link GLXStereoNotifyEventEXT} instance for the specified memory address or {@code null} if the address is {@code NULL}. */ public static GLXStereoNotifyEventEXT create(long address) { return address == NULL ? null : new GLXStereoNotifyEventEXT(address, null); } /** * Create a {@link GLXStereoNotifyEventEXT.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static Buffer create(long address, int capacity) { return address == NULL ? null : new Buffer(address, null, -1, 0, capacity, capacity); } // ----------------------------------- /** Unsafe version of {@link #type}. */ public static int ntype(long struct) { return memGetInt(struct + GLXStereoNotifyEventEXT.TYPE); } /** Unsafe version of {@link #serial}. */ public static long nserial(long struct) { return memGetAddress(struct + GLXStereoNotifyEventEXT.SERIAL); } /** Unsafe version of {@link #send_event}. */ public static int nsend_event(long struct) { return memGetInt(struct + GLXStereoNotifyEventEXT.SEND_EVENT); } /** Unsafe version of {@link #display}. */ public static long ndisplay(long struct) { return memGetAddress(struct + GLXStereoNotifyEventEXT.DISPLAY); } /** Unsafe version of {@link #extension}. */ public static int nextension(long struct) { return memGetInt(struct + GLXStereoNotifyEventEXT.EXTENSION); } /** Unsafe version of {@link #evtype}. */ public static int nevtype(long struct) { return memGetInt(struct + GLXStereoNotifyEventEXT.EVTYPE); } /** Unsafe version of {@link #window}. */ public static long nwindow(long struct) { return memGetAddress(struct + GLXStereoNotifyEventEXT.WINDOW); } /** Unsafe version of {@link #stereo_tree}. */ public static int nstereo_tree(long struct) { return memGetInt(struct + GLXStereoNotifyEventEXT.STEREO_TREE); } // ----------------------------------- /** An array of {@link GLXStereoNotifyEventEXT} structs. */ public static class Buffer extends StructBuffer { /** * Creates a new {@link GLXStereoNotifyEventEXT.Buffer} instance backed by the specified container. * * Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link GLXStereoNotifyEventEXT#SIZEOF}, and its mark will be undefined. * *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected Buffer newBufferInstance(long address, ByteBuffer container, int mark, int pos, int lim, int cap) { return new Buffer(address, container, mark, pos, lim, cap); } @Override protected GLXStereoNotifyEventEXT newInstance(long address) { return new GLXStereoNotifyEventEXT(address, container); } @Override protected int sizeof() { return SIZEOF; } /** Returns the value of the {@code type} field. */ public int type() { return GLXStereoNotifyEventEXT.ntype(address()); } /** Returns the value of the {@code serial} field. */ public long serial() { return GLXStereoNotifyEventEXT.nserial(address()); } /** Returns the value of the {@code send_event} field. */ public boolean send_event() { return GLXStereoNotifyEventEXT.nsend_event(address()) != 0; } /** Returns the value of the {@code display} field. */ public long display() { return GLXStereoNotifyEventEXT.ndisplay(address()); } /** Returns the value of the {@code extension} field. */ public int extension() { return GLXStereoNotifyEventEXT.nextension(address()); } /** Returns the value of the {@code evtype} field. */ public int evtype() { return GLXStereoNotifyEventEXT.nevtype(address()); } /** Returns the value of the {@code window} field. */ public long window() { return GLXStereoNotifyEventEXT.nwindow(address()); } /** Returns the value of the {@code stereo_tree} field. */ public boolean stereo_tree() { return GLXStereoNotifyEventEXT.nstereo_tree(address()) != 0; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy