NEW: management camera video stream in device panel

Change-Id: I39634af900071cc5c01a88100457880a513e416f
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-12-15 04:33:48 -05:00
1 parent 1068baf10e
commit 4d4fcc1780
24 files changed
+334 -56

No files matched your search

+8
View File
@@ -127,6 +127,14 @@ bool Button::Enable(bool enable)
void Button::SetCanFocus(bool canFocus) { this->canFocus = canFocus; }
void Button::SetValue(bool state)
{
if (GetValue() == state) return;
state_handler.set_state(state ? StateHandler::Checked : 0, StateHandler::Checked);
}
bool Button::GetValue() const { return state_handler.states() & StateHandler::Checked; }
void Button::Rescale()
{
if (this->active_icon.bmp().IsOk())