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

com.github.moaxcp.x11client.protocol.randr.NotifyDataUnion Maven / Gradle / Ivy

There is a newer version: 0.18.2
Show newest version
package com.github.moaxcp.x11client.protocol.randr;

import com.github.moaxcp.x11client.protocol.X11Input;
import com.github.moaxcp.x11client.protocol.X11Output;
import com.github.moaxcp.x11client.protocol.XObject;
import java.io.IOException;

public interface NotifyDataUnion extends XObject {
  static NotifyDataUnion readNotifyDataUnion(X11Input in, byte subCode) throws IOException {
    switch(subCode) {
      case 0:
        return CrtcChange.readCrtcChange(in);
      case 1:
        return OutputChange.readOutputChange(in);
      case 2:
        return OutputProperty.readOutputProperty(in);
      case 3:
        return ProviderChange.readProviderChange(in);
      case 4:
        return ProviderProperty.readProviderProperty(in);
      case 5:
        return ResourceChange.readResourceChange(in);
      case 6:
        return LeaseNotify.readLeaseNotify(in);
      default:
        throw new IllegalArgumentException("implementation not found for subCode \"" + subCode + "\"");
    }
  }

  void write(X11Output in) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy