Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 2.19 KB

layer_tree.rst

File metadata and controls

100 lines (73 loc) · 2.19 KB

LayerTree

This CDP domain is experimental.

.. module:: cdp.layer_tree

Types

Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.

.. autoclass:: LayerId
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: SnapshotId
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: ScrollRect
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: StickyPositionConstraint
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PictureTile
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: Layer
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: PaintProfile
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

Commands

Each command is a generator function. The return type Generator[x, y, z] indicates that the generator yields arguments of type x, it must be resumed with an argument of type y, and it returns type z. In this library, types x and y are the same for all commands, and z is the return type you should pay attention to. For more information, see :ref:`Getting Started: Commands <getting-started-commands>`.

.. autofunction:: compositing_reasons

.. autofunction:: disable

.. autofunction:: enable

.. autofunction:: load_snapshot

.. autofunction:: make_snapshot

.. autofunction:: profile_snapshot

.. autofunction:: release_snapshot

.. autofunction:: replay_snapshot

.. autofunction:: snapshot_command_log

Events

Generally, you do not need to instantiate CDP events yourself. Instead, the API creates events for you and then you use the event's attributes.

.. autoclass:: LayerPainted
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json

.. autoclass:: LayerTreeDidChange
      :members:
      :undoc-members:
      :exclude-members: from_json, to_json