Cogl.Snippet.prototype.get_hook

function get_hook(): Cogl.SnippetHook {
    // Gjs wrapper for cogl_snippet_get_hook()
}
  

Since 1.10

Returns

the hook that was set when Cogl.Snippet.new was called.