mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
When a new window is created, apply all current values to it (volume, speed, set GStreamer elements, etc.). It would not be the best experience when user opens a new window, plays something and 100% volume is used in it.
57 lines
1.7 KiB
C
57 lines
1.7 KiB
C
/* Clapper Application
|
|
* Copyright (C) 2024 Rafał Dzięgiel <rafostar.github@gmail.com>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib.h>
|
|
#include <glib-object.h>
|
|
#include <gtk/gtk.h>
|
|
#include <clapper/clapper.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define CLAPPER_APP_TYPE_WINDOW (clapper_app_window_get_type())
|
|
#define CLAPPER_APP_WINDOW_CAST(obj) ((ClapperAppWindow *)(obj))
|
|
|
|
typedef struct
|
|
{
|
|
gchar *video_filter;
|
|
gchar *audio_filter;
|
|
|
|
gchar *video_sink;
|
|
gchar *audio_sink;
|
|
} ClapperAppWindowExtraOptions;
|
|
|
|
G_DECLARE_FINAL_TYPE (ClapperAppWindow, clapper_app_window, CLAPPER_APP, WINDOW, GtkApplicationWindow)
|
|
|
|
G_GNUC_INTERNAL
|
|
GtkWidget * clapper_app_window_new (GtkApplication *application);
|
|
|
|
G_GNUC_INTERNAL
|
|
GtkWidget * clapper_app_window_get_video (ClapperAppWindow *window);
|
|
|
|
G_GNUC_INTERNAL
|
|
ClapperPlayer * clapper_app_window_get_player (ClapperAppWindow *window);
|
|
|
|
G_GNUC_INTERNAL
|
|
ClapperAppWindowExtraOptions * clapper_app_window_get_extra_options (ClapperAppWindow *window);
|
|
|
|
G_GNUC_INTERNAL
|
|
void clapper_app_window_ensure_no_initial_state (ClapperAppWindow *window);
|
|
|
|
G_END_DECLS
|