2009-09-29 15:08:01 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2009-09-08 15:47:30 -04:00
|
|
|
/*
|
2010-11-10 17:00:45 -05:00
|
|
|
* st-private.h: Private declarations and functions
|
2009-09-08 15:47:30 -04:00
|
|
|
*
|
|
|
|
* Copyright 2007 OpenedHand
|
|
|
|
* Copyright 2009 Intel Corporation.
|
2010-11-10 17:00:45 -05:00
|
|
|
* Copyright 2010 Red Hat, Inc.
|
|
|
|
* Copyright 2010 Florian Müllner
|
2009-09-08 15:47:30 -04:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU Lesser General Public License,
|
|
|
|
* version 2.1, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope 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
|
2010-11-10 17:00:45 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-09-08 15:47:30 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ST_PRIVATE_H__
|
|
|
|
#define __ST_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
2011-01-12 19:45:28 -05:00
|
|
|
#include <cairo.h>
|
2009-09-08 15:47:30 -04:00
|
|
|
#include "st-widget.h"
|
|
|
|
#include "st-bin.h"
|
2010-07-24 11:41:25 -04:00
|
|
|
#include "st-shadow.h"
|
2009-09-08 15:47:30 -04:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define I_(str) (g_intern_static_string ((str)))
|
|
|
|
|
|
|
|
#define ST_PARAM_READABLE \
|
|
|
|
(G_PARAM_READABLE | \
|
|
|
|
G_PARAM_STATIC_NICK | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)
|
|
|
|
|
|
|
|
#define ST_PARAM_READWRITE \
|
|
|
|
(G_PARAM_READABLE | G_PARAM_WRITABLE | \
|
|
|
|
G_PARAM_STATIC_NICK | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB)
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
ClutterActor *_st_widget_get_dnd_clone (StWidget *widget);
|
|
|
|
|
2010-02-13 11:24:25 -05:00
|
|
|
void _st_actor_get_preferred_width (ClutterActor *actor,
|
|
|
|
gfloat for_height,
|
|
|
|
gboolean y_fill,
|
|
|
|
gfloat *min_width_p,
|
|
|
|
gfloat *natural_width_p);
|
|
|
|
void _st_actor_get_preferred_height (ClutterActor *actor,
|
|
|
|
gfloat for_width,
|
|
|
|
gboolean x_fill,
|
|
|
|
gfloat *min_height_p,
|
|
|
|
gfloat *natural_height_p);
|
|
|
|
|
2009-12-02 14:42:26 -05:00
|
|
|
void _st_set_text_from_style (ClutterText *text,
|
|
|
|
StThemeNode *theme_node);
|
|
|
|
|
2015-02-20 20:09:20 -05:00
|
|
|
CoglPipeline * _st_create_texture_pipeline (CoglTexture *src_texture);
|
2010-10-27 12:41:20 -04:00
|
|
|
|
2010-07-24 11:41:25 -04:00
|
|
|
/* Helper for widgets which need to draw additional shadows */
|
2015-02-20 20:09:20 -05:00
|
|
|
CoglPipeline * _st_create_shadow_pipeline (StShadow *shadow_spec,
|
|
|
|
CoglTexture *src_texture);
|
|
|
|
CoglPipeline * _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|
|
|
ClutterActor *actor);
|
2011-01-12 19:45:28 -05:00
|
|
|
cairo_pattern_t *_st_create_shadow_cairo_pattern (StShadow *shadow_spec,
|
|
|
|
cairo_pattern_t *src_pattern);
|
|
|
|
|
2010-07-24 11:41:25 -04:00
|
|
|
void _st_paint_shadow_with_opacity (StShadow *shadow_spec,
|
2018-10-05 21:38:11 -04:00
|
|
|
CoglFramebuffer *framebuffer,
|
2015-02-20 20:09:20 -05:00
|
|
|
CoglPipeline *shadow_pipeline,
|
2010-07-24 11:41:25 -04:00
|
|
|
ClutterActorBox *box,
|
|
|
|
guint8 paint_opacity);
|
|
|
|
|
2009-09-08 15:47:30 -04:00
|
|
|
#endif /* __ST_PRIVATE_H__ */
|