aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2002-08-30 11:59:35 +0000
committerKim F. Storm2002-08-30 11:59:35 +0000
commit4d418fcc500a18f4e6becfc3f2ae059a621d3137 (patch)
treeb4932a53e265538e89a9837f806dc81a99fabae7 /src
parent654d5b91d7729a402ff52e96cb0fbce141979795 (diff)
downloademacs-4d418fcc500a18f4e6becfc3f2ae059a621d3137.tar.gz
emacs-4d418fcc500a18f4e6becfc3f2ae059a621d3137.zip
(enum text_cursor_kinds): Consolidated here.
Added DEFAULT_CURSOR value. (struct frame) <desired_cursor, cursor_width> <blink_off_cursor, blink_off_cursor_width>: New fields. Consolidated from output_x, output_w32 and output_mac structs. (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR) (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
Diffstat (limited to 'src')
-rw-r--r--src/frame.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index 9f6f6474e9c..d28afde3814 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -57,6 +57,16 @@ enum vertical_scroll_bar_type
57 vertical_scroll_bar_right 57 vertical_scroll_bar_right
58}; 58};
59 59
60enum text_cursor_kinds
61{
62 DEFAULT_CURSOR = -2,
63 NO_CURSOR = -1,
64 FILLED_BOX_CURSOR,
65 HOLLOW_BOX_CURSOR,
66 BAR_CURSOR,
67 HBAR_CURSOR
68};
69
60#if !defined(MSDOS) && !defined(WINDOWSNT) && !defined(MAC_OS) 70#if !defined(MSDOS) && !defined(WINDOWSNT) && !defined(MAC_OS)
61 71
62#if !defined(HAVE_X_WINDOWS) 72#if !defined(HAVE_X_WINDOWS)
@@ -322,6 +332,20 @@ struct frame
322 actually display them on this frame. */ 332 actually display them on this frame. */
323 enum vertical_scroll_bar_type vertical_scroll_bar_type; 333 enum vertical_scroll_bar_type vertical_scroll_bar_type;
324 334
335 /* What kind of text cursor should we draw in the future?
336 This should always be filled_box_cursor or bar_cursor. */
337 enum text_cursor_kinds desired_cursor;
338
339 /* Width of bar cursor (if we are using that). */
340 int cursor_width;
341
342 /* What kind of text cursor should we draw when the cursor blinks off?
343 This can be filled_box_cursor or bar_cursor or no_cursor. */
344 enum text_cursor_kinds blink_off_cursor;
345
346 /* Width of bar cursor (if we are using that) for blink-off state. */
347 int blink_off_cursor_width;
348
325 /* Non-0 means raise this frame to the top of the heap when selected. */ 349 /* Non-0 means raise this frame to the top of the heap when selected. */
326 char auto_raise; 350 char auto_raise;
327 351
@@ -571,6 +595,11 @@ typedef struct frame *FRAME_PTR;
571#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items) 595#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items)
572#define FRAME_COST_BAUD_RATE(f) ((f)->cost_calculation_baud_rate) 596#define FRAME_COST_BAUD_RATE(f) ((f)->cost_calculation_baud_rate)
573 597
598#define FRAME_DESIRED_CURSOR(f) ((f)->desired_cursor)
599#define FRAME_BLINK_OFF_CURSOR(f) ((f)->blink_off_cursor)
600#define FRAME_CURSOR_WIDTH(f) ((f)->cursor_width)
601#define FRAME_BLINK_OFF_CURSOR_WIDTH(f) ((f)->blink_off_cursor_width)
602
574/* Return a pointer to the face cache of frame F. */ 603/* Return a pointer to the face cache of frame F. */
575 604
576#define FRAME_FACE_CACHE(F) (F)->face_cache 605#define FRAME_FACE_CACHE(F) (F)->face_cache