GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_grabber Struct Reference

A grabber. More...

#include <gp_grabber.h>

Collaboration diagram for gp_grabber:
Collaboration graph
[legend]

Data Fields

struct gp_pixmapframe
 Pixmap with current frame.
 
int(* poll )(gp_grabber *self)
 A grabber polling function.
 
int fd
 Grabber fd suitable for polling.
 
int(* start )(gp_grabber *self)
 Starts the actuall grabbing.
 
int(* stop )(gp_grabber *self)
 Stops the grabbing.
 
void(* exit )(gp_grabber *self)
 Destroys grabber.
 

Detailed Description

A grabber.

Definition at line 18 of file gp_grabber.h.

Field Documentation

◆ exit

void(* gp_grabber::exit) (gp_grabber *self)

Destroys grabber.

Parameters
selfA grabber.

Closes fd, frees memory, etc.

Definition at line 60 of file gp_grabber.h.

◆ poll

int(* gp_grabber::poll) (gp_grabber *self)

A grabber polling function.

This function can be either called in a loop.

Parameters
selfA grabber.
Returns
Zero if there is non new frame and 1 otherwise.

Definition at line 30 of file gp_grabber.h.

◆ start

int(* gp_grabber::start) (gp_grabber *self)

Starts the actuall grabbing.

Parameters
selfA grabber.

May be NULL if not needed.

Definition at line 42 of file gp_grabber.h.

◆ stop

int(* gp_grabber::stop) (gp_grabber *self)

Stops the grabbing.

Parameters
selfA grabber.

May be NULL if not needed.

Definition at line 51 of file gp_grabber.h.


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