All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 ( )
inline

Definition at line 62 of file scrollview.h.

62 { delete [] parameter; }
char * parameter
Definition: scrollview.h:71
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
#define NULL
Definition: host.h:144
SVEvent::SVEvent ( const SVEvent )

Member Function Documentation

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 }
int y
Definition: scrollview.h:67
int command_id
Definition: scrollview.h:70
SVEvent()
Definition: scrollview.h:74
int counter
Definition: scrollview.h:72
int x_size
Definition: scrollview.h:68
char * parameter
Definition: scrollview.h:71
ScrollView * window
Definition: scrollview.h:65
SVEventType type
Definition: scrollview.h:64
int y_size
Definition: scrollview.h:69
int x
Definition: scrollview.h:66
SVEvent& SVEvent::operator= ( const SVEvent )

Member Data Documentation

int SVEvent::command_id

Definition at line 70 of file scrollview.h.

int SVEvent::counter

Definition at line 72 of file scrollview.h.

char* SVEvent::parameter

Definition at line 71 of file scrollview.h.

SVEventType SVEvent::type

Definition at line 64 of file scrollview.h.

ScrollView* SVEvent::window

Definition at line 65 of file scrollview.h.

int SVEvent::x

Definition at line 66 of file scrollview.h.

int SVEvent::x_size

Definition at line 68 of file scrollview.h.

int SVEvent::y

Definition at line 67 of file scrollview.h.

int SVEvent::y_size

Definition at line 69 of file scrollview.h.


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