Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

NVCtrlLib.h File Reference

#include "NVCtrl.h"

Include dependency graph for NVCtrlLib.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  XNVCtrlAttributeChangedEvent
union  XNVCtrlEvent
struct  XNVCtrlAttributeChangedEventTarget
union  XNVCtrlEventTarget

Defines

#define NV_CTRL_DDCCI_RED_LUT   1
#define NV_CTRL_DDCCI_GREEN_LUT   2
#define NV_CTRL_DDCCI_BLUE_LUT   3

Functions

Bool XNVCTRLQueryExtension (Display *dpy, int *event_basep, int *error_basep)
Bool XNVCTRLQueryVersion (Display *dpy, int *major, int *minor)
Bool XNVCTRLIsNvScreen (Display *dpy, int screen)
Bool XNVCTRLQueryTargetCount (Display *dpy, int target_type, int *value)
void XNVCTRLSetAttribute (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, int value)
void XNVCTRLSetTargetAttribute (Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, int value)
Bool XNVCTRLSetAttributeAndGetStatus (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, int value)
Bool XNVCTRLQueryAttribute (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, int *value)
Bool XNVCTRLQueryTargetAttribute (Display *dpy, int target_Type, int target_id, unsigned int display_mask, unsigned int attribute, int *value)
Bool XNVCTRLQueryStringAttribute (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, char **ptr)
Bool XNVCTRLQueryTargetStringAttribute (Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, char **ptr)
Bool XNVCTRLSetStringAttribute (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, char *ptr)
Bool XNVCTRLQueryValidAttributeValues (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, NVCTRLAttributeValidValuesRec *values)
Bool XNVCTRLQueryValidTargetAttributeValues (Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, NVCTRLAttributeValidValuesRec *values)
void XNVCTRLSetGvoColorConversion (Display *dpy, int screen, float colorMatrix[3][3], float colorOffset[3], float colorScale[3])
Bool XNVCTRLQueryGvoColorConversion (Display *dpy, int screen, float colorMatrix[3][3], float colorOffset[3], float colorScale[3])
Bool XNVCTRLQueryDDCCILutSize (Display *dpy, int screen, unsigned int display_mask, unsigned int *red_entries, unsigned int *green_entries, unsigned int *blue_entries, unsigned int *red_bits_per_entries, unsigned int *green_bits_per_entries, unsigned int *blue_bits_per_entries)
Bool XNVCTRLQueryDDCCISinglePointLutOperation (Display *dpy, int screen, unsigned int display_mask, unsigned int offset, unsigned int *red_value, unsigned int *green_value, unsigned int *blue_value)
Bool XNVCTRLSetDDCCISinglePointLutOperation (Display *dpy, int screen, unsigned int display_mask, unsigned int offset, unsigned int red_value, unsigned int green_value, unsigned int blue_value)
Bool XNVCTRLQueryDDCCIBlockLutOperation (Display *dpy, int screen, unsigned int display_mask, unsigned int color, unsigned int size, unsigned int offset, unsigned int **value)
Bool XNVCTRLSetDDCCIBlockLutOperation (Display *dpy, int screen, unsigned int display_mask, unsigned int color, unsigned int offset, unsigned int size, unsigned int *value)
Bool XNVCTRLSetDDCCIRemoteProcedureCall (Display *dpy, int screen, unsigned int display_mask, unsigned int offset, unsigned int size, unsigned int *red_lut, unsigned int *green_lut, unsigned int *blue_lut, unsigned int *increment)
Bool XNVCTRLQueryDDCCIDisplayControllerType (Display *dpy, int screen, unsigned int display_mask, unsigned char **controller_manufacturer, unsigned int *controller_type)
Bool NVCTRLQueryDDCCICapabilities (Display *dpy, int screen, unsigned int display_mask, unsigned int **nvctrl_vcp_supported, unsigned int **possible_values_offset, unsigned int **possible_values_size, unsigned int **nvctrl_vcp_possible_values, unsigned int **nvctrl_string_vcp_supported)
Bool XNVCTRLQueryDDCCITimingReport (Display *dpy, int screen, unsigned int display_mask, unsigned int *sync_freq_out_range, unsigned int *unstable_count, unsigned int *positive_h_sync, unsigned int *positive_v_sync, unsigned int *h_freq, unsigned int *v_freq)
Bool XNVCTRLQueryBinaryData (Display *dpy, int screen, unsigned int display_mask, unsigned int attribute, unsigned char **ptr, int *len)
Bool XNVCTRLQueryTargetBinaryData (Display *dpy, int target_type, int target_id, unsigned int display_mask, unsigned int attribute, unsigned char **ptr, int *len)
Bool XNVCtrlSelectNotify (Display *dpy, int screen, int type, Bool onoff)
Bool XNVCtrlSelectTargetNotify (Display *dpy, int target_type, int target_id, int notify_type, Bool onoff)


Define Documentation

#define NV_CTRL_DDCCI_BLUE_LUT   3
 

#define NV_CTRL_DDCCI_GREEN_LUT   2
 

#define NV_CTRL_DDCCI_RED_LUT   1
 


Function Documentation

