:right-sidebar: True OpacityNode =================================================================== .. currentmodule:: gi.repository.Gsk .. class:: OpacityNode(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gsk.RenderNode` :Constructors: :: OpacityNode(**properties) new(child:Gsk.RenderNode, opacity:float) -> Gsk.OpacityNode Constructors ------------ .. rst-class:: interim-class .. class:: OpacityNode :no-index: .. classmethod:: new(child: ~gi.repository.Gsk.RenderNode, opacity: float) -> ~gi.repository.Gsk.OpacityNode Creates a ``GskRenderNode`` that will drawn the ``child`` with reduced ``opacity``. :param child: The node to draw :param opacity: The opacity to apply Methods ------- .. rst-class:: interim-class .. class:: OpacityNode :no-index: .. method:: get_child() -> ~gi.repository.Gsk.RenderNode Gets the child node that is getting opacityed by the given ``node``. .. method:: get_opacity() -> float Gets the transparency factor for an opacity node.