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

#include <display.h>

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

Public Member Functions

 DisplayOnPageChangeTrigger (Display *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 724 of file display.h.

Constructor & Destructor Documentation

◆ DisplayOnPageChangeTrigger()

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

Definition at line 726 of file display.h.

Member Function Documentation

◆ process()

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

Definition at line 517 of file display.cpp.

◆ set_from()

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

Definition at line 728 of file display.h.

◆ set_to()

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

Definition at line 729 of file display.h.

Field Documentation

◆ from_

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

Definition at line 732 of file display.h.

◆ to_

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

Definition at line 733 of file display.h.


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