2 * $Id: titlebar.h 769 2007-10-24 00:15:40Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2017 Eduardo Chappa
6 * Copyright 2006-2007 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_TITLEBAR_INCLUDED
18 #define PINE_TITLEBAR_INCLUDED
21 #include "../pith/context.h"
22 #include "../pith/msgno.h"
23 #include "../pith/osdep/color.h"
26 typedef struct titlebarcontainer
{
27 char titlebar_line
[6*MAX_SCREEN_COLS
+1];
32 typedef enum {TitleBarNone
= 0, FolderName
, MessageNumber
, MsgTextPercent
,
33 TextPercent
, FileTextPercent
, ThrdIndex
,
34 ThrdMsgNum
, ThrdMsgPercent
} TitleBarType
;
37 /* exported protoypes */
38 void end_titlebar(void);
39 void push_titlebar_state(void);
40 void pop_titlebar_state(void);
41 void mark_titlebar_dirty(void);
42 char *set_titlebar(char *, MAILSTREAM
*, CONTEXT_S
*, char *, MSGNO_S
*, int,
43 TitleBarType
, long, long, COLOR_PAIR
*);
44 void redraw_titlebar(void);
45 TITLE_S
*format_titlebar(void);
46 COLOR_PAIR
*current_titlebar_color(void);
47 void update_titlebar_message(void);
48 void update_titlebar_percent(long);
49 void update_titlebar_lpercent(long);
50 void titlebar_stream_closing(MAILSTREAM
*);
51 int update_titlebar_status(void);
52 void check_cue_display(char *);
55 #endif /* PINE_TITLEBAR_INCLUDED */