aboutsummaryrefslogtreecommitdiff
path: root/src/labeller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/labeller.h')
-rw-r--r--src/labeller.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/labeller.h b/src/labeller.h
index 4248e2a..e0dc090 100644
--- a/src/labeller.h
+++ b/src/labeller.h
@@ -8,11 +8,16 @@
namespace backend {
struct labeller_impl;
+ struct rect {
+ int x1=0, x2=0, y1=0, y2=0;
+ };
+
struct label {
label() {}
label(const std::string& name, double time) : name(name), time(time) {}
std::string name;
double time;
+ rect location;
};
class labeller {
@@ -20,6 +25,7 @@ namespace backend {
labeller(const std::filesystem::path& savepath);
std::pair<label, label> getSurrounding(double time) const;
std::vector<std::string> getLabels() const;
+ std::vector<std::string> getRectangleLabels() const;
void applyLabel(std::string name, double time);
void deleteLabel(double time); // Deletes closest to time, last added if ties
void undo();