Bool NVCTRLQueryDDCCICapabilities Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int **  nvctrl_vcp_supported,
unsigned int **  possible_values_offset,
unsigned int **  possible_values_size,
unsigned int **  nvctrl_vcp_possible_values,
unsigned int **  nvctrl_string_vcp_supported
 

Bool XNVCTRLIsNvScreen Display *  dpy,
int  screen
 

Bool XNVCTRLQueryAttribute Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
int *  value
 

Returns True if the attribute exists. Returns False otherwise. If XNVCTRLQueryAttribute returns True, value will contain the value of the specified attribute.

Not all attributes require the display_mask parameter; see NVCtrl.h for details.

Calling this function is equivalent to calling XNVCTRLQueryTargetAttribute() with the target_type set to NV_CTRL_TARGET_TYPE_X_SCREEN and target_id set to 'screen'.

Possible errors: BadValue - The screen doesn't exist. BadMatch - The NVIDIA driver is not present on that screen.

Bool XNVCTRLQueryBinaryData Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
unsigned char **  ptr,
int *  len
 

Bool XNVCTRLQueryDDCCIBlockLutOperation Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  color,
unsigned int  size,
unsigned int  offset,
unsigned int **  value
 

Bool XNVCTRLQueryDDCCIDisplayControllerType Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned char **  controller_manufacturer,
unsigned int *  controller_type
 

Bool XNVCTRLQueryDDCCILutSize Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int *  red_entries,
unsigned int *  green_entries,
unsigned int *  blue_entries,
unsigned int *  red_bits_per_entries,
unsigned int *  green_bits_per_entries,
unsigned int *  blue_bits_per_entries
 

Bool XNVCTRLQueryDDCCISinglePointLutOperation Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  offset,
unsigned int *  red_value,
unsigned int *  green_value,
unsigned int *  blue_value
 

Bool XNVCTRLQueryDDCCITimingReport Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int *  sync_freq_out_range,
unsigned int *  unstable_count,
unsigned int *  positive_h_sync,
unsigned int *  positive_v_sync,
unsigned int *  h_freq,
unsigned int *  v_freq
 

Bool XNVCTRLQueryExtension Display *  dpy,
int *  event_basep,
int *  error_basep
 

Returns True if the extension exists, returns False otherwise. event_basep and error_basep are the extension event and error bases. Currently, no extension specific errors or events are defined.

Bool XNVCTRLQueryGvoColorConversion Display *  dpy,
int  screen,
float  colorMatrix[3][3],
float  colorOffset[3],
float  colorScale[3]
 

Bool XNVCTRLQueryStringAttribute Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
char **  ptr
 

Bool XNVCTRLQueryTargetAttribute Display *  dpy,
int  target_Type,
int  target_id,
unsigned int  display_mask,
unsigned int  attribute,
int *  value
 

Bool XNVCTRLQueryTargetBinaryData Display *  dpy,
int  target_type,
int  target_id,
unsigned int  display_mask,
unsigned int  attribute,
unsigned char **  ptr,
int *  len
 

Bool XNVCTRLQueryTargetCount Display *  dpy,
int  target_type,
int *  value
 

Bool XNVCTRLQueryTargetStringAttribute Display *  dpy,
int  target_type,
int  target_id,
unsigned int  display_mask,
unsigned int  attribute,
char **  ptr
 

Bool XNVCTRLQueryValidAttributeValues Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
NVCTRLAttributeValidValuesRec values
 

Bool XNVCTRLQueryValidTargetAttributeValues Display *  dpy,
int  target_type,
int  target_id,
unsigned int  display_mask,
unsigned int  attribute,
NVCTRLAttributeValidValuesRec values
 

Bool XNVCTRLQueryVersion Display *  dpy,
int *  major,
int *  minor
 

Bool XNVCtrlSelectNotify Display *  dpy,
int  screen,
int  type,
Bool  onoff
 

Bool XNVCtrlSelectTargetNotify Display *  dpy,
int  target_type,
int  target_id,
int  notify_type,
Bool  onoff
 

void XNVCTRLSetAttribute Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
int  value
 

Bool XNVCTRLSetAttributeAndGetStatus Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
int  value
 

Bool XNVCTRLSetDDCCIBlockLutOperation Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  color,
unsigned int  offset,
unsigned int  size,
unsigned int *  value
 

Bool XNVCTRLSetDDCCIRemoteProcedureCall Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  offset,
unsigned int  size,
unsigned int *  red_lut,
unsigned int *  green_lut,
unsigned int *  blue_lut,
unsigned int *  increment
 

Bool XNVCTRLSetDDCCISinglePointLutOperation Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  offset,
unsigned int  red_value,
unsigned int  green_value,
unsigned int  blue_value
 

void XNVCTRLSetGvoColorConversion Display *  dpy,
int  screen,
float  colorMatrix[3][3],
float  colorOffset[3],
float  colorScale[3]
 

Bool XNVCTRLSetStringAttribute Display *  dpy,
int  screen,
unsigned int  display_mask,
unsigned int  attribute,
char *  ptr
 

void XNVCTRLSetTargetAttribute Display *  dpy,
int  target_type,
int  target_id,
unsigned int  display_mask,
unsigned int  attribute,
int  value
 


Generated on Sat Aug 19 20:40:54 2006 for Renouveau by  doxygen 1.4.4