Optibits
Loading...
Searching...
No Matches
ClipRectStack.hpp
1#pragma once
2
3#include <Optibits/Utility.hpp>
4#include <Optibits/GraphicsImpl.hpp>
5// STD
6#include <limits>
7#include <optional>
8#include <stdexcept>
9#include <vector>
10
11
12namespace Optibits
13{
15 {
16 std::vector<Rect> mStack;
17 std::optional<Rect> mEffectiveRect;
18
19 public:
20 void clear();
21 void push(const Rect& rect);
22 void pop();
23
24 const std::optional<Rect>& effectiveRect() const { return mEffectiveRect; }
25 };
26}
Definition ClipRectStack.hpp:15
Definition Utility.hpp:39