/// <summary>
        /// create an xdg output from a wl_output
        /// <para>
        /// This creates a new xdg_output object for the given wl_output.
        /// </para>
        /// </summary>
        public ZxdgOutputV1 GetXdgOutput(WlOutput output)
        {
            uint id = Connection.AllocateId();

            Marshal((ushort)RequestOpcode.GetXdgOutput, id, output.Id);
            Connection[id] = new ZxdgOutputV1(id, Version, ClientConnection);
            return((ZxdgOutputV1)Connection[id]);
        }
 private void AddDisplay(WlOutput output)
 {
     // keep track of the output and listen for configuration events
     output.SetListener(
         OutputGeometryCallback,
         OutputModeCallback,
         OutputDoneCallback,
         OutputScaleCallback);
     _displays.Add(new Display((IntPtr)output.Pointer));
 }
Esempio n. 3
0
        public override void Bind(IntPtr client, IntPtr data, UInt32 version, UInt32 id)
        {
            WlOutput output = new WlOutput(client, 1, id);

            output.SendGeometry(0, 0, 1440, 900, 0, "apple", "apple", 0);
        }