2
* $Id: titlebar.h 136 2006-09-22 20:06:05Z hubert@u.washington.edu $
4
* ========================================================================
5
* Copyright 2006 University of Washington
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
11
* http://www.apache.org/licenses/LICENSE-2.0
13
* ========================================================================
16
#ifndef PINE_TITLEBAR_INCLUDED
17
#define PINE_TITLEBAR_INCLUDED
20
#include "../pith/context.h"
21
#include "../pith/msgno.h"
24
typedef struct titlebarcontainer {
25
char titlebar_line[6*MAX_SCREEN_COLS+1];
30
typedef enum {TitleBarNone = 0, FolderName, MessageNumber, MsgTextPercent,
31
TextPercent, FileTextPercent, ThrdIndex,
32
ThrdMsgNum, ThrdMsgPercent} TitleBarType;
35
/* exported protoypes */
36
void end_titlebar(void);
37
void push_titlebar_state(void);
38
void pop_titlebar_state(void);
39
void mark_titlebar_dirty(void);
40
char *set_titlebar(char *, MAILSTREAM *, CONTEXT_S *, char *, MSGNO_S *, int,
41
TitleBarType, long, long, COLOR_PAIR *);
42
void redraw_titlebar(void);
43
TITLE_S *format_titlebar(void);
44
void update_titlebar_message(void);
45
void update_titlebar_percent(long);
46
void update_titlebar_lpercent(long);
49
#endif /* PINE_TITLEBAR_INCLUDED */