tesseract 5.2.0
Loading...
Searching...
No Matches
tesseract::SVEvent Struct Reference

#include <scrollview.h>

Public Member Functions

 ~SVEvent ()
 
SVEventcopy () const
 
 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 68 of file scrollview.h.

Constructor & Destructor Documentation

◆ ~SVEvent()

tesseract::SVEvent::~SVEvent ( )
inline

Definition at line 69 of file scrollview.h.

69 {
70 delete[] parameter;
71 }

◆ SVEvent() [1/2]

tesseract::SVEvent::SVEvent ( )
default

◆ SVEvent() [2/2]

tesseract::SVEvent::SVEvent ( const SVEvent )

Member Function Documentation

◆ copy()

SVEvent * tesseract::SVEvent::copy ( ) const

Definition at line 63 of file scrollview.cpp.

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

◆ operator=()

SVEvent & tesseract::SVEvent::operator= ( const SVEvent )

Member Data Documentation

◆ command_id

int tesseract::SVEvent::command_id = 0

Definition at line 80 of file scrollview.h.

◆ counter

int tesseract::SVEvent::counter = 0

Definition at line 81 of file scrollview.h.

◆ parameter

char* tesseract::SVEvent::parameter = nullptr

Definition at line 75 of file scrollview.h.

◆ type

SVEventType tesseract::SVEvent::type = SVET_DESTROY

Definition at line 73 of file scrollview.h.

◆ window

ScrollView* tesseract::SVEvent::window = nullptr

Definition at line 74 of file scrollview.h.

◆ x

int tesseract::SVEvent::x = 0

Definition at line 76 of file scrollview.h.

◆ x_size

int tesseract::SVEvent::x_size = 0

Definition at line 78 of file scrollview.h.

◆ y

int tesseract::SVEvent::y = 0

Definition at line 77 of file scrollview.h.

◆ y_size

int tesseract::SVEvent::y_size = 0

Definition at line 79 of file scrollview.h.


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