Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
surface_accessor< T > Struct Template Reference

#include <cairo-templates.h>

Public Member Functions

 surface_accessor (cairo_surface_t *surface)
 
guint32 get (int x, int y) const
 
void set (int x, int y, guint32 value)
 

Public Attributes

int stride
 
T * data
 

Detailed Description

template<typename T>
struct surface_accessor< T >

Definition at line 31 of file cairo-templates.h.

Constructor & Destructor Documentation

◆ surface_accessor()

template<typename T >
surface_accessor< T >::surface_accessor ( cairo_surface_t surface)
inlineexplicit

Member Function Documentation

◆ get()

template<typename T >
guint32 surface_accessor< T >::get ( int  x,
int  y 
) const
inline

◆ set()

template<typename T >
void surface_accessor< T >::set ( int  x,
int  y,
guint32  value 
)
inline

Member Data Documentation

◆ data

template<typename T >
T* surface_accessor< T >::data

◆ stride

template<typename T >
int surface_accessor< T >::stride

The documentation for this struct was generated from the following file: