OverlayManager.cpp — spotmark
×
SPOTMARK
▾ src
▾ core
AppController.cpp
OverlayManager.cpp
InputManager.cpp
RenderState.cpp
▸ platform
▸ qml
▾ tests
overlay_test.cpp
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "OverlayManager.h"
#include <QGuiApplication>
#include <QScreen>
 
void OverlayManager::createWindowsFor(
const QList<QScreen*>& screens) {
for (auto* s : screens) {
auto* w = new OverlayWindow(s);
w->setFlag(Qt::FramelessWindowHint);
w->setAttribute(
Qt::WA_TranslucentBackground);
w->setFlag(Qt::WindowStaysOnTopHint);
applyClickThrough(w, true);
w->showFullScreen();
windows_.push_back(w);
}
}
 
void OverlayManager::setMode(Mode m) {
mode_ = m;
const bool ct = (m != Mode::Drawing);
for (auto* w : windows_)
applyClickThrough(w, ct);
emit modeChanged(m);
}
main · ↑2 ↓0UTF-8 · LF · C++ · Ln 21, Col 38
Spotmark · SpotlightF5 to pause
Try it
1–6Switch toolCCycle color[ ]Brush size⌘ZUndoSpotlightF5Pause overlay⌘⇧QQuit Spotmark

Spotlight, draw, and mark your screen during live presentations.

v0.4.5 BetaWindows 10+EXE installer

SECURE ACCESS

Sign In

Welcome back to CatalystPack

Fast, secure access with Google 🚀More sign-in options are coming soon.
PAYMENT SUCCESSFUL

Welcome to Pro! 🎉

Thank you for joining {productName} Pro. Your account has been upgraded and you now have access to all premium features.