#include "config.h"
#include "mutt/lib.h"
#include "msgwin.h"
#include "color/lib.h"
#include "mutt_curses.h"
#include "mutt_window.h"
Go to the source code of this file.
Data Structures | |
struct | MsgWinPrivateData |
Private data for the Message Window. More... | |
Functions | |
static int | msgwin_recalc (struct MuttWindow *win) |
Recalculate the display of the Message Window - Implements MuttWindow::recalc() -. More... | |
static int | msgwin_repaint (struct MuttWindow *win) |
Redraw the Message Window - Implements MuttWindow::repaint() -. More... | |
static int | msgwin_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. More... | |
static void | msgwin_wdata_free (struct MuttWindow *win, void **ptr) |
Free the private data attached to the Message Window - Implements MuttWindow::wdata_free() -. More... | |
static struct MsgWinPrivateData * | msgwin_wdata_new (void) |
Create new private data for the Message Window. More... | |
struct MuttWindow * | msgwin_new (void) |
Create the Message Window. More... | |
const char * | msgwin_get_text (void) |
Get the text from the Message Window. More... | |
void | msgwin_set_text (enum ColorId cid, const char *text) |
Set the text for the Message Window. More... | |
void | msgwin_clear_text (void) |
Clear the text in the Message Window. More... | |
struct MuttWindow * | msgwin_get_window (void) |
Get the Message Window pointer. More... | |
size_t | msgwin_get_width (void) |
Get the width of the Message Window. More... | |
void | msgwin_set_height (short height) |
Resize the Message Window. More... | |
Variables | |
static struct MuttWindow * | MessageWindow = NULL |
Message Window for messages, warnings, errors etc. More... | |
Message Window.
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 msgwin.c.
|
static |
Create new private data for the Message Window.
ptr | New private data |
Definition at line 184 of file msgwin.c.
struct MuttWindow * msgwin_new | ( | void | ) |
Create the Message Window.
ptr | New Window |
Definition at line 197 of file msgwin.c.
const char * msgwin_get_text | ( | void | ) |
void msgwin_set_text | ( | enum ColorId | cid, |
const char * | text | ||
) |
Set the text for the Message Window.
cid | Colour Id, e.g. MT_COLOR_MESSAGE |
text | Text to set |
Definition at line 233 of file msgwin.c.
void msgwin_clear_text | ( | void | ) |
Clear the text in the Message Window.
Definition at line 249 of file msgwin.c.
struct MuttWindow * msgwin_get_window | ( | void | ) |
size_t msgwin_get_width | ( | void | ) |
Get the width of the Message Window.
num | Width of Message Window |
Definition at line 269 of file msgwin.c.
void msgwin_set_height | ( | short | height | ) |
height | Number of rows required |
Resize the other Windows to allow a multi-line message to be displayed.
Definition at line 283 of file msgwin.c.
|
static |