gtk/tests/gtkclipperprivate.h
Matthias Clasen 70380661fe testdmabuf: Test dmabuf viewports
Allow specifying padding via --padding. The argument to --padding
is a string of up to 4 comma-separated numbers, for the left, right,
top, bottom padding. If less numbers are given, the remaining ones
are set to zero.

This commit also includes an image that can be used for testing with

testdmabuf --padding 20,20,20,20 NV12 padded.png
2024-02-11 21:49:34 -05:00

17 lines
338 B
C

#pragma once
#include <gdk/gdk.h>
#include <graphene.h>
G_BEGIN_DECLS
#define GTK_TYPE_CLIPPER (gtk_clipper_get_type ())
G_DECLARE_FINAL_TYPE (GtkClipper, gtk_clipper, GTK, CLIPPER, GObject)
GdkPaintable * gtk_clipper_new (GdkPaintable *paintable,
const graphene_rect_t *clip);
G_END_DECLS