mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 07:16:23 +09:00
Add radio button with simple/advanced view, add widget visibility
This commit is contained in:
@@ -11,11 +11,17 @@ namespace gsr {
|
||||
}
|
||||
|
||||
void Label::draw(mgl::Window &window, mgl::vec2f offset) {
|
||||
if(!visible)
|
||||
return;
|
||||
|
||||
text.set_position((position + offset).floor());
|
||||
window.draw(text);
|
||||
}
|
||||
|
||||
mgl::vec2f Label::get_size() {
|
||||
if(!visible)
|
||||
return {0.0f, 0.0f};
|
||||
|
||||
return text.get_bounds().size;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user