:right-sidebar: True Coverage =================================================================== .. currentmodule:: gi.repository.Pango .. class:: Coverage(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: Coverage(**properties) new() -> Pango.Coverage Constructors ------------ .. rst-class:: interim-class .. class:: Coverage :no-index: .. classmethod:: new() -> ~gi.repository.Pango.Coverage Create a new ``PangoCoverage`` Methods ------- .. rst-class:: interim-class .. class:: Coverage :no-index: .. method:: from_bytes(bytes: ~typing.Sequence[int]) -> ~gi.repository.Pango.Coverage | None Convert data generated from :obj:`~gi.repository.Pango.Coverage.to_bytes` back to a ``PangoCoverage``. .. deprecated:: 1.44 This returns :const:`None` :param bytes: binary data representing a ``PangoCoverage`` .. method:: get(index_: int) -> ~gi.repository.Pango.CoverageLevel Determine whether a particular index is covered by ``coverage``. :param index_: the index to check .. method:: max(other: ~gi.repository.Pango.Coverage) -> None Set the coverage for each index in ``coverage`` to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in ``other``. .. deprecated:: 1.44 This function does nothing :param other: another ``PangoCoverage`` .. method:: set(index_: int, level: ~gi.repository.Pango.CoverageLevel) -> None Modify a particular index within ``coverage`` :param index_: the index to modify :param level: the new level for @``index_`` .. method:: to_bytes() -> bytes Convert a ``PangoCoverage`` structure into a flat binary format. .. deprecated:: 1.44 This returns :const:`None`