67 void draw(cairo_t* context)
const override;
75 #include "switchIcon.cd" 76 #include "switchIcon.xcd" void setNumCases(unsigned)
unsigned switchValue() const
value of switch according to current inputs
SwitchIcon(SwitchIcon &&x)
void flip() override
rotate icon though 180∘
Units units(bool) const override
compute the dimensional units
void draw(cairo_t *context) const override
draw icon to context
SwitchIcon * switchIconCast() override
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
represents the units (in sense of dimensional analysis) of a variable.
SwitchIcon & operator=(const SwitchIcon &x)
const SwitchIcon * switchIconCast() const override
SwitchIcon()
default to if/then
double value() const override
current value of output port
CLASSDESC_ACCESS(SwitchIcon)
unsigned numCases() const
SwitchIcon(const SwitchIcon &x)
bool flipped
whether icon is oriented so input ports are on the rhs, and output on the lhs
SwitchIcon & operator=(SwitchIcon &&x)
ItemT & operator=(const ItemT &)=default