PreviousUpNext

15.3.764  src/lib/x-kit/xclient/src/window/font-index.api

## font-index.api
#
# This is a dedicated subfacility of 
#
# For the big picture see the imp dataflow diagrams in
#
#     src/lib/x-kit/xclient/src/window/xclient-ximps.pkg
#

# Compiled by:
#     src/lib/x-kit/xclient/xclient-internals.sublib


stipulate
    include package   threadkit;                                                                # threadkit                                     is from   src/lib/src/lib/thread-kit/src/core-thread-kit/threadkit.pkg
    #
#   package x2s =  xclient_to_sequencer;                                                        # xclient_to_sequencer                          is from   src/lib/x-kit/xclient/src/wire/xclient-to-sequencer.pkg
    package w2v =  wire_to_value;                                                               # wire_to_value                                 is from   src/lib/x-kit/xclient/src/wire/wire-to-value.pkg
    package xt  =  xtypes;                                                                      # xtypes                                        is from   src/lib/x-kit/xclient/src/wire/xtypes.pkg

    package fb  =  font_base;                                                                   # font_base                                     is from   src/lib/x-kit/xclient/src/window/font-base.pkg
    package dy  =  display;                                                                     # display                                       is from   src/lib/x-kit/xclient/src/wire/display.pkg
herein


    # This api is implemented in:
    #
    #     src/lib/x-kit/xclient/src/window/font-index.pkg
    #
    api Font_Index
    {
        Font_Index;                                                                             # Holds all mutable state maintained by ximp.
        #
        make_font_index: Void -> Font_Index;

        note_font:      Font_Index -> (String, fb::Font) -> Void;

        find_font:      Font_Index -> String -> Null_Or( fb::Font );

        make_font:      (xt::Font_Id,  dy::Xdisplay, w2v::Font_Query_Reply) -> fb::Font; 

    };                                                                                          # api Font_Index
end;




Comments and suggestions to: bugs@mythryl.org

PreviousUpNext