MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnDetachFromWindow

Method OnDetachFromWindow

Descent3/newui_core.cpp:2481–2490  ·  view source on GitHub ↗

when gadget is detached from window

Source from the content-addressed store, hash-verified

2479
2480// when gadget is detached from window
2481void newuiSlider::OnDetachFromWindow() {
2482 if (m_plus_btn.IsCreated()) {
2483 DetachSlaveGadget(&m_plus_btn);
2484 m_plus_btn.Destroy();
2485 }
2486 if (m_minus_btn.IsCreated()) {
2487 DetachSlaveGadget(&m_minus_btn);
2488 m_minus_btn.Destroy();
2489 }
2490}
2491
2492void newuiSlider::SetUnits(tSliderSettings *settings) {
2493 if (settings == NULL) {

Callers 1

RemoveGadgetMethod · 0.80

Calls 2

IsCreatedMethod · 0.80
DestroyMethod · 0.45

Tested by

no test coverage detected