single_pixel_buffer_v1 Module
*****************************


WpSinglePixelBufferManagerV1
============================

class pywayland.protocol.single_pixel_buffer_v1.WpSinglePixelBufferManagerV1

   Global factory for single-pixel buffers

   The "WpSinglePixelBufferManagerV1" interface is a factory for
   single-pixel buffers.

   destroy() -> 'None'

      -[ Request -- opcode 0 (attached to "Resource" instance) ]-

      Destroy the manager

      Destroy the "WpSinglePixelBufferManagerV1" object.

      The child objects created via this interface are unaffected.

   create_u32_rgba_buffer(r: 'int', g: 'int', b: 'int', a: 'int') -> 'WlBufferProxy'

      -[ Request -- opcode 1 (attached to "Resource" instance) ]-

      Create a 1×1 buffer from 32-bit rgba values

      Create a single-pixel buffer from four 32-bit RGBA values.

      Unless specified in another protocol extension, the RGBA values
      use pre-multiplied alpha.

      The width and height of the buffer are 1.

      The r, g, b and a arguments valid range is from UINT32_MIN (0)
      to UINT32_MAX (0xffffffff).

      These arguments should be interpreted as a percentage, i.e. -
      UINT32_MIN = 0% of the given color component - UINT32_MAX = 100%
      of the given color component

      Parameters:
         * **r** (*ArgumentType.Uint*) -- value of the buffer's red
           channel

         * **g** (*ArgumentType.Uint*) -- value of the buffer's green
           channel

         * **b** (*ArgumentType.Uint*) -- value of the buffer's blue
           channel

         * **a** (*ArgumentType.Uint*) -- value of the buffer's alpha
           channel

      Returns:
         "WlBuffer"
