tesseract  4.0.0-1-g2a2b
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 = nullptr;
76  parameter = nullptr;
77  }
ScrollView * window
Definition: scrollview.h:65
char * parameter
Definition: scrollview.h:71

◆ SVEvent() [2/2]

SVEvent::SVEvent ( const SVEvent )

Member Function Documentation

◆ copy()

SVEvent * SVEvent::copy ( )

Definition at line 61 of file scrollview.cpp.

61  {
62  SVEvent* any = new SVEvent;
63  any->command_id = command_id;
64  any->counter = counter;
65  any->parameter = new char[strlen(parameter) + 1];
66  strcpy(any->parameter, parameter);
67  any->type = type;
68  any->x = x;
69  any->y = y;
70  any->x_size = x_size;
71  any->y_size = y_size;
72  any->window = window;
73  return any;
74 }
int counter
Definition: scrollview.h:72
int x
Definition: scrollview.h:66
SVEvent()
Definition: scrollview.h:74
int y_size
Definition: scrollview.h:69
int x_size
Definition: scrollview.h:68
SVEventType type
Definition: scrollview.h:64
ScrollView * window
Definition: scrollview.h:65
int command_id
Definition: scrollview.h:70
char * parameter
Definition: scrollview.h:71
int y
Definition: scrollview.h:67

◆ 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: