Dialog Windows. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "dialog.h"
#include "mutt_window.h"
Go to the source code of this file.
Functions | |
struct MuttWindow * | dialog_find (struct MuttWindow *win) |
Find the parent Dialog of a Window. | |
void | dialog_push (struct MuttWindow *dlg) |
Display a Window to the user. | |
void | dialog_pop (void) |
Hide a Window from the user. | |
static int | alldialogs_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. | |
struct MuttWindow * | alldialogs_new (void) |
Create the AllDialogs Window. | |
Variables | |
struct MuttWindow * | AllDialogsWindow = NULL |
Parent of all Dialogs. | |
Dialog Windows.
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 dialog.c.
struct MuttWindow * dialog_find | ( | struct MuttWindow * | win | ) |
Find the parent Dialog of a Window.
win | Window |
ptr | Dialog |
Dialog Windows will be owned by a MuttWindow of type WT_ALL_DIALOGS.
Definition at line 89 of file dialog.c.
void dialog_push | ( | struct MuttWindow * | dlg | ) |
Display a Window to the user.
dlg | Window to display |
The Dialog Windows are kept in a stack. The topmost is visible to the user, whilst the others are hidden.
When a Window is pushed, the old Window is marked as not visible.
Definition at line 109 of file dialog.c.
void dialog_pop | ( | void | ) |
Hide a Window from the user.
The topmost (visible) Window is removed from the stack and the next Window is marked as visible.
Definition at line 142 of file dialog.c.
struct MuttWindow * alldialogs_new | ( | void | ) |
Create the AllDialogs Window.
ptr | New AllDialogs Window |
Create the container for all the Dialogs.
Definition at line 210 of file dialog.c.
struct MuttWindow* AllDialogsWindow = NULL |