ESPHome  2022.9.3
Public Member Functions | Protected Attributes
esphome::display::DisplayOnPageChangeTrigger Class Reference

#include <display_buffer.h>

Inheritance diagram for esphome::display::DisplayOnPageChangeTrigger:
esphome::Trigger< DisplayPage *, DisplayPage *>

Public Member Functions

 DisplayOnPageChangeTrigger (DisplayBuffer *parent)
 
void process (DisplayPage *from, DisplayPage *to)
 
void set_from (DisplayPage *p)
 
void set_to (DisplayPage *p)
 
- Public Member Functions inherited from esphome::Trigger< DisplayPage *, DisplayPage *>
void trigger (Ts... x)
 Inform the parent automation that the event has triggered. More...
 
void set_automation_parent (Automation< Ts... > *automation_parent)
 
void stop_action ()
 Stop any action connected to this trigger. More...
 
bool is_action_running ()
 Returns true if any action connected to this trigger is running. More...
 

Protected Attributes

DisplayPagefrom_ {nullptr}
 
DisplayPageto_ {nullptr}
 
- Protected Attributes inherited from esphome::Trigger< DisplayPage *, DisplayPage *>
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 547 of file display_buffer.h.

Constructor & Destructor Documentation

◆ DisplayOnPageChangeTrigger()

esphome::display::DisplayOnPageChangeTrigger::DisplayOnPageChangeTrigger ( DisplayBuffer parent)
inlineexplicit

Definition at line 549 of file display_buffer.h.

Member Function Documentation

◆ process()

void esphome::display::DisplayOnPageChangeTrigger::process ( DisplayPage from,
DisplayPage to 
)

Definition at line 372 of file display_buffer.cpp.

◆ set_from()

void esphome::display::DisplayOnPageChangeTrigger::set_from ( DisplayPage p)
inline

Definition at line 551 of file display_buffer.h.

◆ set_to()

void esphome::display::DisplayOnPageChangeTrigger::set_to ( DisplayPage p)
inline

Definition at line 552 of file display_buffer.h.

Field Documentation

◆ from_

DisplayPage* esphome::display::DisplayOnPageChangeTrigger::from_ {nullptr}
protected

Definition at line 555 of file display_buffer.h.

◆ to_

DisplayPage* esphome::display::DisplayOnPageChangeTrigger::to_ {nullptr}
protected

Definition at line 556 of file display_buffer.h.


The documentation for this class was generated from the following files: