2013-11-05 03:13:33 +00:00
|
|
|
/*
|
|
|
|
* shaped texture
|
|
|
|
*
|
|
|
|
* An actor to draw a texture clipped to a list of rectangles
|
|
|
|
*
|
|
|
|
* Authored By Neil Roberts <neil@linux.intel.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Intel Corporation
|
|
|
|
* 2013 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __META_SHAPED_TEXTURE_PRIVATE_H__
|
|
|
|
#define __META_SHAPED_TEXTURE_PRIVATE_H__
|
|
|
|
|
2018-11-24 17:27:29 +00:00
|
|
|
#include "backends/meta-monitor-manager-private.h"
|
2018-07-10 08:36:24 +00:00
|
|
|
#include "meta/meta-shaped-texture.h"
|
2013-11-05 03:13:33 +00:00
|
|
|
|
2018-12-26 15:41:26 +00:00
|
|
|
MetaShapedTexture *meta_shaped_texture_new (void);
|
2013-11-05 03:13:33 +00:00
|
|
|
void meta_shaped_texture_set_texture (MetaShapedTexture *stex,
|
|
|
|
CoglTexture *texture);
|
2016-10-20 07:44:27 +00:00
|
|
|
void meta_shaped_texture_set_is_y_inverted (MetaShapedTexture *stex,
|
|
|
|
gboolean is_y_inverted);
|
2016-10-20 07:48:42 +00:00
|
|
|
void meta_shaped_texture_set_snippet (MetaShapedTexture *stex,
|
|
|
|
CoglSnippet *snippet);
|
2015-06-23 23:23:45 +00:00
|
|
|
void meta_shaped_texture_set_fallback_size (MetaShapedTexture *stex,
|
2018-09-14 13:37:50 +00:00
|
|
|
int fallback_width,
|
|
|
|
int fallback_height);
|
2016-03-21 20:43:50 +00:00
|
|
|
cairo_region_t * meta_shaped_texture_get_opaque_region (MetaShapedTexture *stex);
|
2019-08-16 16:08:30 +00:00
|
|
|
gboolean meta_shaped_texture_is_opaque (MetaShapedTexture *stex);
|
2019-08-17 08:00:46 +00:00
|
|
|
gboolean meta_shaped_texture_has_alpha (MetaShapedTexture *stex);
|
2018-11-24 17:27:29 +00:00
|
|
|
void meta_shaped_texture_set_transform (MetaShapedTexture *stex,
|
|
|
|
MetaMonitorTransform transform);
|
2018-11-30 14:34:00 +00:00
|
|
|
void meta_shaped_texture_set_viewport_src_rect (MetaShapedTexture *stex,
|
2019-02-20 15:23:04 +00:00
|
|
|
graphene_rect_t *src_rect);
|
2018-11-30 14:34:00 +00:00
|
|
|
void meta_shaped_texture_reset_viewport_src_rect (MetaShapedTexture *stex);
|
|
|
|
void meta_shaped_texture_set_viewport_dst_size (MetaShapedTexture *stex,
|
|
|
|
int dst_width,
|
|
|
|
int dst_height);
|
|
|
|
void meta_shaped_texture_reset_viewport_dst_size (MetaShapedTexture *stex);
|
2018-12-26 15:41:26 +00:00
|
|
|
void meta_shaped_texture_set_buffer_scale (MetaShapedTexture *stex,
|
|
|
|
int buffer_scale);
|
|
|
|
int meta_shaped_texture_get_buffer_scale (MetaShapedTexture *stex);
|
2013-11-05 03:13:33 +00:00
|
|
|
|
2019-02-11 15:25:30 +00:00
|
|
|
gboolean meta_shaped_texture_update_area (MetaShapedTexture *stex,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
cairo_rectangle_int_t *clip);
|
|
|
|
|
2020-02-03 13:18:57 +00:00
|
|
|
int meta_shaped_texture_get_width (MetaShapedTexture *stex);
|
|
|
|
int meta_shaped_texture_get_height (MetaShapedTexture *stex);
|
|
|
|
|
2013-11-05 03:13:33 +00:00
|
|
|
#endif
|