tesseract  5.0.0-alpha-619-ge9db
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 60 of file scrollview.h.

Constructor & Destructor Documentation

◆ ~SVEvent()

SVEvent::~SVEvent ( )
inline

Definition at line 61 of file scrollview.h.

61 { delete [] parameter; }

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

◆ operator=()

SVEvent& SVEvent::operator= ( const SVEvent )

Member Data Documentation

◆ command_id

int SVEvent::command_id = 0

Definition at line 70 of file scrollview.h.

◆ counter

int SVEvent::counter = 0

Definition at line 71 of file scrollview.h.

◆ parameter

char* SVEvent::parameter = nullptr

Definition at line 65 of file scrollview.h.

◆ type

SVEventType SVEvent::type = SVET_DESTROY

Definition at line 63 of file scrollview.h.

◆ window

ScrollView* SVEvent::window = nullptr

Definition at line 64 of file scrollview.h.

◆ x

int SVEvent::x = 0

Definition at line 66 of file scrollview.h.

◆ x_size

int SVEvent::x_size = 0

Definition at line 68 of file scrollview.h.

◆ y

int SVEvent::y = 0

Definition at line 67 of file scrollview.h.

◆ y_size

int SVEvent::y_size = 0

Definition at line 69 of file scrollview.h.


The documentation for this struct was generated from the following files:
SVEvent::y_size
int y_size
Definition: scrollview.h:69
SVEvent::counter
int counter
Definition: scrollview.h:71
SVEvent::y
int y
Definition: scrollview.h:67
SVEvent::parameter
char * parameter
Definition: scrollview.h:65
SVEvent::SVEvent
SVEvent()=default
SVEvent::type
SVEventType type
Definition: scrollview.h:63
SVEvent::x_size
int x_size
Definition: scrollview.h:68
SVEvent::command_id
int command_id
Definition: scrollview.h:70
SVEvent::x
int x
Definition: scrollview.h:66
SVEvent::window
ScrollView * window
Definition: scrollview.h:64