NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
status.h File Reference

GUI display a user-configurable status line. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void menu_status_line (struct Buffer *buf, struct IndexSharedData *shared, struct Menu *menu, int max_cols, const struct Expando *exp)
 Create the status line.
 

Detailed Description

GUI display a user-configurable status line.

Authors
  • Richard Russon

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.h.

Function Documentation

◆ menu_status_line()

void menu_status_line ( struct Buffer buf,
struct IndexSharedData shared,
struct Menu menu,
int  max_cols,
const struct Expando exp 
)

Create the status line.

Parameters
[out]bufBuffer in which to save string
[in]sharedShared Index data
[in]menuCurrent menu
[in]max_colsMaximum number of columns to use (-1 means unlimited)
[in]expExpando
See also
status_format_str()

Definition at line 495 of file status.c.

497{
498 struct MenuStatusLineData data = { shared, menu };
499
500 expando_render(exp, StatusRenderData, &data, MUTT_FORMAT_NO_FLAGS, max_cols, buf);
501}
int expando_render(const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Render an Expando + data into a string.
Definition: expando.c:110
#define MUTT_FORMAT_NO_FLAGS
No flags are set.
Definition: render.h:33
const struct ExpandoRenderData StatusRenderData[]
Callbacks for Status Expandos.
Definition: status.c:55
Data for creating a Menu line.
Definition: status.c:76
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
Definition: status.c:77
struct Menu * menu
Current Menu.
Definition: status.c:78
+ Here is the call graph for this function:
+ Here is the caller graph for this function: