ltk

API Reference

ltk

LTK

LTK

  • Function DO-EXECUTE (program args &optional (wt nil))
    execute program with args a list containing the arguments passed to the program if wt is non-nil, the function will wait for the execution of the program to return. returns a two way stream connected to stdin/stdout of the program
  • Variable *LTK-VERSION*
    "0.98"
  • Function WISH-STREAM (instance)
  • Function (setf WISH-STREAM) (value instance)
  • Function WISH-VARIABLES (instance)
  • Function (setf WISH-VARIABLES) (value instance)
  • Function MAKE-LTK-CONNECTION (&key (remotep nil))
  • Method WISH-VARIABLE (name (wish ltk-connection))
  • Method (setf WISH-VARIABLE) (val name (wish ltk-connection))
  • Variable *WISH*
    (ltk:make-ltk-connection)
    The current connection to an inferior wish.
  • Variable *DEBUG-TK*
    nil
  • Variable *DEBUG-BUFFERS*
    nil
  • Variable *WISH-PATHNAME*
    "wish"
  • Variable *WISH-ARGS*
    '("-name" "ltk")
  • Variable *INIT-WISH-HOOK*
    nil
  • Macro WITH-ATOMIC (&rest code)
  • Macro SEND-LAZY (&rest code)
  • Function START-WISH (&rest keys &key debugger-class remotep stream debug-tcl)
  • Function EXIT-WISH
  • Function SEND-WISH (text)
  • Function FORMAT-WISH (control &rest args)
    format 'args using 'control as control string to wish
  • Variable *PING-INTERVAL-SECONDS*
    nil
  • Function READ-EVENT (&key (blocking t) (no-event-value nil))
    read the next event from wish, return the event or nil, if there is no event to read and blocking is set to nil
  • Class TKOBJECT
    Base class for every Tk object
    NAME   Accessor: NAME
  • Class WIDGET  (TKOBJECT)
    Base class for all widget types
    MASTER   Accessor: MASTER
    WIDGET-PATH   Accessor: %WIDGET-PATH
    INIT-COMMAND   Accessor: INIT-COMMAND
  • Variable *TK*
    (make-instance 'ltk:widget :name "." :path ".")
    dummy widget to access the tk root object
  • Function AFTER (time fun)
    after <time> msec call function <fun>, returns the after event id, which can be passed to AFTER-CANCEL
  • Function AFTER-IDLE (fun)
    call fun when tk becomes idle, returns the after event id, which can be passed to AFTER-CANCEL
  • Function AFTER-CANCEL (id)
    cancels a call scheduled with AFTER or AFTER-IDLE by its id
  • Macro DEFARGS (class parents &rest defs)
  • Variable *CURSORS*
    (list "x_cursor" "arrow" "based_arrow_down" "based_arrow_up" "boat" "bogosity"
          "bottom_left_corner" "bottom_right_corner" "bottom_side" "bottom_tee"
          "box_spiral" "center_ptr" "circle" "clock" "coffee_mug" "cross"
          "cross_reverse" "crosshair" "diamond_cross" "dot" "dotbox" "double_arrow"
          "draft_large" "draft_small" "draped_box" "exchange" "fleur" "gobbler"
          "gumby" "hand1" "hand2" "heart" "icon" "iron_cross" "left_ptr"
          "left_side" "left_tee" "leftbutton" "ll_angle" "lr_angle" "man"
          "middlebutton" "mouse" "pencil" "pirate" "plus" "question_arrow"
          "right_ptr" "right_side" "right_tee" "rightbutton" "rtl_logo" "sailboat"
          "sb_down_arrow" "sb_h_double_arrow" "sb_left_arrow" "sb_right_arrow"
          "sb_up_arrow" "sb_v_double_arrow" "shuttle" "sizing" "spider" "spraycan"
          "star" "target" "tcross" "top_left_arrow" "top_left_corner"
          "top_right_corner" "top_side" "top_tee" "trek" "ul_angle" "umbrella"
          "ur_angle" "watch" "xterm")
  • Function BELL
  • Function DESTROY (widget)
  • Function CLIPBOARD-CLEAR
  • Function CLIPBOARD-GET
  • Function CLIPBOARD-APPEND (txt)
  • Generic-Function WIDGET-PATH (widget)
  • Method WIDGET-PATH ((w (eql nil)))
  • Method WIDGET-PATH ((widget widget))
    retrieve the slot value widget-path, if not given, create it
  • Generic-Function (setf COMMAND) (value widget)
  • Generic-Function COMMAND (widget)
  • Method COMMAND ((widget widget))
  • Generic-Function LOWER (widget &optional other)
  • Method LOWER ((widget widget) &optional other)
  • Generic-Function RAISE (widget &optional above)
  • Method RAISE ((widget widget) &optional above)
  • Struct EVENT
    X
    Y
    KEYCODE
    CHAR
    WIDTH
    HEIGHT
    ROOT-X
    ROOT-Y
    MOUSE-BUTTON
  • Function EVENT-X (instance)
  • Function (setf EVENT-X) (value instance)
  • Function EVENT-Y (instance)
  • Function (setf EVENT-Y) (value instance)
  • Function EVENT-KEYCODE (instance)
  • Function (setf EVENT-KEYCODE) (value instance)
  • Function EVENT-CHAR (instance)
  • Function (setf EVENT-CHAR) (value instance)
  • Function EVENT-WIDTH (instance)
  • Function (setf EVENT-WIDTH) (value instance)
  • Function EVENT-HEIGHT (instance)
  • Function (setf EVENT-HEIGHT) (value instance)
  • Function EVENT-ROOT-X (instance)
  • Function (setf EVENT-ROOT-X) (value instance)
  • Function EVENT-ROOT-Y (instance)
  • Function (setf EVENT-ROOT-Y) (value instance)
  • Function EVENT-MOUSE-BUTTON (instance)
  • Function (setf EVENT-MOUSE-BUTTON) (value instance)
  • Generic-Function BIND (w event fun &key append exclusive)
  • Method BIND ((w widget) event fun &key append exclusive)
    bind fun to event of the widget w
  • Method BIND (s event fun &key append exclusive)
    bind fun to event within context indicated by string ie. 'all' or 'Button'
  • Generic-Function CANVAS (w)
  • Generic-Function VALUE (widget)
    reads the value of the variable associated with the widget
  • Method VALUE ((v tkvariable))
  • Generic-Function (setf VALUE) (widget val)
  • Generic-Function TEXT (widget)
    reads the value of the textvariable associated with the widget
  • Method TEXT ((v tktextvariable))
  • Generic-Function (setf TEXT) (val variable)
  • Class MENUBAR  (WIDGET)
    No slots.
  • Function MAKE-MENUBAR (&optional (master nil))
  • Class MENU  (WIDGET)
    TEXT   Accessor: TEXT
    HELP   Accessor: MENU-HELP
  • Function MAKE-MENU (menu text &key underline name (tearoff 0))
  • Function ADD-SEPARATOR (menu)
  • Class MENUBUTTON  (MENUENTRY)
    No slots.
  • Function MAKE-MENUBUTTON (menu text command &key underline accelerator state)
  • Class MENUCHECKBUTTON  (MENUENTRY)
    COMMAND   Accessor: COMMAND
  • Method VALUE ((cb menucheckbutton))
  • Class MENURADIOBUTTON  (MENUENTRY)
    COMMAND   Accessor: COMMAND
    GROUP   Accessor: GROUP
  • Method VALUE ((cb menuradiobutton))
  • Generic-Function POPUP (menu x y)
  • Generic-Function MENU-DELETE (menu index &optional end)
  • Class BUTTON  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class CHECK-BUTTON  (TKTEXTVARIABLE, WIDGET, TKVARIABLE)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Method VALUE ((v check-button))
  • Class RADIO-BUTTON  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    VAL   Accessor: RADIO-BUTTON-VALUE
    VAR   Accessor: RADIO-BUTTON-VARIABLE
  • Method VALUE ((rb radio-button))
    reads the content of the shared variable of the radio button set
  • Method (setf VALUE) (val (rb radio-button))
    sets the content of the shared variable of the radio button set
  • Class COMBOBOX  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Generic-Function (setf OPTIONS) (value widget)
  • Method (setf OPTIONS) (values (combobox combobox))
  • Class ENTRY  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Function ENTRY-SELECT (e from to)
  • Generic-Function CURSOR-INDEX (widget)
    returns the cursor index in the widget
  • Method CURSOR-INDEX ((e entry))
  • Class FRAME  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class LABELFRAME  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class PANED-WINDOW  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class PROGRESSBAR  (WIDGET, TKVARIABLE)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Generic-Function ADD-PANE (window widget &rest options)
  • Generic-Function FORGET-PANE (window widget)
  • Generic-Function PANE-CONFIGURE (l i &rest options)
  • Generic-Function SASH-COORD (window index)
  • Method SASH-COORD ((pw paned-window) index)
  • Generic-Function SASH-PLACE (window index pos)
  • Method SASH-PLACE ((pw paned-window) index pos)
  • Class LISTBOX  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    XSCROLL   Accessor: XSCROLL
    YSCROLL   Accessor: YSCROLL
  • Generic-Function LISTBOX-APPEND (l vals)
  • Method LISTBOX-APPEND ((l listbox) values)
    append values (which may be a list) to the list box
  • Generic-Function LISTBOX-GET-SELECTION (l)
  • Method LISTBOX-GET-SELECTION ((l listbox))
  • Generic-Function LISTBOX-SELECT (l val)
  • Method LISTBOX-SELECT ((l listbox) val)
    modify the selection in listbox, if nil is given, the selection is cleared, if a number is given the corresponding element is selected, alternatively a list of numbers may be given
  • Generic-Function LISTBOX-CLEAR (l)
  • Generic-Function LISTBOX-DELETE (l start &optional end)
  • Generic-Function LISTBOX-INSERT (l index values)
  • Generic-Function LISTBOX-CONFIGURE (l i &rest options)
  • Generic-Function LISTBOX-NEAREST (listbox y)
  • Method LISTBOX-NEAREST ((l listbox) y)
  • Class SCROLLED-LISTBOX  (FRAME)
    LISTBOX   Accessor: LISTBOX
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Method LISTBOX-GET-SELECTION ((l scrolled-listbox))
  • Class NOTEBOOK  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Generic-Function NOTEBOOK-ADD (nb widget &rest options)
  • Method NOTEBOOK-ADD ((nb notebook) (w widget) &rest options)
  • Generic-Function NOTEBOOK-TAB (nb widget option value)
  • Method NOTEBOOK-TAB ((nb notebook) (w widget) option value)
  • Generic-Function NOTEBOOK-FORGET (nb widget)
  • Method NOTEBOOK-FORGET ((nb notebook) (w widget))
  • Generic-Function NOTEBOOK-HIDE (nb tab)
  • Method NOTEBOOK-HIDE ((nb notebook) (tab widget))
  • Generic-Function NOTEBOOK-IDENTIFY (nb x y)
  • Method NOTEBOOK-IDENTIFY ((nb notebook) x y)
  • Generic-Function NOTEBOOK-INDEX (nb tab)
  • Method NOTEBOOK-INDEX ((nb notebook) (tab widget))
  • Generic-Function NOTEBOOK-SELECT (nb tab)
  • Method NOTEBOOK-SELECT ((nb notebook) (tab widget))
  • Function NOTEBOOK-EVENTS
    <<NotebookTabChanged>>
  • Generic-Function NOTEBOOK-ENABLE-TRAVERSAL (nb)
  • Method NOTEBOOK-ENABLE-TRAVERSAL ((nb notebook))
  • Class SCROLLED-TEXT  (FRAME)
    TEXTBOX   Accessor: TEXTBOX
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Generic-Function APPEND-TEXT (txt text &rest tags)
  • Method TEXT ((self scrolled-text))
  • Method (setf TEXT) (new-text (self scrolled-text))
  • Generic-Function INSERT-OBJECT (txt object)
  • Generic-Function SEE (txt pos)
  • Class SCALE  (TKVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class SPINBOX  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class TOPLEVEL  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    PROTOCOL-DESTROY   Accessor: PROTOCOL-DESTROY
    TITLE   Accessor: TITLE
  • Function MAKE-TOPLEVEL (master)
  • Class LABEL  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class MESSAGE  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class SCROLLBAR  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Function MAKE-SCROLLBAR (master &key (orientation "vertical"))
  • Class SCROLLED-CANVAS  (FRAME)
    CANVAS   Accessor: CANVAS
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Function MAKE-SCROLLED-CANVAS (master)
  • Class SCROLLED-FRAME  (FRAME)
    FRAME-CLASS   Accessor: FRAME-CLASS
    CANVAS   Accessor: CANVAS
    INNER   Accessor: INTERIOR
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Method RESET-SCROLL ((sf scrolled-frame))
  • Method SCROLL-TO-TOP ((sf scrolled-frame))
  • Class SEPARATOR  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class SIZEGRIP  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
  • Class TREEVIEW  (TKTEXTVARIABLE, WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    XSCROLL   Accessor: XSCROLL
    YSCROLL   Accessor: YSCROLL
    ITEMS   Accessor: ITEMS
  • Class TREEITEM  (TKOBJECT)
    TREE   Accessor: TREE
    TEXT   Accessor: TEXT
    IMAGE   Accessor: IMAGE
    MASTER   Accessor: MASTER
    TAG   Accessor: TAG
    COLUMN-VALUES   Accessor: COLUMN-VALUES
  • Generic-Function CHILDREN (tree item)
  • Method CHILDREN ((tree treeview) item)
  • Method CHILDREN ((tree treeview) (item treeitem))
  • Generic-Function (setf CHILDREN) (val tree item)
  • Method (setf CHILDREN) (val (tree treeview) item)
  • Method (setf CHILDREN) (val (tree treeview) (item treeitem))
  • Generic-Function COLUMN-CONFIGURE (tree column option value &rest rest)
  • Method COLUMN-CONFIGURE ((tree treeview) column option value &rest rest)
  • Generic-Function TREEVIEW-DELETE (tree items)
  • Method TREEVIEW-DELETE ((tree treeview) item)
  • Method TREEVIEW-DELETE ((tree treeview) (item treeitem))
  • Method TREEVIEW-DELETE ((tree treeview) (items cons))
  • Generic-Function TREEVIEW-EXISTS (tree item)
  • Method TREEVIEW-EXISTS ((tree treeview) item)
  • Generic-Function TREEVIEW-FOCUS (tree)
  • Method TREEVIEW-FOCUS ((tree treeview))
  • Generic-Function TREEVIEW-IDENTIFY-ITEM (tree x y)
  • Method TREEVIEW-IDENTIFY-ITEM ((tree treeview) x y)
  • Generic-Function (setf TREEVIEW-FOCUS) (item tree)
  • Method (setf TREEVIEW-FOCUS) (item tree)
  • Method (setf TREEVIEW-FOCUS) ((item treeitem) tree)
  • Function DICTIONARY-PLIST (string)
    return a plist representing the TCL dictionary
  • Function TREEVIEW-INSERT (tree &rest options &key (parent "{}") (index "end") (id (create-name)) &allow-other-keys)
    Creates a new item. Returns its id. See also the treeitem class.
  • Function TREEVIEW-ITEM (tree item &rest options)
    Query or modify the options for the specified item.
  • Function TREEVIEW-COLUMN (tree column &rest options)
    Query or modify the options for the specified column.
  • Function TREEVIEW-HEADING (tree column &rest options &key command &allow-other-keys &aux (path (widget-path tree)))
    Query or modify the heading options for the specified column.
  • Function TREEVIEW-MOVE (tree item &optional parent index)
    Moves item to position index in parent's list of children.
  • Generic-Function TREEVIEW-GET-SELECTION (w)
  • Method TREEVIEW-GET-SELECTION ((tv treeview))
  • Generic-Function TREEVIEW-SET-SELECTION (w items)
  • Method TREEVIEW-SET-SELECTION ((tv treeview) items)
  • Class SCROLLED-TREEVIEW  (FRAME)
    TREEVIEW   Accessor: TREEVIEW
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Class CANVAS  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    XSCROLL   Accessor: XSCROLL
    YSCROLL   Accessor: YSCROLL
    SCROLLREGION-X0   Accessor: SCROLLREGION-X0
    SCROLLREGION-Y0   Accessor: SCROLLREGION-Y0
    SCROLLREGION-X1   Accessor: SCROLLREGION-X1
    SCROLLREGION-Y1   Accessor: SCROLLREGION-Y1
  • Class CANVAS-ITEM
    CANVAS   Accessor: CANVAS
    HANDLE   Accessor: HANDLE
  • Function MAKE-CANVAS (master &key (width nil) (height nil) (xscroll nil) (yscroll nil))
  • Generic-Function SCALE (canvas factor &optional factory)
  • Function MOVE-ALL (canvas dx dy)
  • Generic-Function BBOX (item)
  • Method BBOX ((item canvas-item))
  • Method BBOX ((canvas canvas))
  • Function CANVAS-BBOX (canvas handle)
  • Generic-Function CALC-SCROLL-REGION (canvas)
  • Generic-Function SET-COORDS (canvas item coords)
  • Method SET-COORDS ((canvas canvas) (item canvas-item) (coords list))
  • Generic-Function SET-COORDS* (canvas item &rest coords)
  • Method SET-COORDS* (canvas item &rest coords)
  • Method SET-COORDS* ((canvas canvas) (item canvas-item) &rest coords)
  • Generic-Function COORDS (item)
  • Method COORDS ((item canvas-item))
  • Generic-Function (setf COORDS) (val item)
  • Method (setf COORDS) (val (item canvas-item))
  • Generic-Function ITEMBIND (canvas w event fun)
  • Method ITEMBIND ((canvas canvas) (item canvas-item) event fun)
  • Method ITEMBIND ((canvas canvas) (item integer) event fun)
    bind fun to event of the widget w
  • Method TAGBIND ((canvas canvas) tag event fun &key exclusive)
    bind fun to event of the widget w
  • Method BIND ((w canvas-item) event fun &key append exclusive)
  • Generic-Function SCROLLREGION (canvas x0 y0 x1 y1)
  • Generic-Function CANVASX (canvas screenx)
  • Method CANVASX ((canvas canvas) screenx)
  • Generic-Function CANVASY (canvas screeny)
  • Method CANVASY ((canvas canvas) screeny)
  • Generic-Function ITEMMOVE (canvas item dx dy)
  • Method ITEMMOVE ((canvas canvas) (item canvas-item) dx dy)
  • Method ITEMMOVE ((canvas canvas) item dx dy)
  • Generic-Function ITEMDELETE (canvas item)
  • Generic-Function MOVE (item dx dy)
  • Method MOVE ((item canvas-item) dx dy)
  • Generic-Function CLEAR (widget)
  • Method CLEAR ((canvas canvas))
    delete all items within a canvas
  • Function CREATE-LINE (canvas coords)
  • Function CREATE-LINE* (canvas &rest coords)
  • Class CANVAS-LINE  (CANVAS-ITEM)
    No slots.
  • Function MAKE-LINE (canvas coords)
  • Function CREATE-POLYGON (canvas coords)
  • Class CANVAS-POLYGON  (CANVAS-ITEM)
    No slots.
  • Function MAKE-POLYGON (canvas coords)
  • Function CREATE-OVAL (canvas x0 y0 x1 y1)
  • Class CANVAS-OVAL  (CANVAS-ITEM)
    No slots.
  • Function MAKE-OVAL (canvas x0 y0 x1 y1)
  • Function CREATE-RECTANGLE (canvas x0 y0 x1 y1)
  • Class CANVAS-RECTANGLE  (CANVAS-ITEM)
    No slots.
  • Function MAKE-RECTANGLE (canvas x0 y0 x1 y1)
  • Function CREATE-ITEMS (canvas items)
    Create canvas items according to the item specs without returning ltk objects for them. This means, they cannot be accessed in any way, but also the creation does not flush the ltk output buffer.
  • Function MAKE-ITEMS (canvas items)
    Create canvas items according to the item specs and return a list of canvas-items.
  • Function CREATE-TEXT (canvas x y text)
  • Class CANVAS-TEXT  (CANVAS-ITEM)
    No slots.
  • Function CREATE-IMAGE (canvas x y &key image)
  • Class CANVAS-IMAGE  (CANVAS-ITEM)
    No slots.
  • Function IMAGE-SETPIXEL (image data x y &optional x2 y2)
  • Function CREATE-BITMAP (canvas x y &key (bitmap nil))
  • Function CREATE-ARC (canvas x0 y0 x1 y1 &key (start 0) (extent 180) (style "pieslice"))
  • Class CANVAS-ARC  (CANVAS-ITEM)
    No slots.
  • Class CANVAS-WINDOW  (CANVAS-ITEM)
    No slots.
  • Function CREATE-WINDOW (canvas x y widget &key (anchor :nw))
  • Function POSTSCRIPT (canvas filename &key rotate pagewidth pageheight)
  • Class TEXT  (WIDGET)
    WIDGET-CLASS-NAME   Accessor: WIDGET-CLASS-NAME
    XSCROLL   Accessor: XSCROLL
    YSCROLL   Accessor: YSCROLL
  • Method CURSOR-INDEX ((text text))
  • Function MAKE-TEXT (master &key (width nil) (height nil))
  • Function APPEND-NEWLINE (text)
  • Generic-Function CLEAR-TEXT (txt)
  • Generic-Function SEARCH-ALL-TEXT (text pattern)
  • Generic-Function SEARCH-NEXT-TEXT (text pattern)
  • Generic-Function TAG-CONFIGURE (txt tag option value &rest others)
  • Generic-Function TAG-BIND (txt tag event fun)
  • Method TAG-BIND ((txt text) tag event fun)
    bind fun to event of the tag of the text widget txt
  • Method TEXT ((text text))
  • Generic-Function SAVE-TEXT (txt filename)
  • Method SAVE-TEXT ((txt text) filename)
    save the content of the text widget into the file <filename>
  • Generic-Function LOAD-TEXT (txt filename)
  • Method LOAD-TEXT ((txt text) filename)
    load the content of the file <filename>
  • Class PHOTO-IMAGE  (TKOBJECT)
    DATA   Accessor: DATA
    FILE   Accessor: FILE
  • Method WIDGET-PATH ((photo photo-image))
  • Function MAKE-IMAGE
  • Generic-Function IMAGE-LOAD (p filename)
  • Generic-Function PACK (w &key side fill expand after before padx pady ipadx ipady anchor)
  • Method PACK ((list list) &rest rest)
  • Generic-Function PACK-PROPAGATE (widget flag)
  • Generic-Function PACK-FORGET (widget)
  • Generic-Function PACK-FORGET-ALL (widget)
  • Method PACK-FORGET-ALL ((w widget))
    removes all widgets packed into w
  • Generic-Function PLACE (widget x y &key anchor bordermode width height in relheight relwidth relx rely)
  • Generic-Function PLACE-FORGET (widget)
  • Generic-Function GRID (widget r c &key columnspan ipadx ipady padx pady rowspan sticky)
  • Generic-Function GRID-COLUMNCONFIGURE (widget c o v)
  • Generic-Function GRID-ROWCONFIGURE (widget r o v)
  • Generic-Function GRID-CONFIGURE (widget o v)
  • Generic-Function GRID-FORGET (widget)
  • Generic-Function CONFIGURE (widget option value &rest others)
  • Generic-Function CGET (widget option)
  • Method CGET ((widget widget) option)
  • Generic-Function ITEMCONFIGURE (widget item option value)
  • Generic-Function ITEMLOWER (w i &optional below)
  • Method LOWER ((item canvas-item) &optional below)
  • Generic-Function ITEMRAISE (w i &optional above)
  • Method RAISE ((item canvas-item) &optional above)
  • Generic-Function GRAB (toplevel &key global)
  • Generic-Function GRAB-RELEASE (toplevel)
  • Function FONT-CONFIGURE (name &key family size weight slant underline overstrike)
  • Function FONT-CREATE (name &key family size weight slant underline overstrike)
  • Function FONT-DELETE (&rest names)
  • Function FONT-METRICS (font)
  • Function FONT-FAMILIES
  • Generic-Function RESIZABLE (widget x y)
  • Generic-Function SET-WM-OVERRIDEREDIRECT (widget value)
  • Generic-Function WM-TITLE (widget title)
  • Generic-Function WM-MANAGE (widget)
  • Generic-Function WM-FORGET (widget)
  • Generic-Function WM-STATE (widget)
  • Method WM-STATE ((w widget))
  • Generic-Function (setf WM-STATE) (new-state widget)
  • Generic-Function MINSIZE (widget x y)
  • Generic-Function MAXSIZE (widget x y)
  • Generic-Function WITHDRAW (toplevel)
  • Generic-Function NORMALIZE (toplevel)
  • Generic-Function ICONIFY (toplevel)
  • Generic-Function DEICONIFY (toplevel)
  • Generic-Function GEOMETRY (toplevel)
  • Method GEOMETRY ((tl widget))
  • Generic-Function (setf GEOMETRY) (geometry widget)
  • Generic-Function SET-GEOMETRY (toplevel width height x y)
  • Generic-Function SET-GEOMETRY-WH (toplevel width height)
  • Generic-Function SET-GEOMETRY-XY (toplevel x y)
  • Generic-Function ON-CLOSE (toplevel fun)
  • Method ON-CLOSE ((tl (eql *tk*)) fun)
  • Generic-Function ON-FOCUS (toplevel fun)
  • Function ICONWINDOW (tl wid)
  • Function SCREEN-WIDTH (&optional (w nil))
    give the width of the screen in pixels (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-HEIGHT (&optional (w nil))
    give the height of the screen in pixels (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-WIDTH-MM (&optional (w nil))
    give the width of the screen in mm (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-HEIGHT-MM (&optional (w nil))
    give the height of the screen in mm (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-MOUSE-X (&optional (w nil))
    give x position of the mouse on screen (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-MOUSE-Y (&optional (w nil))
    give y position of the mouse on screen (if w is given, of the screen the widget w is displayed on)
  • Function SCREEN-MOUSE (&optional (w nil))
    give the position of the mouse on screen as (x y) (if w is given, of the screen the widget w is displayed on)
  • Function WINDOW-ID (tl)
    get the window id of the toplevel
  • Function WINDOW-WIDTH (tl)
    give the width of the toplevel in pixels
  • Function WINDOW-HEIGHT (tl)
    give the height of the toplevel in pixels
  • Function WINDOW-X (tl)
    give the x position of the toplevel in pixels
  • Function WINDOW-Y (tl)
    give the y position of the toplevel in pixels
  • Function WINDOW-TRANSIENT (tl win)
    set the transient property of tl to be transient to win or nil
  • Function FOCUS (widget)
  • Function FORCE-FOCUS (widget)
  • Function SET-FOCUS-NEXT (widget next)
  • Function CHOOSE-COLOR (&key parent title initialcolor)
  • Function GET-OPEN-FILE (&key (filetypes '(("all files" "*"))) (initialdir (namestring *default-pathname-defaults*)) multiple parent title)
  • Function GET-SAVE-FILE (&key (filetypes '(("all files" "*"))))
  • Function CHOOSE-DIRECTORY (&key (initialdir (namestring *default-pathname-defaults*)) parent title mustexist)
  • Variable *MB-ICONS*
    (list "error" "info" "question" "warning")
    icon names valid for message-box function
  • Function MESSAGE-BOX (message title type icon &key parent)
  • Function ASK-YESNO (message &key (title "") parent)
  • Function ASK-OKCANCEL (message &key (title "") parent)
  • Function DO-MSG (message &key (title "") parent)
  • Function CREATE-MENU2 (menutree)
  • Variable *DEBUG-SETTINGS-TABLE*
    (copy-tree
     '(((0 :minimum)) ((1 :deploy) . ltk::production-condition-handler)
       ((2 :develop) . ltk::graphical-condition-handler)
       ((3 :maximum) . ltk::paranoid-condition-handler)))
  • Variable *EXIT-MAINLOOP*
    nil
  • Variable *BREAK-MAINLOOP*
    nil
  • Function PROCESS-EVENTS
    A function to temporarliy yield control to wish so that pending events can be processed, useful in long loops or loops that depend on tk input to terminate
  • Function MAINLOOP (&key serve-event)
  • Macro WITH-LTK ((&rest keys &key (debug 2) stream serve-event &allow-other-keys) &body body)
    Create a new Ltk connection, evaluate BODY, and enter the main loop. :DEBUG indicates the level of debugging support to provide. It can be a number from 0 to 3, or one of the corresponding keywords: :minimum, :deploy, :develop, or :maximum. If :SERVE-EVENT is non-NIL, Ltk will use SERVE-EVENT handlers instead of a blocking main loop. This is only supported on SBCL and CMUCL. Note that using SERVE-EVENT means that WITH-LTK will return immediately after evaluating BODY. If :STREAM is non-NIL, it should be a two-way stream connected to a running wish. This will be used instead of running a new wish.
  • Function CALL-WITH-LTK (thunk &rest keys &key (debug 2) stream serve-event remotep &allow-other-keys)
    Functional interface to with-ltk, provided to allow the user the build similar macros.
  • Macro WITH-WIDGETS (layout &rest body)
  • Macro DEFWIDGET (namespec parent slots widgetspecs &rest body)
  • Function LTKTEST
  • Macro WITH-MODAL-TOPLEVEL ((var &rest toplevel-initargs) &body body)
  • Function INPUT-BOX (prompt &key (title "input") default)
  • Macro WITH-HOURGLASS (widgets &rest body)

Also exports

  • COMMON-LISP:LENGTH
  • COMMON-LISP:PHASE

LTK-USER

No exported symbols.

ltk-mw

Ltk Mega-Widgets

LTK-MW

  • Class REDRAW-ON-RESIZE
    No slots.
  • Class PROGRESS  (REDRAW-ON-RESIZE, CANVAS)
    RECT   Accessor: RECT
    COLOR   Accessor: BAR-COLOR
    PERCENT   Accessor: PERCENT
    TEXT-DISPLAY   Accessor: TEXT-DISPLAY
  • Method (setf BAR-COLOR) (val (progress progress))
  • Method (setf PERCENT) (val (progress progress))
  • Class HISTORY-ENTRY  (ENTRY)
    HISTORY   Accessor: HISTORY
    HISTORY-POS   Accessor: HISTORY-POS
    KEEPINPUT   Accessor: KEEPINPUT
  • Generic-Function CLEAR-HISTORY (entry)
  • Method CLEAR-HISTORY ((entry history-entry))
  • Class MENU-ENTRY  (ENTRY)
    MENU   Accessor: MENU
    ENTRIES   Accessor: ENTRIES
  • Generic-Function APPEND-ITEM (entry item)
  • Method APPEND-ITEM ((entry menu-entry) item)
  • Generic-Function DELETE-ITEM (entry index)
  • Method DELETE-ITEM ((entry menu-entry) index)
  • Class MW-LISTBOX  (FRAME)
    DATA   Accessor: DATA
    SLISTBOX   Accessor: SLISTBOX
    LABEL   Accessor: LABEL
    LBL   Accessor: LBL
    LISTBOX   Accessor: LISTBOX
    KEY   Accessor: KEY
    SELECTED   Accessor: SELECTED
    SELECTED-INDEX   Accessor: SELECTED-INDEX
    CALLBACK   Accessor: CALLBACK
  • Generic-Function SELECT-INDEX (lb index)
  • Method SELECT-INDEX ((lb mw-listbox) index)
  • Method (setf DATA) (val (lb mw-listbox))
  • Class TREELIST  (FRAME)
    DEPTH   Reader: DEPTH
    number of listboxes to display
    LISTBOX   Accessor: LISTBOX
    array with the displayed listboxes
    DATA   Accessor: DATA
    root node to be displayed (its children fill the first box)
    ENTRIES   Accessor: ENTRIES
    array of the lists displayed in the listbox
    OFFSET   Accessor: OFFSET
    index difference between data depth position and listbox position
    SELECTION   Accessor: SELECTION
    list of selected values
  • Generic-Function TREELIST-SELECT (tree node)
    callback for selecting a tree node
  • Method TREELIST-SELECT (tree node)
  • Generic-Function TREELIST-CHILDREN (tree node)
    list of children for a node in a tree
  • Method TREELIST-CHILDREN (tree node)
  • Generic-Function TREELIST-HAS-CHILDREN (tree node)
    is non-nil, if the node has children
  • Method TREELIST-HAS-CHILDREN (tree node)
  • Generic-Function TREELIST-NAME (tree node)
    String to display in the tree list for a node
  • Method TREELIST-NAME (tree (node string))
  • Method TREELIST-NAME ((tree demo-tree) (node list))
  • Method TREELIST-CHILDREN ((tree demo-tree) (node list))
  • Method TREELIST-CHILDREN ((tree demo-tree) (node string))
  • Class TOOLTIP  (TOPLEVEL)
    LABEL   Accessor: TOOLTIP-LABEL
    POPUP-TIME   Accessor: POPUP-TIME
  • Generic-Function SHOW (tooltip text x y)
  • Method SHOW ((tooltip tooltip) text x y)
  • Generic-Function SCHEDULE-TOOLTIP (tooltip text x y time)
  • Method SCHEDULE-TOOLTIP (tooltip text x y time)
  • Generic-Function CANCEL-TOOLTIP (tooltip)
  • Method CANCEL-TOOLTIP ((tooltip tooltip))
  • Generic-Function REGISTER-TOOLTIP (tooltip widget content)
  • Class GTREE  (CANVAS)
    DATA   Accessor: DATA
  • Class LIST-SELECT  (LISTBOX)
    DATA   Accessor: DATA
  • Generic-Function LIST-SELECT-DISPLAY (select item)
  • Method LIST-SELECT-DISPLAY ((select list-select) item)
  • Generic-Function SELECTED-ELEMENTS (select)
  • Method SELECTED-ELEMENTS ((select list-select))
  • Method (setf DATA) (val (select list-select))
  • Class SEARCHABLE-LISTBOX  (FRAME)
    SCROLLED-LISTBOX   Accessor: SCROLLED-LISTBOX
    LISTBOX   Accessor: LISTBOX
    ENTRY   Accessor: ENTRY
    DATA   Accessor: DATA
    KEY   Accessor: KEY
    SHRINK-TO-SEARCH   Accessor: SHRINK-TO-SEARCH
    DISPLAYED   Accessor: DISPLAYED
  • Class MULTISCROLL-THINGY  (FRAME)
    BACKGROUND   Accessor: BACKGROUND
    LEGEND-HEIGHT   Accessor: LEGEND-HEIGHT
    FRAME-CLASS   Accessor: FRAME-CLASS
    CANVAS1   Accessor: CANVAS1
    TOPFRAME   Accessor: TOPFRAME
    CANVAS2   Accessor: CANVAS2
    FRAME   Accessor: FRAME
    HSCROLL   Accessor: HSCROLL
    VSCROLL   Accessor: VSCROLL
  • Method LIST-SELECT-DISPLAY ((ls list-select) (entry list-select-demo-entry))
  • Function LTK-MW-DEMO

Also exports

  • LTK:CLEAR
  • LTK:ENTRY

ltk-remote

LTK remote

LTK-REMOTE

  • Function STOP-SERVER

Also exports

  • LTK:WITH-REMOTE-LTK