MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / removeFromTab

Method removeFromTab

Source/UIComponents/CtrlrComponents/CtrlrComponent.cpp:567–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void CtrlrComponent::removeFromTab ()
568{
569 CtrlrModulator *tabsModulator = owner.getOwnerPanel().getModulator(getProperty(Ids::componentTabName));
570 if (tabsModulator)
571 {
572 CtrlrTabsComponent *tabsComponent = dynamic_cast<CtrlrTabsComponent*>(tabsModulator->getComponent());
573 if (tabsComponent)
574 {
575 tabsComponent->setOwned (this, getProperty(Ids::componentTabId), false);
576 }
577 }
578}
579
580int CtrlrComponent::snapPosition (int pos, int snapSize, const bool allowSnap)
581{

Callers

nothing calls this directly

Calls 3

getModulatorMethod · 0.45
getComponentMethod · 0.45
setOwnedMethod · 0.45

Tested by

no test coverage detected