mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
9df9087a13
As a quick way of checking what a particular sample of nodes (e.g. all offset node children) are made up of.
29 lines
671 B
C
29 lines
671 B
C
|
|
#ifndef __GSK_GL_NODE_SAMPLE_PRIVATE_H__
|
|
#define __GSK_GL_NODE_SAMPLE_PRIVATE_H__
|
|
|
|
#include <glib.h>
|
|
#include "gskenums.h"
|
|
#include "gskrendernode.h"
|
|
|
|
/* TODO: We have no other way for this...? */
|
|
#define N_NODE_TYPES (GSK_DEBUG_NODE + 1)
|
|
|
|
typedef struct
|
|
{
|
|
struct {
|
|
const char *class_name;
|
|
guint count;
|
|
} nodes[N_NODE_TYPES];
|
|
guint count;
|
|
} NodeSample;
|
|
|
|
void node_sample_init (NodeSample *self);
|
|
void node_sample_reset (NodeSample *self);
|
|
void node_sample_add (NodeSample *self,
|
|
GskRenderNode *node);
|
|
void node_sample_print (const NodeSample *self,
|
|
const char *prefix);
|
|
|
|
#endif
|