GUI display a user-configurable status line. More...
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "status.h"
#include "index/lib.h"
#include "menu/lib.h"
#include "postpone/lib.h"
#include "format_flags.h"
#include "globals.h"
#include "mutt_mailbox.h"
#include "mutt_thread.h"
#include "muttlib.h"
#include "mview.h"
Go to the source code of this file.
Data Structures | |
struct | MenuStatusLineData |
Data for creating a Menu line. More... | |
Functions | |
static char * | get_sort_str (char *buf, size_t buflen, enum SortType method) |
Get the sort method as a string. | |
static const char * | status_format_str (char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags) |
Create the status bar string - Implements format_t -. | |
void | menu_status_line (char *buf, size_t buflen, struct IndexSharedData *shared, struct Menu *menu, int cols, const char *fmt) |
Create the status line. | |
GUI display a user-configurable status line.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file status.c.
|
static |
Get the sort method as a string.
ptr | Buffer pointer |
Definition at line 54 of file status.c.
void menu_status_line | ( | char * | buf, |
size_t | buflen, | ||
struct IndexSharedData * | shared, | ||
struct Menu * | menu, | ||
int | cols, | ||
const char * | fmt | ||
) |
Create the status line.
[out] | buf | Buffer in which to save string |
[in] | buflen | Buffer length |
[in] | shared | Shared Index data |
[in] | menu | Current menu |
[in] | cols | Maximum number of columns to use |
[in] | fmt | Format string |
Definition at line 477 of file status.c.