From a72997e0d4262997ceeb9e3b205b1c2c09c7b268 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Mon, 14 Jul 2003 14:37:10 +0000 Subject: [PATCH] Changes to support system cursors Moved cursor_which defs to a separate file git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3967 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/app/ServerProtocol.h | 8 +++++ headers/private/app/SysCursor.h | 45 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 headers/private/app/SysCursor.h diff --git a/headers/private/app/ServerProtocol.h b/headers/private/app/ServerProtocol.h index 84846e176e..8eb60cb5b7 100644 --- a/headers/private/app/ServerProtocol.h +++ b/headers/private/app/ServerProtocol.h @@ -25,9 +25,17 @@ AS_DELETE_WINDOW, AS_CREATE_BITMAP, AS_DELETE_BITMAP, +// Cursor definitions AS_SET_CURSOR_DATA, AS_SET_CURSOR_BCURSOR, AS_SET_CURSOR_BBITMAP, +AS_SET_CURSOR_SYSTEM, + +AS_SET_SYSCURSOR_DATA, +AS_SET_SYSCURSOR_BCURSOR, +AS_SET_SYSCURSOR_BBITMAP, +AS_GET_SYSCURSOR, + AS_SHOW_CURSOR, AS_HIDE_CURSOR, AS_OBSCURE_CURSOR, diff --git a/headers/private/app/SysCursor.h b/headers/private/app/SysCursor.h new file mode 100644 index 0000000000..723d33d7f4 --- /dev/null +++ b/headers/private/app/SysCursor.h @@ -0,0 +1,45 @@ +//------------------------------------------------------------------------------ +// Copyright (c) 2001-2002, OpenBeOS +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. +// +// File Name: SysCursor.h +// Author: DarkWyrm +// Description: *PRIVATE* Definition header for system cursor API +// +//------------------------------------------------------------------------------ +#ifndef SYSCURSOR_H_ +#define SYSCURSOR_H_ + +typedef enum +{ + B_CURSOR_DEFAULT=0, + B_CURSOR_TEXT, + B_CURSOR_MOVE, + B_CURSOR_DRAG, + B_CURSOR_RESIZE, + B_CURSOR_RESIZE_NWSE, + B_CURSOR_RESIZE_NESW, + B_CURSOR_RESIZE_NS, + B_CURSOR_RESIZE_EW, + B_CURSOR_OTHER, + B_CURSOR_INVALID +} cursor_which; + +#endif