cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

event.h (2916B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * Event Definitions
      4 *
      5 * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef FREERDP_EVENT_H
     21#define FREERDP_EVENT_H
     22
     23#include <freerdp/api.h>
     24#include <freerdp/freerdp.h>
     25
     26#ifdef __cplusplus
     27extern "C"
     28{
     29#endif
     30
     31#define FREERDP_WINDOW_STATE_NORMAL 0
     32#define FREERDP_WINDOW_STATE_MINIMIZED 1
     33#define FREERDP_WINDOW_STATE_MAXIMIZED 2
     34#define FREERDP_WINDOW_STATE_FULLSCREEN 3
     35#define FREERDP_WINDOW_STATE_ACTIVE 4
     36
     37	DEFINE_EVENT_BEGIN(WindowStateChange)
     38	int state;
     39	DEFINE_EVENT_END(WindowStateChange)
     40
     41	DEFINE_EVENT_BEGIN(ResizeWindow)
     42	int width;
     43	int height;
     44	DEFINE_EVENT_END(ResizeWindow)
     45
     46	DEFINE_EVENT_BEGIN(PanningChange)
     47	int dx;
     48	int dy;
     49	DEFINE_EVENT_END(PanningChange)
     50
     51	DEFINE_EVENT_BEGIN(ZoomingChange)
     52	int dx;
     53	int dy;
     54	DEFINE_EVENT_END(ZoomingChange)
     55
     56	DEFINE_EVENT_BEGIN(LocalResizeWindow)
     57	int width;
     58	int height;
     59	DEFINE_EVENT_END(LocalResizeWindow)
     60
     61	DEFINE_EVENT_BEGIN(EmbedWindow)
     62	BOOL embed;
     63	void* handle;
     64	DEFINE_EVENT_END(EmbedWindow)
     65
     66	DEFINE_EVENT_BEGIN(ErrorInfo)
     67	UINT32 code;
     68	DEFINE_EVENT_END(ErrorInfo)
     69
     70	DEFINE_EVENT_BEGIN(Activated)
     71	BOOL firstActivation;
     72	DEFINE_EVENT_END(Activated)
     73
     74	DEFINE_EVENT_BEGIN(ConnectionStateChange)
     75	int state;
     76	BOOL active;
     77	DEFINE_EVENT_END(ConnectionStateChange)
     78
     79	DEFINE_EVENT_BEGIN(Terminate)
     80	int code;
     81	DEFINE_EVENT_END(Terminate)
     82
     83	DEFINE_EVENT_BEGIN(ConnectionResult)
     84	int result;
     85	DEFINE_EVENT_END(ConnectionResult)
     86
     87	DEFINE_EVENT_BEGIN(ChannelConnected)
     88	const char* name;
     89	void* pInterface;
     90	DEFINE_EVENT_END(ChannelConnected)
     91
     92	DEFINE_EVENT_BEGIN(ChannelDisconnected)
     93	const char* name;
     94	void* pInterface;
     95	DEFINE_EVENT_END(ChannelDisconnected)
     96
     97	DEFINE_EVENT_BEGIN(ChannelAttached)
     98	const char* name;
     99	void* pInterface;
    100	DEFINE_EVENT_END(ChannelAttached)
    101
    102	DEFINE_EVENT_BEGIN(ChannelDetached)
    103	const char* name;
    104	void* pInterface;
    105	DEFINE_EVENT_END(ChannelDetached)
    106
    107	DEFINE_EVENT_BEGIN(MouseEvent)
    108	UINT16 flags;
    109	UINT16 x;
    110	UINT16 y;
    111	DEFINE_EVENT_END(MouseEvent)
    112
    113	DEFINE_EVENT_BEGIN(MouseEventEx)
    114	UINT16 flags;
    115	UINT16 x;
    116	UINT16 y;
    117	DEFINE_EVENT_END(MouseEventEx)
    118
    119	DEFINE_EVENT_BEGIN(Timer)
    120	UINT64 now;
    121	DEFINE_EVENT_END(Timer)
    122
    123	DEFINE_EVENT_BEGIN(GraphicsReset)
    124	UINT32 width;
    125	UINT32 height;
    126	DEFINE_EVENT_END(GraphicsReset)
    127
    128#ifdef __cplusplus
    129}
    130#endif
    131
    132#endif /* FREERDP_EVENT_H */