add cursor

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@230 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-08 17:34:14 +00:00
parent d6c787f1a7
commit 795bb2d03f
30 changed files with 350 additions and 33 deletions

66
src/cursor/text.c Normal file
View File

@@ -0,0 +1,66 @@
/* $Id$ */
#include <Mw/Milsko.h>
/**
* Copyright notice:
* Copyright (c) Digital Equipment Corporation,1988. All Rights Reserved.
*/
/**
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notices appear in all copies and
* that both those copyright notices and this permission notice appear
* in supporting documentation, and that the name
* Digital Equipment Corporation not be used in advertising or
* publicity pertaining to distribution of the software without
* specific, written prior permission. Digital
* Equipment Corporation makes no representations about the suitability
* of this software for any purpose. It is provided "as is" without
* express or implied warranty.
* DIGITAL EQUIPMENT CORPORATION DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
* DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
* CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
MwCursor MwCursorText = {
7, 16, -3, -7, {
0, /* ....... */
68, /* #...#.. */
40, /* .#.#... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
16, /* ..#.... */
40, /* .#.#... */
68, /* #...#.. */
0 /* ....... */
}};
MwCursor MwCursorTextMask = {
7, 16, -3, -7, {
0, /* ....... */
102, /* ##..##. */
60, /* .####.. */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
24, /* ..##... */
60, /* .####.. */
102, /* ##..##. */
0 /* ....... */
}};

View File

@@ -4,6 +4,8 @@
static int create(MwWidget handle) {
MwSetDefault(handle);
MwLLSetCursor(handle->lowlevel, &MwCursorText, &MwCursorTextMask);
return 0;
}