:right-sidebar: True Context =================================================================== .. currentmodule:: gi.repository.Gst .. versionadded:: 1.2 .. class:: Context(**kwargs) :no-contents-entry: :Constructors: :: new(context_type:str, persistent:bool) -> Gst.Context Constructors ------------ .. rst-class:: interim-class .. class:: Context :no-index: .. classmethod:: new(context_type: str, persistent: bool) -> ~gi.repository.Gst.Context Creates a new context. .. versionadded:: 1.2 :param context_type: Context type :param persistent: Persistent context Methods ------- .. rst-class:: interim-class .. class:: Context :no-index: .. method:: get_context_type() -> str Gets the type of ``context``. .. versionadded:: 1.2 .. method:: get_structure() -> ~gi.repository.Gst.Structure Accesses the structure of the context. .. versionadded:: 1.2 .. method:: has_context_type(context_type: str) -> bool Checks if ``context`` has ``context_type``. .. versionadded:: 1.2 :param context_type: Context type to check. .. method:: is_persistent() -> bool Checks if ``context`` is persistent. .. versionadded:: 1.2 .. method:: writable_structure() -> ~gi.repository.Gst.Structure Gets a writable version of the structure. .. versionadded:: 1.2