tesseract 4.1.1
Loading...
Searching...
No Matches
SVEvent Struct Reference

#include <scrollview.h>

Public Member Functions

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

Public Attributes

SVEventType type = SVET_DESTROY
 
ScrollViewwindow = nullptr
 
char * parameter = nullptr
 
int x = 0
 
int y = 0
 
int x_size = 0
 
int y_size = 0
 
int command_id = 0
 
int counter = 0
 

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

◆ SVEvent() [1/2]

SVEvent::SVEvent ( )
default

◆ SVEvent() [2/2]

SVEvent::SVEvent ( const SVEvent )

Member Function Documentation

◆ copy()

SVEvent * SVEvent::copy ( )

Definition at line 59 of file scrollview.cpp.

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

◆ operator=()

SVEvent & SVEvent::operator= ( const SVEvent )

Member Data Documentation

◆ command_id

int SVEvent::command_id = 0

Definition at line 71 of file scrollview.h.

◆ counter

int SVEvent::counter = 0

Definition at line 72 of file scrollview.h.

◆ parameter

char* SVEvent::parameter = nullptr

Definition at line 66 of file scrollview.h.

◆ type

SVEventType SVEvent::type = SVET_DESTROY

Definition at line 64 of file scrollview.h.

◆ window

ScrollView* SVEvent::window = nullptr

Definition at line 65 of file scrollview.h.

◆ x

int SVEvent::x = 0

Definition at line 67 of file scrollview.h.

◆ x_size

int SVEvent::x_size = 0

Definition at line 69 of file scrollview.h.

◆ y

int SVEvent::y = 0

Definition at line 68 of file scrollview.h.

◆ y_size

int SVEvent::y_size = 0

Definition at line 70 of file scrollview.h.


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