tesseract  4.00.00dev
SVEvent Struct Reference

#include <scrollview.h>

Public Member Functions

 ~SVEvent ()
 
SVEventcopy ()
 
 SVEvent ()
 
 SVEvent (const SVEvent &)
 
SVEventoperator= (const SVEvent &)
 

Public Attributes

SVEventType type
 
ScrollViewwindow
 
int x
 
int y
 
int x_size
 
int y_size
 
int command_id
 
char * parameter
 
int counter
 

Detailed Description

Definition at line 61 of file scrollview.h.

Constructor & Destructor Documentation

◆ ~SVEvent()

SVEvent::~SVEvent ( )
inline

Definition at line 62 of file scrollview.h.

62 { delete [] parameter; }
char * parameter
Definition: scrollview.h:71

◆ SVEvent() [1/2]

SVEvent::SVEvent ( )
inline

Definition at line 74 of file scrollview.h.

74  {
75  window = NULL;
76  parameter = NULL;
77  }
char * parameter
Definition: scrollview.h:71
ScrollView * window
Definition: scrollview.h:65

◆ SVEvent() [2/2]

SVEvent::SVEvent ( const SVEvent )

Member Function Documentation

◆ copy()

SVEvent * SVEvent::copy ( )

Definition at line 67 of file scrollview.cpp.

67  {
68  SVEvent* any = new SVEvent;
69  any->command_id = command_id;
70  any->counter = counter;
71  any->parameter = new char[strlen(parameter) + 1];
72  strncpy(any->parameter, parameter, strlen(parameter));
73  any->parameter[strlen(parameter)] = '\0';
74  any->type = type;
75  any->x = x;
76  any->y = y;
77  any->x_size = x_size;
78  any->y_size = y_size;
79  any->window = window;
80  return any;
81 }
char * parameter
Definition: scrollview.h:71
SVEventType type
Definition: scrollview.h:64
SVEvent()
Definition: scrollview.h:74
int counter
Definition: scrollview.h:72
int command_id
Definition: scrollview.h:70
ScrollView * window
Definition: scrollview.h:65
int y_size
Definition: scrollview.h:69
int y
Definition: scrollview.h:67
int x
Definition: scrollview.h:66
int x_size
Definition: scrollview.h:68

◆ operator=()

SVEvent& SVEvent::operator= ( const SVEvent )

Member Data Documentation

◆ command_id

int SVEvent::command_id

Definition at line 70 of file scrollview.h.

◆ counter

int SVEvent::counter

Definition at line 72 of file scrollview.h.

◆ parameter

char* SVEvent::parameter

Definition at line 71 of file scrollview.h.

◆ type

SVEventType SVEvent::type

Definition at line 64 of file scrollview.h.

◆ window

ScrollView* SVEvent::window

Definition at line 65 of file scrollview.h.

◆ x

int SVEvent::x

Definition at line 66 of file scrollview.h.

◆ x_size

int SVEvent::x_size

Definition at line 68 of file scrollview.h.

◆ y

int SVEvent::y

Definition at line 67 of file scrollview.h.

◆ y_size

int SVEvent::y_size

Definition at line 69 of file scrollview.h.


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