Optibits
Loading...
Searching...
No Matches
include
Optibits
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
12
namespace
Optibits
13
{
14
class
ClipRectStack
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
}
Optibits::ClipRectStack
Definition
ClipRectStack.hpp:15
Optibits::Rect
Definition
Utility.hpp:39
Generated by
1.12.0