2022-11-17 06:27 AM
I have a SlideManu object in my ViewBase. I would like to modify the stateChangeButton attribute to allow shading from the View class object. This is a protected attribute in the SlideMenu class but there should be some way for me to have access to the parent protected attribute via inheritance in my View class.
Right now I just changed the attribute from protected to public so I can modify it but am looking for a more elegant solution.
2022-11-17 07:00 AM
protected is C++ design, no TGFX. Elegant dont exist, only extend class with public method for access protected value inside.