Add adds a demo showing off GskGLShaderNode in various ways. It has a transistion widget, using some examples from gl-transitions.com, with child widgets being both images, a GL area and real widgets (that let you edit the transition shaders themselves. It also has a fancy fire effect on hove on the buttons.
23 lines
759 B
C
23 lines
759 B
C
#ifndef __GTK_SHADER_BIN_H__
|
|
#define __GTK_SHADER_BIN_H__
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GTK_TYPE_SHADER_BIN (gtk_shader_bin_get_type ())
|
|
G_DECLARE_FINAL_TYPE (GtkShaderBin, gtk_shader_bin, GTK, SHADER_BIN, GtkWidget)
|
|
|
|
GtkWidget *gtk_shader_bin_new (void);
|
|
void gtk_shader_bin_add_shader (GtkShaderBin *self,
|
|
GskGLShader *shader,
|
|
GtkStateFlags state,
|
|
GtkStateFlags state_mask);
|
|
void gtk_shader_bin_set_child (GtkShaderBin *self,
|
|
GtkWidget *child);
|
|
GtkWidget *gtk_shader_bin_get_child (GtkShaderBin *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GTK_SHADER_BIN_H__ */
|