aboutsummaryrefslogtreecommitdiff
path: root/xbattext.ms
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-03 09:43:22 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-03 09:43:22 +0200
commit31ec4c21055d796f3aa2e05020059a85413247a2 (patch)
treec57f2589759d21bb0093311a5e5fdb110d1b116f /xbattext.ms
parentd510f2da913d670df38016328c9fdf4a2e837318 (diff)
downloadxbattext-31ec4c21055d796f3aa2e05020059a85413247a2.tar.gz
Improve documentation
Diffstat (limited to 'xbattext.ms')
-rw-r--r--xbattext.ms26
1 files changed, 23 insertions, 3 deletions
diff --git a/xbattext.ms b/xbattext.ms
index 06c1269..8166f7d 100644
--- a/xbattext.ms
+++ b/xbattext.ms
@@ -1,4 +1,7 @@
.so /home/john/prj/re/re.tmac
+.de Q
+\\$3\(lq\\$1\(rq\\$2
+..
.TL
.BI xbattext ,
an X11 battery monitor for NetBSD
@@ -166,7 +169,24 @@ The battery percentage, contained in the
member, is written to an
.I XmString ,
which is a special type of string used by Motif.
-It is associated with tag,
+It is associated with a
+.Q "font list element tag" ,
which contains information about the visual characteristics of the text.
-To begin with, the string is set to use the default tag.
-.Re xbattext.c:/^ i = 0;/
+We just use the default.
+.Re xbattext.c:/^ \/\* set color and font/
+.LP
+In the following section, the
+.I wargs
+array mentioned earlier is filled with a number of arguments
+that determine the visual appearance of the label widget.
+The number of arguments set is kept track of in the
+.I i
+variable.
+To begin with, the widget's label string is set to the previously defined
+.I XmString
+value.
+.bp
+.Re xbattext.c:/^ \/\* check .* ac adapter .* plugged in/
+.LP
+\&
+.Re xbattext.c:/^ \/\* check low battery/