/* LIBPIKA - The PIKA Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* pikawidgetsutils.h
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* .
*/
#if !defined (__PIKA_WIDGETS_H_INSIDE__) && !defined (PIKA_WIDGETS_COMPILATION)
#error "Only can be included directly."
#endif
#ifndef __PIKA_WIDGETS_UTILS_H__
#define __PIKA_WIDGETS_UTILS_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
gboolean pika_event_triggers_context_menu (const GdkEvent *event,
gboolean on_release);
GtkWidget * pika_grid_attach_aligned (GtkGrid *grid,
gint left,
gint top,
const gchar *label_text,
gfloat label_xalign,
gfloat label_yalign,
GtkWidget *widget,
gint widget_columns);
void pika_label_set_attributes (GtkLabel *label,
...);
GdkMonitor * pika_widget_get_monitor (GtkWidget *widget);
GdkMonitor * pika_get_monitor_at_pointer (void);
void pika_widget_track_monitor (GtkWidget *widget,
GCallback monitor_changed_callback,
gpointer user_data,
GDestroyNotify user_data_destroy);
PikaColorProfile * pika_monitor_get_color_profile (GdkMonitor *monitor);
PikaColorProfile * pika_widget_get_color_profile (GtkWidget *widget);
PikaColorTransform * pika_widget_get_color_transform (GtkWidget *widget,
PikaColorConfig *config,
PikaColorProfile *src_profile,
const Babl *src_format,
const Babl *dest_format,
PikaColorProfile *softproof_profile,
PikaColorRenderingIntent proof_intent,
gboolean proof_bpc);
void pika_widget_set_native_handle (GtkWidget *widget,
GBytes **handle);
G_END_DECLS
#endif /* __PIKA_WIDGETS_UTILS_H__ */