RGBController API Overhaul

* Reorganize and clean up RGBController API functions
    * Add functions to get protected RGBController member values
    * Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
    * Protected previously-public RGBController members
        * Information strings (name, vendor, description, version, serial location)
        * Device type
        * Active mode
        * Flags
        * LEDs vector
        * LED alternate names vector
        * Modes vector
        * Colors vector
        * Zones vector
    * Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
    * Add update reason codes to RGBController update callback and signal updates on more RGBController events
    * Add loop zone types and segmented zone type
    * Add matrix map field to segments
This commit is contained in:
Adam Honse
2025-09-23 20:38:37 -05:00
parent 80e9d76746
commit eb64a245a9
629 changed files with 3714 additions and 5011 deletions

View File

@@ -567,12 +567,7 @@ RGBController_Debug::~RGBController_Debug()
}
void RGBController_Debug::SetupZones()
{
}
void RGBController_Debug::ResizeZone(int index, int new_size)
void RGBController_Debug::DeviceResizeZone(int index, int new_size)
{
//Make sure that it isn't out of bounds (negative numbers)
if(new_size < int(zones[index].leds_min))
@@ -617,12 +612,12 @@ void RGBController_Debug::DeviceUpdateLEDs()
}
void RGBController_Debug::UpdateZoneLEDs(int /*zone*/)
void RGBController_Debug::DeviceUpdateZoneLEDs(int /*zone*/)
{
}
void RGBController_Debug::UpdateSingleLED(int /*led*/)
void RGBController_Debug::DeviceUpdateSingleLED(int /*led*/)
{
}