]> git.ipfire.org Git - thirdparty/plymouth.git/commit
script: Add alignment argument to Image.Text
authorAnisse Astier <anisse@astier.eu>
Tue, 7 Aug 2012 08:22:09 +0000 (10:22 +0200)
committerRay Strode <rstrode@redhat.com>
Wed, 8 Aug 2012 19:52:45 +0000 (15:52 -0400)
commit468c53a128e69809c727c9c69e166297ed66d3b5
tree7e67a528796dc55dc18d90c40f1cb1c17a4fcc7f
parent96d8d38698b8bb05b7a1541f2cffd63a478e2bd4
script: Add alignment argument to Image.Text

Enables scripts to choose the text alignment they want with a seventh
argument to Image.Text API:

    new_image = Image.Text("Hello\n"
                           "Plymouth aligned world",
                            1, 1, 1, 1,
                           "DejaVu Bold,Italic 18",
                           "center");

This argument can be ignored, the default being left aligned.
Possible values are "left", "center", or "right".

http://lists.freedesktop.org/archives/plymouth/2012-August/000676.html
src/libply-splash-core/ply-terminal.h
src/libply-splash-core/ply-text-display.c
src/plugins/splash/script/script-lib-image.c
src/plugins/splash/script/script-lib-image.script