Utility Window. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include "mutt/lib.h"#include "core/lib.h"#include "utilwin.h"#include "color/lib.h"#include "key/lib.h"#include "module_data.h"#include "mutt_curses.h"#include "mutt_window.h"
Include dependency graph for utilwin.c:Go to the source code of this file.
Data Structures | |
| struct | UtilWinData |
| Utility Window private data. More... | |
Macros | |
| #define | UTILWIN_COLS 10 |
| Width of the Utility Window in columns. | |
Functions | |
| static int | utilwin_recalc (struct MuttWindow *win) |
| Recalculate the Utility Window - Implements MuttWindow::recalc() -. | |
| static int | utilwin_repaint (struct MuttWindow *win) |
| Repaint the Utility Window - Implements MuttWindow::repaint() -. | |
| static void | utilwin_wdata_free (struct MuttWindow *win, void **ptr) |
| Free the private data - Implements MuttWindow::wdata_free() -. | |
| static int | utilwin_key_observer (struct NotifyCallback *nc) |
| Notification that key progress has changed - Implements observer_t -. | |
| static int | utilwin_window_observer (struct NotifyCallback *nc) |
| Notification that a Window has changed - Implements observer_t -. | |
| struct MuttWindow * | utilwin_new (void) |
| Create the Utility Window. | |
| const char * | utilwin_get_text (struct MuttWindow *win) |
| Get the text from the Utility Window. | |
| void | utilwin_set_text (struct MuttWindow *win, const char *text) |
| Set the text for the Utility Window. | |
Utility 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 utilwin.c.
| #define UTILWIN_COLS 10 |
| struct MuttWindow * utilwin_new | ( | void | ) |
Create the Utility Window.
| ptr | New Utility Window |
The window starts hidden and becomes visible when text is set.
Definition at line 215 of file utilwin.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const char * utilwin_get_text | ( | struct MuttWindow * | win | ) |
Get the text from the Utility Window.
| win | Utility Window |
| ptr | Text string |
| NULL | No text or invalid window |
Definition at line 247 of file utilwin.c.
Here is the call graph for this function:| void utilwin_set_text | ( | struct MuttWindow * | win, |
| const char * | text ) |
Set the text for the Utility Window.
| win | Utility Window (may be NULL to use the default) |
| text | Text to display (NULL or empty to hide) |
Setting text makes the window visible; clearing it hides the window.
Definition at line 271 of file utilwin.c.
Here is the call graph for this function:
Here is the caller graph for this function: