📄 rmaevent.pas
字号:
unit RmaEvent;
interface
//***************************************************************************
//
// $Id: rmaevent.h,v 1.8 1999/02/17 02:40:44 nhart Exp $
//
// Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
//
// This program contains proprietary information of RealNetworks, Inc.,
// and is licensed subject to restrictions on use and distribution.
//
// rmaevent.h
//
//
const
RMA_BASE_EVENT = $00001000;
{$EXTERNALSYM RMA_BASE_EVENT}
// This class of events are events sent to site users of windowless
// sites to notify them of events on the site with platform independent
// messages.
RMA_SURFACE_EVENTS = RMA_BASE_EVENT + $00001000;
{$EXTERNALSYM RMA_SURFACE_EVENTS}
// RMA_SURFACE_UPDATE is sent by the site to the renderer when the
// surface has damage and needs to be updated. The event struct is
// filled out as follows:
//
// ULONG32 event; RMA_SURFACE_UPDATE
// void* window; Native Window - may be null if no window is associated with the site
// void* param1; IRMAVideoSurface*
// void* param2; UNIX - PNxWindow, Mac/Win - UNUSED
//
// void* result; HRESULT result code of message handling
// BOOL handled; TRUE if handled, FALSE if not handled
//
RMA_SURFACE_UPDATE = RMA_SURFACE_EVENTS + 1;
{$EXTERNALSYM RMA_SURFACE_UPDATE}
// Each event should document the values of PNxEvent struct expected
// on input and output.
// The next surface event should use this ID:
RMA_SURFACE_NEXT_EVENT = RMA_SURFACE_EVENTS + 2;
{$EXTERNALSYM RMA_SURFACE_NEXT_EVENT}
// This class of events are sent to site users to
// notify them of mouse events.
// All mouse events have the event structure filled out as follows:
//
// UINT32 event;
// void* window;
// void* param1; PNxPoint struct with mouse position local to the renderer
// void* param2; UINT32 of flags for modifier keys
// void* result; HRESULT result code of message handling
// BOOL handled; TRUE if handled, FALSE if not handled
//
RMA_MOUSE_EVENTS = RMA_BASE_EVENT + $00002000;
{$EXTERNALSYM RMA_MOUSE_EVENTS}
RMA_SHIFT_KEY = $00000001;
{$EXTERNALSYM RMA_SHIFT_KEY}
RMA_CTRL_KEY = $00000002;
{$EXTERNALSYM RMA_CTRL_KEY}
RMA_ALT_COMMAND_KEY = $00000004; // Apple/Splat key
{$EXTERNALSYM RMA_ALT_COMMAND_KEY}
RMA_PRIMARY_BUTTON_DOWN = RMA_MOUSE_EVENTS + 1;
{$EXTERNALSYM RMA_PRIMARY_BUTTON_DOWN}
RMA_PRIMARY_BUTTON_UP = RMA_MOUSE_EVENTS + 2;
{$EXTERNALSYM RMA_PRIMARY_BUTTON_UP}
RMA_CONTEXT_BUTTON_DOWN = RMA_MOUSE_EVENTS + 3;
{$EXTERNALSYM RMA_CONTEXT_BUTTON_DOWN}
RMA_CONTEXT_BUTTON_UP = RMA_MOUSE_EVENTS + 4;
{$EXTERNALSYM RMA_CONTEXT_BUTTON_UP}
RMA_MOUSE_MOVE = RMA_MOUSE_EVENTS + 5;
{$EXTERNALSYM RMA_MOUSE_MOVE}
RMA_MOUSE_ENTER = RMA_MOUSE_EVENTS + 6;
{$EXTERNALSYM RMA_MOUSE_ENTER}
RMA_MOUSE_LEAVE = RMA_MOUSE_EVENTS + 7;
{$EXTERNALSYM RMA_MOUSE_LEAVE}
// This class of events are sent to renderers to
// notify them of the validation of the window
// All window events have the event structure filled out as follows:
//
// UINT32 event;
// void* window;
// void* UNUSED;
// void* UNUSED;
// void* result; HRESULT result code of message handling
// BOOL handled; TRUE if handled, FALSE if not handled
//
RMA_WINDOW_EVENTS = RMA_BASE_EVENT + $00003000;
{$EXTERNALSYM RMA_WINDOW_EVENTS}
RMA_ATTACH_WINDOW = RMA_WINDOW_EVENTS + 1;
{$EXTERNALSYM RMA_ATTACH_WINDOW}
RMA_DETACH_WINDOW = RMA_WINDOW_EVENTS + 2;
{$EXTERNALSYM RMA_DETACH_WINDOW}
// Each event class should have a comment describing the kinds
// of events that belong to this class
// The next event class should use this base:
RMA_NEXT_EVENT_CLASS = RMA_BASE_EVENT + $00004000;
{$EXTERNALSYM RMA_NEXT_EVENT_CLASS}
implementation
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -