This is a first draft of a set of common functions for working with GUIs.
The function library`s help (-h):
### lib_x-gtkdialog ### List of functions:
# gtkinfo: Get info on all gtkdialog GUIs running.
# Usage: gtkinfo ## Returns: $TITLE, $ID, $X, $Y, $W, $H
# guiinfo: Get info on specified GUI.
# Usage: guiinfo (Xwin.Title) ## Returns: $TITLE, $ID, $X, $Y, $W, $H
# scrnres: Get screen resolution.
# Usage: scrnres ## Returns: $sW, $sH
# xtitle: Search for Title of running Xwin. GUI.
# Usage: xtitle (Partial or Full Xwin. Title) ## Returns: $TITLE
# gtktitle: Search for Title of running gtkdialog GUI.
# Usage: gtktitle (Partial or Full gtkdialog Title) ## Returns: $TITLE
# over: Show child GUI over parent GUI position. ## Returns: $X, $Y
# Usage: over (Parent Xwin.Title) (Child W) (Child H) [offX] [offY]
# dock: Get docked child GUIs position.
# Usage: dock (Parent Xwin.Title) (Child W) (Child H) ## Returns: $X, $Y
## Screen docking positions for GUI. Commands:
# topleft, top, topright, left, center, right, bottomleft, bottom, bottomright.
# Usage: scrndock (Command) (Child W) (Child H) ## Returns: $X, $Y
I couldn`t think of any more functions to add, suggestions?
There`s a library Demo. file: lib_x-gtkdialog.demo
Xwin. + gtkdialog function library.
Xwin. + gtkdialog function library.
- Attachments
-
- lib_x-gtkdialog_b1.zip
- Unzip the two files into: /root/my-applications/bin
- (4.17 KiB) Downloaded 271 times