C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
mem.c File Reference

Create and destroy main data structures for C-Menu. More...

#include <common.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for mem.c:

Go to the source code of this file.

Functions

Initnew_init (int argc, char **argv)
 Create and initialize Init structure.
Menunew_menu (Init *init, int argc, char **argv, int begy, int begx)
 Create and initialize Menu structure.
Picknew_pick (Init *init, int argc, char **argv, int begy, int begx)
 Create and initialize Pick structure.
Formnew_form (Init *init, int argc, char **argv, int begy, int begx)
 Create and initialize Form structure.
Viewnew_view (Init *init)
 Create and initialize View structure.
Viewdestroy_view (Init *init)
 Destroy View structure.
Formdestroy_form (Init *init)
 Destroy Form structure.
Pickdestroy_pick (Init *init)
 Destroy Pick structure.
Menudestroy_menu (Init *init)
 Destroy Menu structure.
Initdestroy_init (Init *init)
 Destroy Init structure.
bool init_menu_files (Init *init, int argc, char **argv)
 Initialize Menu file specifications.
bool init_pick_files (Init *init, int argc, char **argv)
 Initialize Pick file specifications.
bool init_form_files (Init *init, int argc, char **argv)
 Initialize Form file specifications.
bool init_view_files (Init *init)
 Initialize View file specifications.
bool verify_spec_arg (char *spec, char *org_spec, char *dir, char *alt_dir, int mode)
 Verify file specification argument.

Variables

int init_cnt = 0
Menumenu
Pickpick
Formform
Viewview

Detailed Description

Create and destroy main data structures for C-Menu.

Author
Bill Waller Copyright (c) 2025 MIT License billx.nosp@m.wall.nosp@m.er@gm.nosp@m.ail..nosp@m.com
Date
2026-02-09

Definition in file mem.c.

Variable Documentation

◆ form

Form* form

a pointer to the current form structure, used for managing and processing the form during form processing. This pointer can be updated to point to different form structures as needed, allowing for dynamic handling of multiple forms within the same application or session. The form pointer provides access to all the properties and data of the current form, enabling efficient management and processing of the form fields and text during user interactions and other events during form processing.

Definition at line 47 of file mem.c.

Referenced by form_desc_error(), form_display_screen(), form_engine(), form_post(), form_process(), init_form(), init_form_files(), mk_filler(), and new_form().

◆ init_cnt

int init_cnt = 0

Definition at line 43 of file mem.c.

Referenced by destroy_init(), and new_init().

◆ menu

Menu* menu

Definition at line 45 of file mem.c.

Referenced by destroy_menu(), init_menu_files(), main(), new_menu(), and parse_menu_description().

◆ pick

Pick* pick

pointer to Pick data structure

Definition at line 46 of file mem.c.

Referenced by destroy_pick(), display_pick_help(), exec_objects(), init_pick_files(), new_pick(), open_pick_win(), pick_engine(), and picker().

◆ view