mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Use scissor for pages
This commit is contained in:
@@ -5,11 +5,15 @@
|
||||
namespace gsr {
|
||||
class StaticPage : public Page {
|
||||
public:
|
||||
StaticPage() = default;
|
||||
StaticPage(mgl::vec2f size);
|
||||
StaticPage(const StaticPage&) = delete;
|
||||
StaticPage& operator=(const StaticPage&) = delete;
|
||||
|
||||
bool on_event(mgl::Event &event, mgl::Window &window, mgl::vec2f offset) override;
|
||||
void draw(mgl::Window &window, mgl::vec2f offset) override;
|
||||
|
||||
mgl::vec2f get_size() const { return size; }
|
||||
private:
|
||||
mgl::vec2f size;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user