You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
580 B
34 lines
580 B
#include "preview-window.hpp"
|
|
#include "obs-manager.hpp"
|
|
|
|
PreviewWindow::PreviewWindow(OBSManager *obs)
|
|
{
|
|
set_title("Preview");
|
|
set_default_size(obs->PreviewWidth, obs->PreviewHeight);
|
|
|
|
mOBS = obs;
|
|
}
|
|
|
|
PreviewWindow::~PreviewWindow()
|
|
{
|
|
}
|
|
|
|
void PreviewWindow::on_realize()
|
|
{
|
|
Gtk::Widget::on_realize();
|
|
|
|
mOBS->StartPreview(
|
|
GDK_WINDOW_XID(get_window()->gobj()),
|
|
GDK_WINDOW_XDISPLAY(get_window()->gobj())
|
|
);
|
|
}
|
|
|
|
void PreviewWindow::on_show()
|
|
{
|
|
Gtk::Widget::on_show();
|
|
}
|
|
|
|
void PreviewWindow::on_hide()
|
|
{
|
|
Gtk::Widget::on_hide();
|
|
}
|