Simple colour. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "attr.h"
#include "color.h"
#include "command2.h"
#include "debug.h"
#include "notify2.h"
#include "simple2.h"
Go to the source code of this file.
Functions | |
void | simple_colors_init (void) |
Initialise the simple colour definitions. | |
void | simple_colors_cleanup (void) |
Reset 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? | |
bool | simple_color_is_header (enum ColorId cid) |
Colour is for an Email header. | |
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. | |
Variables | |
struct AttrColor | SimpleColors [MT_COLOR_MAX] |
Array of Simple colours. | |
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 | ( | void | ) |
Initialise the simple colour definitions.
Definition at line 47 of file simple.c.
void simple_colors_cleanup | ( | void | ) |
Reset the simple colour definitions.
Definition at line 71 of file simple.c.
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 88 of file simple.c.
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 109 of file simple.c.
bool simple_color_is_header | ( | enum ColorId | cid | ) |
Colour is for an Email header.
cid | Colour Id, e.g. MT_COLOR_HEADER |
true | Colour is for an Email header |
Definition at line 119 of file simple.c.
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 130 of file simple.c.
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 153 of file simple.c.
struct AttrColor SimpleColors[MT_COLOR_MAX] |