Source code for ooodev.adapter.awt.animated_images_control_comp

from __future__ import annotations
from typing import cast, TYPE_CHECKING
from ooodev.adapter.awt.uno_control_comp import UnoControlComp
from ooodev.adapter.awt.animation_partial import AnimationPartial

try:
    # python 3.12+
    from typing import override  # noqa # type: ignore
except ImportError:
    from typing_extensions import override  # noqa # type: ignore

if TYPE_CHECKING:
    from com.sun.star.awt import AnimatedImagesControl


[docs]class AnimatedImagesControlComp(UnoControlComp, AnimationPartial):
[docs] def __init__(self, component: AnimatedImagesControl): """ Constructor Args: component (Any): Component that implements ``com.sun.star.awt.AnimatedImagesControl`` service. """ UnoControlComp.__init__(self, component=component) AnimationPartial.__init__(self, component=self.component, interface=None)
@property @override def component(self) -> AnimatedImagesControl: """AnimatedImagesControl Component""" # pylint: disable=no-member return cast("AnimatedImagesControl", self._ComponentBase__get_component()) # type: ignore