Quoted-Email colours. More...
Go to the source code of this file.
Macros | |
#define | COLOR_QUOTES_MAX 10 |
Ten colours, quoted0..quoted9 (quoted and quoted0 are equivalent) | |
#define | COLOR_QUOTED(cid) ((cid) == MT_COLOR_QUOTED) |
Functions | |
void | quoted_colors_init (void) |
Initialise the Quoted colours. | |
void | quoted_colors_reset (void) |
Reset the quoted-email colours. | |
void | quoted_colors_cleanup (void) |
Cleanup the quoted-email colours. | |
struct AttrColor * | quoted_colors_get (int q) |
Return the color of a quote, cycling through the used quotes. | |
int | quoted_colors_num_used (void) |
Return the number of used quotes. | |
bool | quoted_colors_parse_color (enum ColorId cid, struct AttrColor *ac_val, int q_level, int *rc, struct Buffer *err) |
Parse the 'color quoted' command. | |
enum CommandResult | quoted_colors_parse_uncolor (enum ColorId cid, int q_level, struct Buffer *err) |
Parse the 'uncolor quoted' command. | |
Variables | |
struct AttrColor | QuotedColors [] |
Array of colours for quoted email text. | |
Quoted-Email colours.
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 quoted.h.
#define COLOR_QUOTES_MAX 10 |
#define COLOR_QUOTED | ( | cid | ) | ((cid) == MT_COLOR_QUOTED) |
void quoted_colors_init | ( | void | ) |
Initialise the Quoted colours.
Definition at line 49 of file quoted.c.
void quoted_colors_reset | ( | void | ) |
Reset the quoted-email colours.
Definition at line 63 of file quoted.c.
void quoted_colors_cleanup | ( | void | ) |
Cleanup the quoted-email colours.
Definition at line 76 of file quoted.c.
struct AttrColor * quoted_colors_get | ( | int | q | ) |
Return the color of a quote, cycling through the used quotes.
q | Quote level |
enum | ColorId, e.g. MT_COLOR_QUOTED |
Definition at line 86 of file quoted.c.
int quoted_colors_num_used | ( | void | ) |
bool quoted_colors_parse_color | ( | enum ColorId | cid, |
struct AttrColor * | ac_val, | ||
int | q_level, | ||
int * | rc, | ||
struct Buffer * | err | ||
) |
Parse the 'color quoted' command.
cid | Colour Id, should be MT_COLOR_QUOTED |
ac_val | Colour value to use |
q_level | Quoting depth level |
rc | Return code, e.g. MUTT_CMD_SUCCESS |
err | Buffer for error messages |
true | Colour was parsed |
Definition at line 125 of file quoted.c.
enum CommandResult quoted_colors_parse_uncolor | ( | enum ColorId | cid, |
int | q_level, | ||
struct Buffer * | err | ||
) |
Parse the 'uncolor quoted' command.
cid | Colour Id, should be MT_COLOR_QUOTED |
q_level | Quoting depth level |
err | Buffer for error messages |
enum | CommandResult, e.g. MUTT_CMD_SUCCESS |
Definition at line 184 of file quoted.c.