aboutsummaryrefslogtreecommitdiff
path: root/src/labeller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/labeller.h')
-rw-r--r--src/labeller.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/labeller.h b/src/labeller.h
index e0dc090..cf108f5 100644
--- a/src/labeller.h
+++ b/src/labeller.h
@@ -10,6 +10,9 @@ namespace backend {
struct rect {
int x1=0, x2=0, y1=0, y2=0;
+ bool nonzero() const {
+ return (x1 != 0 || x1 != 0 || y1 != 0 || y2 != 0);
+ }
};
struct label {
@@ -24,6 +27,7 @@ namespace backend {
public:
labeller(const std::filesystem::path& savepath);
std::pair<label, label> getSurrounding(double time) const;
+ std::vector<label>& getEditableLabels();
std::vector<std::string> getLabels() const;
std::vector<std::string> getRectangleLabels() const;
void applyLabel(std::string name, double time);