summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2002-08-30 11:59:35 +0000
committerKim F. Storm <storm@cua.dk>2002-08-30 11:59:35 +0000
commit4d418fcc500a18f4e6becfc3f2ae059a621d3137 (patch)
treeb4932a53e265538e89a9837f806dc81a99fabae7 /src/frame.h
parent654d5b91d7729a402ff52e96cb0fbce141979795 (diff)
downloademacs-4d418fcc500a18f4e6becfc3f2ae059a621d3137.tar.gz
(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/frame.h')
-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
vertical_scroll_bar_right
};
+enum text_cursor_kinds
+{
+ DEFAULT_CURSOR = -2,
+ NO_CURSOR = -1,
+ FILLED_BOX_CURSOR,
+ HOLLOW_BOX_CURSOR,
+ BAR_CURSOR,
+ HBAR_CURSOR
+};
+
#if !defined(MSDOS) && !defined(WINDOWSNT) && !defined(MAC_OS)
#if !defined(HAVE_X_WINDOWS)
@@ -322,6 +332,20 @@ struct frame
actually display them on this frame. */
enum vertical_scroll_bar_type vertical_scroll_bar_type;
+ /* What kind of text cursor should we draw in the future?
+ This should always be filled_box_cursor or bar_cursor. */
+ enum text_cursor_kinds desired_cursor;
+
+ /* Width of bar cursor (if we are using that). */
+ int cursor_width;
+
+ /* What kind of text cursor should we draw when the cursor blinks off?
+ This can be filled_box_cursor or bar_cursor or no_cursor. */
+ enum text_cursor_kinds blink_off_cursor;
+
+ /* Width of bar cursor (if we are using that) for blink-off state. */
+ int blink_off_cursor_width;
+
/* Non-0 means raise this frame to the top of the heap when selected. */
char auto_raise;
@@ -571,6 +595,11 @@ typedef struct frame *FRAME_PTR;
#define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items)
#define FRAME_COST_BAUD_RATE(f) ((f)->cost_calculation_baud_rate)
+#define FRAME_DESIRED_CURSOR(f) ((f)->desired_cursor)
+#define FRAME_BLINK_OFF_CURSOR(f) ((f)->blink_off_cursor)
+#define FRAME_CURSOR_WIDTH(f) ((f)->cursor_width)
+#define FRAME_BLINK_OFF_CURSOR_WIDTH(f) ((f)->blink_off_cursor_width)
+
/* Return a pointer to the face cache of frame F. */
#define FRAME_FACE_CACHE(F) (F)->face_cache