Simple colour. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include "mutt/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "attr.h"#include "color.h"#include "commands.h"#include "debug.h"#include "module_data.h"#include "notify2.h"#include "simple2.h"
Include dependency graph for simple.c:Go to the source code of this file.
Functions | |
| void | simple_colors_init (struct AttrColor *simple_colors) |
| Initialise the simple colour definitions. | |
| void | simple_colors_reset (struct AttrColor *simple_colors) |
| Reset the simple colour definitions. | |
| void | simple_colors_cleanup (struct AttrColor *simple_colors) |
| Cleanup the simple colour definitions. | |
| struct AttrColor * | simple_color_get (enum ColorId cid) |
| Get the colour of an object by its ID. | |
| bool | simple_color_is_set (enum ColorId cid) |
| Is the object coloured? | |
| struct AttrColor * | simple_color_set (enum ColorId cid, struct AttrColor *ac_val) |
| Set the colour of a simple object. | |
| void | simple_color_reset (enum ColorId cid) |
| Clear the colour of a simple object. | |
Simple colour.
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 simple.c.
| void simple_colors_init | ( | struct AttrColor * | simple_colors | ) |
Initialise the simple colour definitions.
| simple_colors | Array of simple colours to initialise |
Definition at line 48 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void simple_colors_reset | ( | struct AttrColor * | simple_colors | ) |
Reset the simple colour definitions.
| simple_colors | Array of simple colours to reset |
Definition at line 72 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void simple_colors_cleanup | ( | struct AttrColor * | simple_colors | ) |
Cleanup the simple colour definitions.
| simple_colors | Array of simple colours to cleanup |
Definition at line 86 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:Get the colour of an object by its ID.
| cid | Colour ID, e.g. MT_COLOR_SEARCH |
| ptr | AttrColor of the object |
Definition at line 98 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool simple_color_is_set | ( | enum ColorId | cid | ) |
Is the object coloured?
| cid | Colour ID, e.g. MT_COLOR_SEARCH |
| true | Yes, a 'color' command has been used on this object |
Definition at line 120 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:Set the colour of a simple object.
| cid | Colour ID, e.g. MT_COLOR_SEARCH |
| ac_val | Colour value to use |
| ptr | Colour |
Definition at line 131 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void simple_color_reset | ( | enum ColorId | cid | ) |
Clear the colour of a simple object.
| cid | Colour ID, e.g. MT_COLOR_SEARCH |
Definition at line 155 of file simple.c.
Here is the call graph for this function:
Here is the caller graph for this function: