PreviousUpNext

15.4.1413  src/lib/x-kit/widget/edit/millboss-to-pane.pkg

## millboss-to-pane.pkg
#
# Here we define the management port which
#
#     src/lib/x-kit/widget/edit/textpane.pkg
#
# exports to
#
#     src/lib/x-kit/widget/edit/millboss-imp.pkg

# Compiled by:
#     src/lib/x-kit/widget/xkit-widget.sublib



stipulate
    include package   threadkit;                                                                # threadkit                     is from   src/lib/src/lib/thread-kit/src/core-thread-kit/threadkit.pkg
    #
    package g2d =  geometry2d;                                                                  # geometry2d                    is from   src/lib/std/2d/geometry2d.pkg
    package l2p =  textpane_to_screenline;                                                      # textpane_to_screenline        is from   src/lib/x-kit/widget/edit/textpane-to-screenline.pkg
herein

    # This port is implemented in:
    #
    #     src/lib/x-kit/widget/edit/textpane.pkg    
    #
    package millboss_to_pane {
        #
        Millboss_To_Pane
          =
          { pane_id:                            Id,                                             # Unique id to facilitate storing millboss_to_pane instances in indexed datastructures like red-black trees.
            #
            note_tag:                           Int -> Void,                                    # We use this to maintain a dense 1-based numbering of active panes. These tags are displayed on the modeline and used by "C-x o" (other_pane) in   src/lib/x-kit/widget/edit/fundamental-mode.pkg
            note_crypt:                         Crypt -> Void                                   # This is our generic mechanism for delivering linkup messages to pane instances (from, e.g., screenline.pkg instances) without millboss needing to know about the relevant types/interfaces. Using Crypt buys us modularity at a small cost in typesafety.
          };
    };
end;




Comments and suggestions to: bugs@mythryl.org

PreviousUpNext