MCPcopy Create free account
hub / github.com/davisking/dlib / toggle_button

Method toggle_button

dlib/gui_widgets/widgets.h:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 public:
135
136 toggle_button(
137 drawable_window& w
138 ) :
139 button_action(w),
140 btn_tooltip(w),
141 checked(false)
142 {
143 style.reset(new toggle_button_style_default());
144 enable_events();
145 }
146
147 ~toggle_button() { disable_events(); parent.invalidate_rectangle(rect); }
148

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected