From cbcfc5f7d08e210a3477071607a3195fa31f06a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 29 Aug 2023 13:03:09 +0200 Subject: Introduce autoTitleRightAlign column flag Instead of handling PERCENT_CPU as a special case for whether to align the title of a dynamically sized column to the right or the left introduce a new flag, which can be reused by other columns. --- Process.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Process.h') diff --git a/Process.h b/Process.h index 3903a407..6a80bc51 100644 --- a/Process.h +++ b/Process.h @@ -210,6 +210,9 @@ typedef struct ProcessFieldData_ { /* Whether the column width is dynamically adjusted (the minimum width is determined by the title length) */ bool autoWidth; + + /* Whether the title of a column with dynamically adjusted width is right aligned (default is left aligned) */ + bool autoTitleRightAlign; } ProcessFieldData; #define LAST_PROCESSFIELD LAST_RESERVED_FIELD -- cgit v1.2.3