third_party/cairo/src/cairo-os2-surface.c
cairo_status_t
cairo_os2_surface_set_hps (cairo_surface_t *surface,
                           HPS              hps)
{
    cairo_os2_surface_t *local_os2_surface;

    local_os2_surface = (cairo_os2_surface_t *) surface;
    if ((!local_os2_surface) ||
        (local_os2_surface->base.backend != &cairo_os2_surface_backend))
    {
        /* Invalid parameter (wrong surface)! */
        return _cairo_error (CAIRO_STATUS_SURFACE_TYPE_MISMATCH);
    }
    local_os2_surface->hps_client_window = hps;

    return CAIRO_STATUS_SUCCESS;
}
/**
 * cairo_os2_surface_set_hps:
 * @surface: the cairo surface to associate with the HPS
 * @hps: new HPS to be associated with the surface (the HPS may be null)
 *
 * This API replaces the HPS associated with the surface with a new one.
 * The caller retains ownership of the HPS and must dispose of it after
 * the surface has been destroyed or it has been replaced by another
 * call to this function.
 *
 * Return value: %CAIRO_STATUS_SUCCESS if the hps could be replaced,
 * %CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface is not an OS/2 surface,
 *
 * Since: 1.10
 **/
@surface: the cairo surface to associate with the HPS
@hps: new HPS to be associated with the surface (the HPS may be null)

This API replaces the HPS associated with the surface with a new one.
The caller retains ownership of the HPS and must dispose of it after
the surface has been destroyed or it has been replaced by another
call to this function.

Return value: %CAIRO_STATUS_SUCCESS if the hps could be replaced,
%CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface is not an OS/2 surface.


@surface : the cairo surface to associate with the HPS @hps : new HPS to be associated with the surface ( the HPS may be null ) This API replaces the HPS associated with the surface with a new one . The caller retains ownership of the HPS and must dispose of it after the surface has been destroyed or it has been replaced by another call to this function . Return value : %CAIRO_STATUS_SUCCESS if the hps could be replaced %CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface is not an OS / 2 surface .
cairo_status_t
cairo_os2_surface_set_hps (cairo_surface_t *surface,
                           HPS              hps)
{
    cairo_os2_surface_t *local_os2_surface;
    local_os2_surface = (cairo_os2_surface_t *) surface;
    if ((!local_os2_surface) ||
        (local_os2_surface->base.backend != &cairo_os2_surface_backend))
    {
        return _cairo_error (CAIRO_STATUS_SURFACE_TYPE_MISMATCH);
    }
    local_os2_surface->hps_client_window = hps;
    return CAIRO_STATUS_SUCCESS;
}
cairo_status_t cairo_os2_surface_set_hps ( cairo_surface_t * surface , HPS hps ) { cairo_os2_surface_t * local_os2_surface ; local_os2_surface = ( cairo_os2_surface_t * ) surface ; if ( ( ! local_os2_surface ) || ( local_os2_surface -> base . backend != & cairo_os2_surface_backend ) ) { return _cairo_error ( CAIRO_STATUS_SURFACE_TYPE_MISMATCH ) ; } local_os2_surface -> hps_client_window = hps ; return CAIRO_STATUS_SUCCESS ; }
cairo_os2_surface_set_hps:
 @surface: the cairo surface to associate with the HPS
 @hps: new HPS to be associated with the surface (the HPS may be null)
cairo_os2_surface_set_hps : @surface : the cairo surface to associate with the HPS @hps : new HPS to be associated with the surface ( the HPS may be null )
/* Invalid parameter (wrong surface)! */