2009-10-27 11:27:45 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
2010-09-26 11:18:26 -04:00
|
|
|
#ifndef __SHELL_UTIL_H__
|
|
|
|
#define __SHELL_UTIL_H__
|
2009-07-30 00:22:18 -04:00
|
|
|
|
|
|
|
#include <gio/gio.h>
|
2010-11-17 04:59:53 -05:00
|
|
|
#include <clutter/clutter.h>
|
2012-07-19 09:05:17 -04:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2013-08-13 08:22:22 -04:00
|
|
|
#include <meta/meta-cursor-tracker.h>
|
2013-09-01 16:03:59 -04:00
|
|
|
#include <meta/meta-window-actor.h>
|
2009-07-30 00:22:18 -04:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-03-24 10:54:46 -04:00
|
|
|
void shell_util_set_hidden_from_pick (ClutterActor *actor,
|
|
|
|
gboolean hidden);
|
2011-03-26 16:34:25 -04:00
|
|
|
|
2011-03-24 10:54:46 -04:00
|
|
|
void shell_util_get_transformed_allocation (ClutterActor *actor,
|
|
|
|
ClutterActorBox *box);
|
2011-03-12 19:41:23 -05:00
|
|
|
|
2011-06-23 20:40:36 -04:00
|
|
|
int shell_util_get_week_start (void);
|
2011-08-10 12:58:40 -04:00
|
|
|
|
2011-03-24 10:54:46 -04:00
|
|
|
char *shell_util_format_date (const char *format,
|
|
|
|
gint64 time_ms);
|
2014-10-16 08:38:13 -04:00
|
|
|
const char *shell_util_translate_time_string (const char *str);
|
2011-03-23 16:01:10 -04:00
|
|
|
|
2017-06-23 14:12:38 -04:00
|
|
|
char *shell_util_regex_escape (const char *str);
|
|
|
|
|
2011-03-24 10:54:46 -04:00
|
|
|
gboolean shell_write_string_to_stream (GOutputStream *stream,
|
|
|
|
const char *str,
|
|
|
|
GError **error);
|
2011-03-23 16:01:10 -04:00
|
|
|
|
2011-03-24 10:54:46 -04:00
|
|
|
char *shell_get_file_contents_utf8_sync (const char *path,
|
|
|
|
GError **error);
|
2011-03-23 16:01:10 -04:00
|
|
|
|
2011-11-03 16:57:33 -04:00
|
|
|
gboolean shell_util_wifexited (int status,
|
|
|
|
int *exit);
|
|
|
|
|
2012-07-19 09:05:17 -04:00
|
|
|
GdkPixbuf *shell_util_create_pixbuf_from_data (const guchar *data,
|
|
|
|
gsize len,
|
|
|
|
GdkColorspace colorspace,
|
|
|
|
gboolean has_alpha,
|
|
|
|
int bits_per_sample,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
int rowstride);
|
2012-03-29 15:29:48 -04:00
|
|
|
|
2013-08-13 08:22:22 -04:00
|
|
|
void shell_util_cursor_tracker_to_clutter (MetaCursorTracker *tracker,
|
|
|
|
ClutterTexture *texture);
|
|
|
|
|
2015-03-19 10:46:08 -04:00
|
|
|
gboolean shell_util_need_background_refresh (void);
|
|
|
|
|
2013-09-01 16:03:59 -04:00
|
|
|
ClutterContent * shell_util_get_content_for_window_actor (MetaWindowActor *window_actor,
|
|
|
|
MetaRectangle *window_rect);
|
|
|
|
|
2016-08-18 22:47:57 -04:00
|
|
|
cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures,
|
|
|
|
int n_captures,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
2018-07-27 12:30:22 -04:00
|
|
|
void shell_util_check_cloexec_fds (void);
|
|
|
|
|
2009-07-30 00:22:18 -04:00
|
|
|
G_END_DECLS
|
|
|
|
|
2010-09-26 11:18:26 -04:00
|
|
|
#endif /* __SHELL_UTIL_H__ */
|