mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
146 lines
4.4 KiB
HTML
146 lines
4.4 KiB
HTML
<!--
|
|
SPDX-FileCopyrightText: Rafał Dzięgiel
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-or-later
|
|
-->
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Clapper – 0.0: Reactable Enhancers</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
|
<meta property="og:type" content="website"/>
|
|
|
|
|
|
<meta property="og:image:width" content="256"/>
|
|
<meta property="og:image:height" content="256"/>
|
|
<meta property="og:image:secure_url" content="clapper-logo.svg"/>
|
|
<meta property="og:image:alt" content="Clapper-0.0"/>
|
|
|
|
|
|
|
|
<meta property="og:title" content="Clapper: Reactable Enhancers"/>
|
|
<meta property="og:description" content="Reference for Clapper-0.0: Reactable Enhancers"/>
|
|
<meta name="twitter:title" content="Clapper: Reactable Enhancers"/>
|
|
<meta name="twitter:description" content="Reference for Clapper-0.0: Reactable Enhancers"/>
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
|
|
|
|
|
|
|
<link rel="search" type="application/opensearchdescription+xml" title="Clapper" href="opensearch.xml">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
|
|
|
|
|
|
|
|
<script src="urlmap.js"></script>
|
|
|
|
|
|
<script src="fzy.js"></script>
|
|
<script src="search.js"></script>
|
|
|
|
<script src="main.js"></script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div id="body-wrapper" tabindex="-1">
|
|
|
|
<nav class="sidebar devhelp-hidden">
|
|
|
|
<div class="section">
|
|
<a href="index.html"><img src="clapper-logo.svg" class="logo"/></a>
|
|
</div>
|
|
|
|
|
|
<div class="search section">
|
|
<form id="search-form" autocomplete="off">
|
|
<input id="search-input" type="text" name="do-not-autocomplete" placeholder="Click, or press 's' to search" autocomplete="off"/>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="section namespace">
|
|
<h3><a href="index.html">Clapper</a></h3>
|
|
<p>API Version: 0.0</p>
|
|
|
|
<p>Library Version: 0.9.1</p>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="section generator">
|
|
<p>Generated by <a href="https://gitlab.gnome.org/GNOME/gi-docgen">gi-docgen</a> 2025.4</p>
|
|
</div>
|
|
</nav>
|
|
|
|
<button id="btn-to-top" class="hidden"><span class="up-arrow"></span></button>
|
|
|
|
|
|
<section id="main" class="content">
|
|
|
|
<h4 id="title" style="display:flex;">
|
|
Reactable Enhancers
|
|
<a href="#title" class="anchor"></a>
|
|
|
|
</h4>
|
|
|
|
<section>
|
|
<div class="docblock">
|
|
<h3 id="overview">Overview<a class="md-anchor" href="#overview" title="Permanent link"></a></h3>
|
|
<p><a href="iface.Reactable.html"><code>ClapperReactable</code></a> is an interface to implement enhancers that react to the
|
|
playback and/or events that should influence it.</p>
|
|
<p>Such enhancer can work not only in a way that triggers external actions due to some
|
|
playback events, but also in reverse - alters playback or its queue due to some
|
|
external event. It can do so by getting a hold of the player that given enhancer
|
|
instance reacts to with <a href="method.Reactable.get_player.html"><code>clapper_reactable_get_player()</code></a>.</p>
|
|
<p>For the basics about writing enhancers see <a href="clapper-enhancers.html">Clapper Enhancers</a>.</p>
|
|
<h3 id="requirements">Requirements<a class="md-anchor" href="#requirements" title="Permanent link"></a></h3>
|
|
<p>An enhancer of this type should implement any of the <a href="iface.Reactable.html"><code>ClapperReactable</code></a> virtual
|
|
methods that it needs.</p>
|
|
<p>Note that when implementing <a href="vfunc.Reactable.queue_item_removed.html"><code>Clapper.ReactableInterface.queue_item_removed</code></a> you probably
|
|
also want to implement <a href="vfunc.Reactable.queue_cleared.html"><code>Clapper.ReactableInterface.queue_cleared</code></a> as the former is not
|
|
called for each item when clearing the whole queue for performance reasons.</p>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<div id="toc" class="toc">
|
|
<nav aria-labelledby="toc-title">
|
|
<p id="toc-title">Content</p>
|
|
<ul class="toc-list">
|
|
|
|
|
|
<li class="toc-list-item"><a href="#overview"><span class="link-text">Overview</span></a></li>
|
|
|
|
|
|
<li class="toc-list-item"><a href="#requirements"><span class="link-text">Requirements</span></a></li>
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
|
|
<section id="search" class="content hidden"></section>
|
|
|
|
<footer>
|
|
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html> |