C++ Pixels Library For Windows
Enable communications with Pixels dice using Bluetooth Low Energy.
|
Interface for a class that handles Pixel events. More...
#include <Pixel.h>
Public Member Functions | |
virtual void | onStatusChanged (std::shared_ptr< Pixel > pixel, PixelStatus status) |
Called when the Pixel status changes. | |
virtual void | onFirmwareDateChanged (std::shared_ptr< Pixel > pixel, std::chrono::system_clock::time_point firmwareDate) |
Called when the Pixel firmware date changes. | |
virtual void | onRssiChanged (std::shared_ptr< Pixel > pixel, int rssi) |
Called when the Pixel measured RSSI changes. | |
virtual void | onBatteryLevelChanged (std::shared_ptr< Pixel > pixel, int batteryLevel) |
Called when the Pixel battery level (in percent) changes. | |
virtual void | onChargingStateChanged (std::shared_ptr< Pixel > pixel, bool isCharging) |
Called when the Pixel charging state changes. | |
virtual void | onRollStateChanged (std::shared_ptr< Pixel > pixel, PixelRollState state, int face) |
Called when the Pixel roll state changes. | |
virtual void | onRolled (std::shared_ptr< Pixel > pixel, int face) |
Called just after the Pixel was rolled. | |
virtual void | onMessageReceived (std::shared_ptr< Pixel > pixel, std::shared_ptr< const Messages::PixelMessage > message) |
Called when the Pixel instance received a message from the actual die. | |
Interface for a class that handles Pixel events.