.. index:: pair: class; EE::Window::KittyFramePresenter .. _doxid-class_e_e_1_1_window_1_1_kitty_frame_presenter: class EE::Window::KittyFramePresenter ===================================== .. toctree:: :hidden: struct_EE_Window_KittyFramePresenter_DamageRectangle.rst struct_EE_Window_KittyFramePresenter_Frame.rst Overview ~~~~~~~~ Presents completed window frames using the Kitty graphics protocol. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KittyFramePresenter: public :ref:`EE::Window::FramePresenter` { public: // structs struct :ref:`DamageRectangle`; struct :ref:`Frame`; // construction :target:`~KittyFramePresenter`(); // methods virtual bool :ref:`initialize`(:ref:`Window`&); virtual void :ref:`present`(:ref:`Window`&); virtual void :ref:`shutdown`(:ref:`Window`&); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual bool :ref:`initialize`(:ref:`Window`&) = 0; virtual void :ref:`present`(:ref:`Window`&) = 0; virtual void :ref:`resized`(:ref:`Window`&, const :ref:`Math::Sizei`&); virtual void :ref:`shutdown`(:ref:`Window`&); .. _details-class_e_e_1_1_window_1_1_kitty_frame_presenter: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Presents completed window frames using the Kitty graphics protocol. Presentation policy can be configured before initialization with ``EEPP_TERMINAL_DAMAGE_UPDATES``, ``EEPP_TERMINAL_PERSISTENT_UPDATES``, and ``EEPP_TERMINAL_ZLIB_LEVEL``. Damage and persistent updates default to enabled. The zlib level defaults to 1, accepts levels 1 through 9, and can be set to 0 to disable compression. Disabling persistent updates also disables damage updates because rectangles require a persistent image. Methods ------- .. index:: pair: function; initialize .. _doxid-class_e_e_1_1_window_1_1_kitty_frame_presenter_1ae0256d3be12b554625c7b09de0800eba: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool initialize(:ref:`Window`&) Initializes the terminal transport and sender worker. .. index:: pair: function; present .. _doxid-class_e_e_1_1_window_1_1_kitty_frame_presenter_1aa54e0157f4c13a4b118439a9b61a7567: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void present(:ref:`Window`&) Captures and queues the newest complete RGB24 frame. .. index:: pair: function; shutdown .. _doxid-class_e_e_1_1_window_1_1_kitty_frame_presenter_1a24cf5c9ee272af18f47e2c4f176d5ec8: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void shutdown(:ref:`Window`&) Stops the sender worker and restores the terminal transport.