File: monitor-background.h

package info (click to toggle)
cinnamon-settings-daemon 6.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,896 kB
  • sloc: ansic: 31,182; xml: 205; python: 61; sh: 50; makefile: 20
file content (34 lines) | stat: -rw-r--r-- 745 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
#pragma once

#include <glib-object.h>
#include <gtk/gtk.h>

G_BEGIN_DECLS

#define MONITOR_TYPE_BACKGROUND (monitor_background_get_type ())

G_DECLARE_FINAL_TYPE (MonitorBackground, monitor_background, MONITOR, BACKGROUND, GObject)

struct _MonitorBackground
{
    GObject parent_instance;
    GdkMonitor *monitor;

    GtkWidget *window;
    GtkWidget *stack;
 
    GtkWidget *current;
    GtkWidget *pending;

    gboolean valid;

    gint monitor_index;
    gint width;
    gint height;
};

MonitorBackground *monitor_background_new (gint index, GdkMonitor *monitor);
GtkImage          *monitor_background_get_pending_image (MonitorBackground *mb);
void               monitor_background_show_next_image (MonitorBackground *mb);

G_END_DECLS