mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
88d8bd84f2
The CoglOutput object represents one output such as a monitor or laptop panel, with information about attributes of the output such as the position of the output within the global coordinate space, and the refresh rate. We don't yet publically export the ability to get output information but we track it for the GLX backend, where we'll use it to track the refresh rate. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit d7ef9d8d71488d0e6874f1ffc6e48700d5c82a31)
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2012 Red Hat, Inc.
|
|
*
|
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef __COGL_OUTPUT_PRIVATE_H
|
|
#define __COGL_OUTPUT_PRIVATE_H
|
|
|
|
#include "cogl-output.h"
|
|
#include "cogl-object-private.h"
|
|
|
|
struct _CoglOutput
|
|
{
|
|
CoglObject _parent;
|
|
|
|
char *name;
|
|
|
|
int x; /* Must be first field for _cogl_output_values_equal() */
|
|
int y;
|
|
int width;
|
|
int height;
|
|
int mm_width;
|
|
int mm_height;
|
|
float refresh_rate;
|
|
CoglSubpixelOrder subpixel_order;
|
|
};
|
|
|
|
CoglOutput *_cogl_output_new (const char *name);
|
|
CoglBool _cogl_output_values_equal (CoglOutput *output,
|
|
CoglOutput *other);
|
|
|
|
#endif /* __COGL_OUTPUT_PRIVATE_H */
|