<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkMediaControls">
<refmeta>
<refentrytitle role="top_of_page" id="GtkMediaControls.top_of_page">GtkMediaControls</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkMediaControls</refname>
<refpurpose>A widget showing controls for a media stream</refpurpose>
</refnamediv>

<refsect1 id="GtkMediaControls.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-media-controls-new">gtk_media_controls_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkMediaStream"><returnvalue>GtkMediaStream</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-media-controls-get-media-stream">gtk_media_controls_get_media_stream</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-media-controls-set-media-stream">gtk_media_controls_set_media_stream</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkMediaControls.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GtkMediaStream"><type>GtkMediaStream</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkMediaControls--media-stream">media-stream</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkMediaControls.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkMediaControls-struct">GtkMediaControls</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkMediaControls.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkWidget">GtkWidget</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkMediaControls
</screen>
</refsect1>
<refsect1 id="GtkMediaControls.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkMediaControls implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link> and  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link>.</para>

</refsect1>

<refsect1 id="GtkMediaControls.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkMediaControls.description" role="desc">
<title role="desc.title">Description</title>
<para>GtkMediaControls is a widget to show controls for a <link linkend="GtkMediaStream"><type>GtkMediaStream</type></link>
and giving users a way to use it.</para>

</refsect1>
<refsect1 id="GtkMediaControls.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-media-controls-new" role="function">
<title>gtk_media_controls_new&#160;()</title>
<indexterm zone="gtk-media-controls-new"><primary>gtk_media_controls_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_media_controls_new (<parameter><link linkend="GtkMediaStream"><type>GtkMediaStream</type></link> *stream</parameter>);</programlisting>
<para>Creates a new <link linkend="GtkMediaControls"><type>GtkMediaControls</type></link> managing the <parameter>stream</parameter>
 passed to it.</para>
<refsect3 id="gtk-media-controls-new.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>stream</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkMediaStream"><type>GtkMediaStream</type></link> to
manage or <link linkend="NULL:CAPS"><literal>NULL</literal></link> for none. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>][<acronym>transfer none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-media-controls-new.returns" role="returns">
<title>Returns</title>
<para> a new <link linkend="GtkMediaControls"><type>GtkMediaControls</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-media-controls-get-media-stream" role="function">
<title>gtk_media_controls_get_media_stream&#160;()</title>
<indexterm zone="gtk-media-controls-get-media-stream"><primary>gtk_media_controls_get_media_stream</primary></indexterm>
<programlisting language="C"><link linkend="GtkMediaStream"><returnvalue>GtkMediaStream</returnvalue></link>&#160;*
gtk_media_controls_get_media_stream (<parameter><link linkend="GtkMediaControls"><type>GtkMediaControls</type></link> *controls</parameter>);</programlisting>
<para>Gets the media stream managed by <parameter>controls</parameter>
 or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if none.</para>
<refsect3 id="gtk-media-controls-get-media-stream.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>controls</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkMediaControls"><type>GtkMediaControls</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-media-controls-get-media-stream.returns" role="returns">
<title>Returns</title>
<para>The media stream managed by <parameter>controls</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>nullable</acronym>][<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-media-controls-set-media-stream" role="function">
<title>gtk_media_controls_set_media_stream&#160;()</title>
<indexterm zone="gtk-media-controls-set-media-stream"><primary>gtk_media_controls_set_media_stream</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_media_controls_set_media_stream (<parameter><link linkend="GtkMediaControls"><type>GtkMediaControls</type></link> *controls</parameter>,
                                     <parameter><link linkend="GtkMediaStream"><type>GtkMediaStream</type></link> *stream</parameter>);</programlisting>
<para>Sets the stream that is controlled by <parameter>controls</parameter>
.</para>
<refsect3 id="gtk-media-controls-set-media-stream.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>controls</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkMediaControls"><type>GtkMediaControls</type></link> widget</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>stream</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkMediaStream"><type>GtkMediaStream</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>nullable</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkMediaControls.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkMediaControls-struct" role="struct">
<title>GtkMediaControls</title>
<indexterm zone="GtkMediaControls-struct"><primary>GtkMediaControls</primary></indexterm>
<programlisting language="C">typedef struct _GtkMediaControls GtkMediaControls;</programlisting>
</refsect2>

</refsect1>
<refsect1 id="GtkMediaControls.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkMediaControls--media-stream" role="property"><title>The <literal>“media-stream”</literal> property</title>
<indexterm zone="GtkMediaControls--media-stream"><primary>GtkMediaControls:media-stream</primary></indexterm>
<programlisting>  “media-stream”             <link linkend="GtkMediaStream"><type>GtkMediaStream</type></link>&#160;*</programlisting>
<para>The media-stream managed by this object or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if none.</para>
<para>Owner: GtkMediaControls</para>
<para>Flags: Read / Write</para>
</refsect2>

</refsect1>
<refsect1 id="GtkMediaControls.see-also">
<title>See Also</title>
<para><link linkend="GtkVideo"><type>GtkVideo</type></link></para>

</refsect1>

</refentry>
