forked from enlightenment/enlightenment
Don't need these headers here either ... already in e.h.
Fix formatting. SVN revision: 51206
This commit is contained in:
parent
db5ec3e8c1
commit
678acb7bdd
|
@ -1,119 +1,128 @@
|
||||||
#ifndef E_RANDR_H
|
#ifndef E_RANDR_H
|
||||||
#define E_RANDR_H
|
#define E_RANDR_H
|
||||||
|
|
||||||
#include <Eina.h>
|
typedef struct _E_Randr_Crtc_Info
|
||||||
#include <Ecore_X.h>
|
{
|
||||||
|
Ecore_X_ID xid;
|
||||||
typedef struct _E_Randr_Crtc_Info {
|
Eina_Rectangle geometry;
|
||||||
Ecore_X_ID xid;
|
Eina_Rectangle panning;
|
||||||
Eina_Rectangle geometry;
|
Eina_Rectangle tracking;
|
||||||
Eina_Rectangle panning;
|
Eina_Rectangle border;
|
||||||
Eina_Rectangle tracking;
|
Ecore_X_Randr_Orientation current_orientation;
|
||||||
Eina_Rectangle border;
|
Ecore_X_Randr_Orientation orientations;
|
||||||
Ecore_X_Randr_Orientation current_orientation;
|
Ecore_X_Randr_Crtc_Gamma **gamma_ramps;
|
||||||
Ecore_X_Randr_Orientation orientations;
|
int gamma_ramp_size;
|
||||||
Ecore_X_Randr_Crtc_Gamma **gamma_ramps;
|
Eina_List *outputs;
|
||||||
int gamma_ramp_size;
|
Eina_List *possible_outputs;
|
||||||
Eina_List *outputs;
|
Ecore_X_Randr_Mode_Info *current_mode;
|
||||||
Eina_List *possible_outputs;
|
|
||||||
Ecore_X_Randr_Mode_Info *current_mode;
|
|
||||||
} E_Randr_Crtc_Info;
|
} E_Randr_Crtc_Info;
|
||||||
|
|
||||||
typedef struct _E_Randr_Output_Info {
|
typedef struct _E_Randr_Output_Info
|
||||||
Ecore_X_ID xid;
|
{
|
||||||
char *name;
|
Ecore_X_ID xid;
|
||||||
int name_length;
|
char *name;
|
||||||
E_Randr_Crtc_Info *crtc;
|
int name_length;
|
||||||
Eina_List *wired_clones;
|
E_Randr_Crtc_Info *crtc;
|
||||||
Ecore_X_Randr_Signal_Format signalformats;
|
Eina_List *wired_clones;
|
||||||
Ecore_X_Randr_Signal_Format signalformat;
|
Ecore_X_Randr_Signal_Format signalformats;
|
||||||
int connector_number;
|
Ecore_X_Randr_Signal_Format signalformat;
|
||||||
Ecore_X_Randr_Connector_Type connector_type;
|
int connector_number;
|
||||||
Ecore_X_Randr_Connection_Status connection_status;
|
Ecore_X_Randr_Connector_Type connector_type;
|
||||||
/*
|
Ecore_X_Randr_Connection_Status connection_status;
|
||||||
* Attached Monitor specific:
|
/*
|
||||||
*/
|
* Attached Monitor specific:
|
||||||
Eina_List *modes;
|
*/
|
||||||
Eina_List *preferred_modes;
|
Eina_List *modes;
|
||||||
Eina_List *clones;
|
Eina_List *preferred_modes;
|
||||||
Eina_List *possible_crtcs;
|
Eina_List *clones;
|
||||||
Ecore_X_Randr_Screen_Size size_mm;
|
Eina_List *possible_crtcs;
|
||||||
unsigned char *edid;
|
Ecore_X_Randr_Screen_Size size_mm;
|
||||||
unsigned long edid_length;
|
unsigned char *edid;
|
||||||
int max_backlight;
|
unsigned long edid_length;
|
||||||
double current_backlight;
|
int max_backlight;
|
||||||
Ecore_X_Render_Subpixel_Order subpixel_order;
|
double current_backlight;
|
||||||
Eina_List *compatible_outputs;
|
Ecore_X_Render_Subpixel_Order subpixel_order;
|
||||||
|
Eina_List *compatible_outputs;
|
||||||
} E_Randr_Output_Info;
|
} E_Randr_Output_Info;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Info_11 {
|
typedef struct _E_Randr_Screen_Info_11
|
||||||
//List of Ecore_X_Randr_Screen_Size_MM*
|
{
|
||||||
Eina_List *sizes;
|
//List of Ecore_X_Randr_Screen_Size_MM*
|
||||||
int csize_index;
|
Eina_List *sizes;
|
||||||
Ecore_X_Randr_Orientation corientation;
|
int csize_index;
|
||||||
Ecore_X_Randr_Orientation orientations;
|
Ecore_X_Randr_Orientation corientation;
|
||||||
//List of Ecore_X_Randr_Refresh_Rate*
|
Ecore_X_Randr_Orientation orientations;
|
||||||
Eina_List *rates;
|
//List of Ecore_X_Randr_Refresh_Rate*
|
||||||
Ecore_X_Randr_Refresh_Rate current_rate;
|
Eina_List *rates;
|
||||||
|
Ecore_X_Randr_Refresh_Rate current_rate;
|
||||||
} E_Randr_Screen_Info_11;
|
} E_Randr_Screen_Info_11;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Info_12 {
|
typedef struct _E_Randr_Screen_Info_12
|
||||||
Ecore_X_Randr_Screen_Size min_size;
|
{
|
||||||
Ecore_X_Randr_Screen_Size max_size;
|
Ecore_X_Randr_Screen_Size min_size;
|
||||||
Ecore_X_Randr_Screen_Size current_size;
|
Ecore_X_Randr_Screen_Size max_size;
|
||||||
Eina_List *modes;
|
Ecore_X_Randr_Screen_Size current_size;
|
||||||
Eina_List *crtcs;
|
Eina_List *modes;
|
||||||
Eina_List *outputs;
|
Eina_List *crtcs;
|
||||||
E_Randr_Output_Info *primary_output;
|
Eina_List *outputs;
|
||||||
Ecore_X_Randr_Output_Policy output_policy;
|
E_Randr_Output_Info *primary_output;
|
||||||
Ecore_X_Randr_Relative_Alignment alignment;
|
Ecore_X_Randr_Output_Policy output_policy;
|
||||||
|
Ecore_X_Randr_Relative_Alignment alignment;
|
||||||
} E_Randr_Screen_Info_12;
|
} E_Randr_Screen_Info_12;
|
||||||
|
|
||||||
//RRVD == RandR(R) Version Depended
|
//RRVD == RandR(R) Version Depended
|
||||||
typedef union _E_Randr_Screen_RRVD_Info {
|
typedef union _E_Randr_Screen_RRVD_Info
|
||||||
E_Randr_Screen_Info_11 *randr_info_11;
|
{
|
||||||
E_Randr_Screen_Info_12 *randr_info_12;
|
E_Randr_Screen_Info_11 *randr_info_11;
|
||||||
|
E_Randr_Screen_Info_12 *randr_info_12;
|
||||||
} E_Randr_Screen_RRVD_Info;
|
} E_Randr_Screen_RRVD_Info;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Info {
|
typedef struct _E_Randr_Screen_Info
|
||||||
Ecore_X_Window root;
|
{
|
||||||
int randr_version;
|
Ecore_X_Window root;
|
||||||
E_Randr_Screen_RRVD_Info rrvd_info;
|
int randr_version;
|
||||||
|
E_Randr_Screen_RRVD_Info rrvd_info;
|
||||||
} E_Randr_Screen_Info;
|
} E_Randr_Screen_Info;
|
||||||
|
|
||||||
//Following stuff is just for configuration purposes
|
//Following stuff is just for configuration purposes
|
||||||
typedef struct _E_Randr_Output_Restore_Info {
|
typedef struct _E_Randr_Output_Restore_Info
|
||||||
const char *edid;
|
{
|
||||||
double backlight_level;
|
const char *edid;
|
||||||
|
double backlight_level;
|
||||||
} E_Randr_Output_Restore_Info;
|
} E_Randr_Output_Restore_Info;
|
||||||
|
|
||||||
typedef struct _E_Randr_Crtc_Restore_Info {
|
typedef struct _E_Randr_Crtc_Restore_Info
|
||||||
Eina_Rectangle geometry;
|
{
|
||||||
Ecore_X_Randr_Orientation orientation;
|
Eina_Rectangle geometry;
|
||||||
//list of the outputs;
|
Ecore_X_Randr_Orientation orientation;
|
||||||
Eina_List *outputs;
|
//list of the outputs;
|
||||||
|
Eina_List *outputs;
|
||||||
} E_Randr_Crtc_Restore_Info;
|
} E_Randr_Crtc_Restore_Info;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Restore_Info_11 {
|
typedef struct _E_Randr_Screen_Restore_Info_11
|
||||||
Ecore_X_Randr_Screen_Size size;
|
{
|
||||||
Ecore_X_Randr_Refresh_Rate refresh_rate;
|
Ecore_X_Randr_Screen_Size size;
|
||||||
Ecore_X_Randr_Orientation orientation;
|
Ecore_X_Randr_Refresh_Rate refresh_rate;
|
||||||
|
Ecore_X_Randr_Orientation orientation;
|
||||||
} E_Randr_Screen_Restore_Info_11;
|
} E_Randr_Screen_Restore_Info_11;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Restore_Info_12 {
|
typedef struct _E_Randr_Screen_Restore_Info_12
|
||||||
Eina_List *crtcs;
|
{
|
||||||
Ecore_X_Randr_Output_Policy output_policy;
|
Eina_List *crtcs;
|
||||||
Ecore_X_Randr_Relative_Alignment alignment;
|
Ecore_X_Randr_Output_Policy output_policy;
|
||||||
|
Ecore_X_Randr_Relative_Alignment alignment;
|
||||||
} E_Randr_Screen_Restore_Info_12;
|
} E_Randr_Screen_Restore_Info_12;
|
||||||
|
|
||||||
typedef union _E_Randr_Screen_Restore_Info_Union {
|
typedef union _E_Randr_Screen_Restore_Info_Union
|
||||||
E_Randr_Screen_Restore_Info_11 *restore_info_11;
|
{
|
||||||
Eina_List *restore_info_12;
|
E_Randr_Screen_Restore_Info_11 *restore_info_11;
|
||||||
|
Eina_List *restore_info_12;
|
||||||
} E_Randr_Screen_Restore_Info_Union;
|
} E_Randr_Screen_Restore_Info_Union;
|
||||||
|
|
||||||
typedef struct _E_Randr_Screen_Restore_Info {
|
typedef struct _E_Randr_Screen_Restore_Info
|
||||||
int randr_version;
|
{
|
||||||
E_Randr_Screen_Restore_Info_Union rrvd_restore_info;
|
int randr_version;
|
||||||
|
E_Randr_Screen_Restore_Info_Union rrvd_restore_info;
|
||||||
} E_Randr_Screen_Restore_Info;
|
} E_Randr_Screen_Restore_Info;
|
||||||
|
|
||||||
EAPI Eina_Bool e_randr_init(void);
|
EAPI Eina_Bool e_randr_init(void);
|
||||||
|
|
Loading…
Reference in New Issue