# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/store/re_sdk_types/definitions/rerun/blueprint/components/auto_scroll.fbs".

# You can extend this class by creating a "AutoScrollExt" class in "auto_scroll_ext.py".

from __future__ import annotations

from ... import datatypes
from ..._baseclasses import (
    ComponentBatchMixin,
    ComponentMixin,
)

__all__ = ["AutoScroll", "AutoScrollBatch"]


class AutoScroll(datatypes.Bool, ComponentMixin):
    """
    **Component**: Whether the view should auto-scroll to follow the time cursor.

    ⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
    """

    _BATCH_TYPE = None
    # You can define your own __init__ function as a member of AutoScrollExt in auto_scroll_ext.py

    # Note: there are no fields here because AutoScroll delegates to datatypes.Bool


class AutoScrollBatch(datatypes.BoolBatch, ComponentBatchMixin):
    _COMPONENT_TYPE: str = "rerun.blueprint.components.AutoScroll"


# This is patched in late to avoid circular dependencies.
AutoScroll._BATCH_TYPE = AutoScrollBatch  # type: ignore[assignment]
