utils/resources.h file

Helpers for loading and using resources such as icons.

Contents

Functions

auto resources_get_icon(IconType icon_type, const char* filename) -> GtkWidget*
Creates a GtkImage of from the given information and returns it as a GtkWidget.
void resources_set_class_template(GtkWidgetClass* klass, const char* filename)
Sets class template from resource.
auto resources_get_gl_shader_data(const char* path) -> GBytes*
Returns the bytes of the specified OpenGL shader in RESOURCES_GL_SHADERS_PATH.