Forked from
Librem5 / phosh
2101 commits behind the upstream repository.
-
Guido Gunther authored
This avoids opencoding it in lot of places (See #20)
Guido Gunther authoredThis avoids opencoding it in lot of places (See #20)
phosh.h 1.23 KiB
/*
* Copyright (C) 2018 Purism SPC
*
* SPDX-License-Identifier: GPL-3+
* Author: Guido Günther <agx@sigxcpu.org>
*/
#ifndef PHOSH_H
#define PHOSH_H
#include "monitor/monitor.h"
#include <gtk/gtk.h>
#define PHOSH_TYPE_SHELL phosh_shell_get_type()
G_DECLARE_FINAL_TYPE (PhoshShell, phosh_shell, PHOSH, SHELL, GObject)
PhoshShell * phosh (void);
void phosh_shell_rotate_display (PhoshShell *self, guint degrees);
int phosh_shell_get_rotation (PhoshShell *self);
void phosh_shell_get_usable_area (PhoshShell *self,
gint *x,
gint *y,
gint *width,
gint *height);
void phosh_shell_set_locked (PhoshShell *self, gboolean locked);
void phosh_shell_lock (PhoshShell *self);
void phosh_shell_unlock (PhoshShell *self);
PhoshMonitor *phosh_shell_get_primary_monitor ();
/* Phosh keeps track of the wayland globals */
gpointer phosh_shell_get_wl_layer_shell ();
#endif /* PHOSH_H */