PreviousUpNext

15.4.1596  src/lib/x-kit/xclient/src/iccc/window-manager-hint.pkg

## window-manager-hint.pkg
#
# This gets exported as part of "selection stuff" section in
#
#     src/lib/x-kit/xclient/xclient.pkg 
#
# It is also used in
#
#     src/lib/x-kit/xclient/src/iccc/iccc-property-old.pkg
#     src/lib/x-kit/xclient/src/window/window-old.api

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

stipulate
    package g2d=  geometry2d;                   # geometry2d                    is from   src/lib/std/2d/geometry2d.pkg
    package xt =  xtypes;                       # xtypes                        is from   src/lib/x-kit/xclient/src/wire/xtypes.pkg
    #
    package sn  =  xsession_junk;               # xsession_junk                 is from   src/lib/x-kit/xclient/src/window/xsession-junk.pkg
#   package dt =  draw_types;                   # draw_types                    is from   src/lib/x-kit/xclient/src/window/draw-types.pkg
herein


    package   window_manager_hint
    : (weak)  Window_Manager_Hint               # Window_Manager_Hint           is from   src/lib/x-kit/xclient/src/iccc/window-manager-hint.api
    {
        # Hints about the window size 
        #
        Window_Manager_Size_Hint
          = HINT_USPOSITION
          | HINT_PPOSITION
          | HINT_USSIZE
          | HINT_PSIZE
          #
          | HINT_PMIN_SIZE     g2d::Size
          | HINT_PMAX_SIZE     g2d::Size
          | HINT_PRESIZE_INC   g2d::Size
          | HINT_PBASE_SIZE    g2d::Size
          #
          | HINT_PWIN_GRAVITY  xt::Gravity
          #
          | HINT_PASPECT { min:  (Int, Int),
                           max:  (Int, Int)
                         }
          ;


        # Window manager hints 
        #
        Window_Manager_Nonsize_Hint
          = HINT_INPUT  Bool                                    # Does this application rely on the window 
                                                                # manager to get keyboard input? 
                                                                # Initial window state (choose one) 
          | HINT_WITHDRAWN_STATE                                #     For windows that are not mapped.
          | HINT_NORMAL_STATE                                   #     Most applications want to start this way.
          | HINT_ICONIC_STATE                                   #     Application wants to start as an icon.
          | HINT_ICON_RO_PIXMAP          sn::Ro_Pixmap          # Icon specified as a ro_pixmap.
          | HINT_ICON_PIXMAP             sn::Rw_Pixmap          # Icon specified as an pixmap.
          | HINT_ICON_WINDOW             sn::Window             # Icon specified as a window.
          | HINT_ICON_MASK               sn::Rw_Pixmap          # icon mask bitmap.
          | HINT_ICON_POSITION           g2d::Point             # Initial position of icon.
          | HINT_WINDOW_GROUP            sn::Window             # The group leader.
          ;

    };

end;


## COPYRIGHT (c) 1990, 1991 by John H. Reppy.  See SMLNJ-COPYRIGHT file for details.
## Subsequent changes by Jeff Prothero Copyright (c) 2010-2015,
## released per terms of SMLNJ-COPYRIGHT.


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext