opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
screenshot_annotation.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6#include <utility>
7
8namespace osc
9{
11 public:
13 std::string label,
14 const Rect& screenspace_rect) :
15 label_{std::move(label)},
16 rect_{screenspace_rect}
17 {}
18
19 const std::string& label() const { return label_; }
20
21 // Returns the bounding rectangle of the annotation in screenspace in
22 // device-independent pixels.
23 const Rect& rect() const { return rect_; }
24
25 private:
26 std::string label_;
27 Rect rect_;
28 };
29}
Definition rect.h:17
Definition screenshot_annotation.h:10
ScreenshotAnnotation(std::string label, const Rect &screenspace_rect)
Definition screenshot_annotation.h:12
const std::string & label() const
Definition screenshot_annotation.h:19
const Rect & rect() const
Definition screenshot_annotation.h:23
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56