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

jogamp.nativewindow.windows.RGBQUAD Maven / Gradle / Ivy

/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/JavaEmitter.java on Wed Mar 11 20:48:06 CET 2015 ----! */


package jogamp.nativewindow.windows;

import java.nio.*;

import com.jogamp.gluegen.runtime.*;
import com.jogamp.common.os.*;
import com.jogamp.common.nio.*;
import jogamp.common.os.MachineDataInfoRuntime;

import com.jogamp.nativewindow.util.Point;
import com.jogamp.nativewindow.NativeWindowException;
import jogamp.nativewindow.NWJNILibLoader;
import jogamp.nativewindow.Debug;

public class RGBQUAD {

  StructAccessor accessor;

  private static final int mdIdx = MachineDataInfoRuntime.getStatic().ordinal();
  private final MachineDataInfo md;

  private static final int[] RGBQUAD_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */  };
  private static final int[] rgbBlue_offset = new int[] { 0 /* ARM_MIPS_32 */, 0 /* X86_32_UNIX */, 0 /* X86_32_MACOS */, 0 /* PPC_32_UNIX */, 0 /* SPARC_32_SUNOS */, 0 /* X86_32_WINDOWS */, 0 /* LP64_UNIX */, 0 /* X86_64_WINDOWS */ };
//private static final int[] rgbBlue_size = new int[] { 1 /* ARM_MIPS_32 */, 1 /* X86_32_UNIX */, 1 /* X86_32_MACOS */, 1 /* PPC_32_UNIX */, 1 /* SPARC_32_SUNOS */, 1 /* X86_32_WINDOWS */, 1 /* LP64_UNIX */, 1 /* X86_64_WINDOWS */  };
  private static final int[] rgbGreen_offset = new int[] { 1 /* ARM_MIPS_32 */, 1 /* X86_32_UNIX */, 1 /* X86_32_MACOS */, 1 /* PPC_32_UNIX */, 1 /* SPARC_32_SUNOS */, 1 /* X86_32_WINDOWS */, 1 /* LP64_UNIX */, 1 /* X86_64_WINDOWS */ };
//private static final int[] rgbGreen_size = new int[] { 1 /* ARM_MIPS_32 */, 1 /* X86_32_UNIX */, 1 /* X86_32_MACOS */, 1 /* PPC_32_UNIX */, 1 /* SPARC_32_SUNOS */, 1 /* X86_32_WINDOWS */, 1 /* LP64_UNIX */, 1 /* X86_64_WINDOWS */  };
  private static final int[] rgbRed_offset = new int[] { 2 /* ARM_MIPS_32 */, 2 /* X86_32_UNIX */, 2 /* X86_32_MACOS */, 2 /* PPC_32_UNIX */, 2 /* SPARC_32_SUNOS */, 2 /* X86_32_WINDOWS */, 2 /* LP64_UNIX */, 2 /* X86_64_WINDOWS */ };
//private static final int[] rgbRed_size = new int[] { 1 /* ARM_MIPS_32 */, 1 /* X86_32_UNIX */, 1 /* X86_32_MACOS */, 1 /* PPC_32_UNIX */, 1 /* SPARC_32_SUNOS */, 1 /* X86_32_WINDOWS */, 1 /* LP64_UNIX */, 1 /* X86_64_WINDOWS */  };
  private static final int[] rgbReserved_offset = new int[] { 3 /* ARM_MIPS_32 */, 3 /* X86_32_UNIX */, 3 /* X86_32_MACOS */, 3 /* PPC_32_UNIX */, 3 /* SPARC_32_SUNOS */, 3 /* X86_32_WINDOWS */, 3 /* LP64_UNIX */, 3 /* X86_64_WINDOWS */ };
//private static final int[] rgbReserved_size = new int[] { 1 /* ARM_MIPS_32 */, 1 /* X86_32_UNIX */, 1 /* X86_32_MACOS */, 1 /* PPC_32_UNIX */, 1 /* SPARC_32_SUNOS */, 1 /* X86_32_WINDOWS */, 1 /* LP64_UNIX */, 1 /* X86_64_WINDOWS */  };

  public static int size() {
    return RGBQUAD_size[mdIdx];
  }

  public static RGBQUAD create() {
    return create(Buffers.newDirectByteBuffer(size()));
  }

  public static RGBQUAD create(java.nio.ByteBuffer buf) {
      return new RGBQUAD(buf);
  }

  RGBQUAD(java.nio.ByteBuffer buf) {
    md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
    accessor = new StructAccessor(buf);
  }

  public java.nio.ByteBuffer getBuffer() {
    return accessor.getBuffer();
  }

  /** Setter for native field rgbBlue: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public RGBQUAD setRgbBlue(byte val) {
    accessor.setByteAt(rgbBlue_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field rgbBlue: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public byte getRgbBlue() {
    return accessor.getByteAt(rgbBlue_offset[mdIdx]);
  }

  /** Setter for native field rgbGreen: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public RGBQUAD setRgbGreen(byte val) {
    accessor.setByteAt(rgbGreen_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field rgbGreen: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public byte getRgbGreen() {
    return accessor.getByteAt(rgbGreen_offset[mdIdx]);
  }

  /** Setter for native field rgbRed: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public RGBQUAD setRgbRed(byte val) {
    accessor.setByteAt(rgbRed_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field rgbRed: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public byte getRgbRed() {
    return accessor.getByteAt(rgbRed_offset[mdIdx]);
  }

  /** Setter for native field rgbReserved: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public RGBQUAD setRgbReserved(byte val) {
    accessor.setByteAt(rgbReserved_offset[mdIdx], val);
    return this;
  }

  /** Getter for native field rgbReserved: CType[(IntType) typedef 'BYTE', size [fixed true, lnx64 1], [const[false], int]] */
  public byte getRgbReserved() {
    return accessor.getByteAt(rgbReserved_offset[mdIdx]);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy