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

Method HasChanged

Descent3/newui_core.cpp:1792–1812  ·  view source on GitHub ↗

call these functions to determine if a pointer's value has changed after call to UpdateReturnValues (internal)

Source from the content-addressed store, hash-verified

1790
1791// call these functions to determine if a pointer's value has changed after call to UpdateReturnValues (internal)
1792bool newuiSheet::HasChanged(bool *bptr) {
1793 int i;
1794
1795 ASSERT(m_realized);
1796
1797 for (i = 0; i < m_ngadgets; i++) {
1798 newuiSheet::t_gadget_desc *desc = &m_gadgetlist[i];
1799 if (desc->obj.gadget) {
1800 switch (desc->type) {
1801 case GADGET_LCHECKBOX:
1802 case GADGET_CHECKBOX:
1803 if ((&desc->parm.b) == bptr) {
1804 return desc->changed;
1805 }
1806 break;
1807 }
1808 }
1809 }
1810
1811 return false;
1812}
1813
1814bool newuiSheet::HasChanged(int *iptr) {
1815 int i;

Callers 2

processMethod · 0.80
processMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected