< prev index next >

src/windows/native/sun/windows/awt_Toolkit.h

Print this page
rev 12529 : 8169966: Larger AWT menus
Reviewed-by: azvegint, prr, rhalade, mschoene
   1 /*
   2  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 300 
 301     static void DestroyComponentHWND(HWND hwnd);
 302 
 303     // constants used to PostQuitMessage
 304 
 305     static const int EXIT_ENCLOSING_LOOP;
 306     static const int EXIT_ALL_ENCLOSING_LOOPS;
 307 
 308     // ...
 309 
 310     void QuitMessageLoop(int status);
 311 
 312     UINT MessageLoop(IDLEPROC lpIdleFunc, PEEKMESSAGEPROC lpPeekMessageFunc);
 313     BOOL PumpWaitingMessages(PEEKMESSAGEPROC lpPeekMessageFunc);
 314     void PumpToDestroy(class AwtComponent* p);
 315     void ProcessMsg(MSG& msg);
 316     BOOL PreProcessMsg(MSG& msg);
 317     BOOL PreProcessMouseMsg(class AwtComponent* p, MSG& msg);
 318     BOOL PreProcessKeyMsg(class AwtComponent* p, MSG& msg);
 319 


 320     /* Create an ID which maps to an AwtObject pointer, such as a menu. */
 321     UINT CreateCmdID(AwtObject* object);
 322 
 323     // removes cmd id mapping
 324     void RemoveCmdID(UINT id);
 325 
 326     /* Return the AwtObject associated with its ID. */
 327     AwtObject* LookupCmdID(UINT id);
 328 
 329     /* Return the current application icon. */
 330     HICON GetAwtIcon();
 331     HICON GetAwtIconSm();
 332 
 333     // Calculate a wave-like value out of the integer 'value' and
 334     // the specified period.
 335     // The argument 'value' is an integer 0, 1, 2, ... *infinity*.
 336     //
 337     // Examples:
 338     //    Period == 3
 339     //    Generated sequence: 0 1 2 1 0 .....


   1 /*
   2  * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 300 
 301     static void DestroyComponentHWND(HWND hwnd);
 302 
 303     // constants used to PostQuitMessage
 304 
 305     static const int EXIT_ENCLOSING_LOOP;
 306     static const int EXIT_ALL_ENCLOSING_LOOPS;
 307 
 308     // ...
 309 
 310     void QuitMessageLoop(int status);
 311 
 312     UINT MessageLoop(IDLEPROC lpIdleFunc, PEEKMESSAGEPROC lpPeekMessageFunc);
 313     BOOL PumpWaitingMessages(PEEKMESSAGEPROC lpPeekMessageFunc);
 314     void PumpToDestroy(class AwtComponent* p);
 315     void ProcessMsg(MSG& msg);
 316     BOOL PreProcessMsg(MSG& msg);
 317     BOOL PreProcessMouseMsg(class AwtComponent* p, MSG& msg);
 318     BOOL PreProcessKeyMsg(class AwtComponent* p, MSG& msg);
 319 
 320     /* Checks that an free ID exists. */
 321     jboolean isFreeIDAvailable();
 322     /* Create an ID which maps to an AwtObject pointer, such as a menu. */
 323     UINT CreateCmdID(AwtObject* object);
 324 
 325     // removes cmd id mapping
 326     void RemoveCmdID(UINT id);
 327 
 328     /* Return the AwtObject associated with its ID. */
 329     AwtObject* LookupCmdID(UINT id);
 330 
 331     /* Return the current application icon. */
 332     HICON GetAwtIcon();
 333     HICON GetAwtIconSm();
 334 
 335     // Calculate a wave-like value out of the integer 'value' and
 336     // the specified period.
 337     // The argument 'value' is an integer 0, 1, 2, ... *infinity*.
 338     //
 339     // Examples:
 340     //    Period == 3
 341     //    Generated sequence: 0 1 2 1 0 .....


< prev index next >