| 3970 | } |
| 3971 | |
| 3972 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawToggleButton(Graphics &g_, ToggleButton &b, bool isMouseOverButton, bool isButtonDown) |
| 3973 | { |
| 3974 | if (functionDefined("drawToggleButton")) |
| 3975 | { |
| 3976 | auto obj = new DynamicObject(); |
| 3977 | |
| 3978 | writeId(obj, &b); |
| 3979 | obj->setProperty("area", ApiHelpers::getVarRectangle(b.getLocalBounds().toFloat())); |
| 3980 | obj->setProperty("enabled", b.isEnabled()); |
| 3981 | obj->setProperty("text", b.getButtonText()); |
| 3982 | obj->setProperty("over", isMouseOverButton); |
| 3983 | obj->setProperty("down", isButtonDown); |
| 3984 | obj->setProperty("value", b.getToggleState()); |
| 3985 | |
| 3986 | setColourOrBlack(obj, "bgColour", b, HiseColourScheme::ComponentOutlineColourId); |
| 3987 | setColourOrBlack(obj, "itemColour1", b, HiseColourScheme::ComponentFillTopColourId); |
| 3988 | setColourOrBlack(obj, "itemColour2", b, HiseColourScheme::ComponentFillBottomColourId); |
| 3989 | setColourOrBlack(obj, "textColour", b, HiseColourScheme::ComponentTextColourId); |
| 3990 | |
| 3991 | addParentFloatingTile(b, obj); |
| 3992 | |
| 3993 | if (get()->callWithGraphics(g_, "drawToggleButton", var(obj), &b)) |
| 3994 | return; |
| 3995 | } |
| 3996 | |
| 3997 | GlobalHiseLookAndFeel::drawToggleButton(g_, b, isMouseOverButton, isButtonDown); |
| 3998 | } |
| 3999 | |
| 4000 | |
| 4001 | void ScriptingObjects::ScriptedLookAndFeel::Laf::drawRotarySlider(Graphics &g_, int /*x*/, int /*y*/, int width, int height, float /*sliderPosProportional*/, float /*rotaryStartAngle*/, float /*rotaryEndAngle*/, Slider &s) |
nothing calls this directly
no test coverage detected