Phoc.Cursor.set_image

### Method

# Phoc Cursorset_image

#### Declaration [src]

    void
    phoc_cursor_set_image (
      PhocCursor* self,
      wl_client* client,
      wlr_surface* surface,
      int32_t hotspot_x,
      int32_t hotspot_y
    )

#### Description [src]

Set the cursor image via a surface. To use an image from the cursor theme see `phoc_cursor_set_image()`.

#### Parameters

`client`

  Type: `wl_client*`

  The client to set the image for.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`surface`

  Type: `wlr_surface*`

  The image surface to use.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`hotspot_x`

  Type: `int32_t`

  The x coordinate of the hotspot on the surface.

`hotspot_y`

  Type: `int32_t`

  The y coordinate of the hotspot on the surface.