ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

uimain.h
Go to the documentation of this file.
00001 /* -*- c-basic-offset: 8 -*-
00002    rdesktop: A Remote Desktop Protocol client.
00003    main ui header
00004    Copyright (C) Jay Sorg 2005-2006
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License along
00017    with this program; if not, write to the Free Software Foundation, Inc.,
00018    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00019 */
00020 
00021 #pragma once
00022 
00023 /* in uimain.c */
00024 int
00025 ui_main(void);
00026 void
00027 ui_invalidate(int x, int y, int cx, int cy);
00028 int
00029 ui_read_wire(void);
00030 void
00031 ui_mouse_move(int x, int y);
00032 void
00033 ui_mouse_button(int button, int x, int y, int down);
00034 void
00035 ui_key_down(int key, int ext);
00036 void
00037 ui_key_up(int key, int ext);
00038 
00039 void
00040 
00041 ui_set_modifier_state(int code);
00042 
00043 #define SPLIT_COLOUR15(c, r, g, b) \
00044 { \
00045   r = ((c >> 7) & 0xf8) | ((c >> 12) & 0x7); \
00046   g = ((c >> 2) & 0xf8) | ((c >>  8) & 0x7); \
00047   b = ((c << 3) & 0xf8) | ((c >>  2) & 0x7); \
00048 }
00049 
00050 #define SPLIT_COLOUR16(c, r, g, b) \
00051 { \
00052   r = ((c >> 8) & 0xf8) | ((c >> 13) & 0x7); \
00053   g = ((c >> 3) & 0xfc) | ((c >>  9) & 0x3); \
00054   b = ((c << 3) & 0xf8) | ((c >>  2) & 0x7); \
00055 }
00056 
00057 #define MAKE_COLOUR15(c, r, g, b) \
00058 { \
00059   c = ( \
00060         (((r & 0xff) >> 3) << 10) | \
00061         (((g & 0xff) >> 3) <<  5) | \
00062         (((b & 0xff) >> 3) <<  0) \
00063       ); \
00064 }
00065 
00066 #define MAKE_COLOUR32(c, r, g, b) \
00067 { \
00068   c = ( \
00069         ((r & 0xff) << 16) | \
00070         ((g & 0xff) <<  8) | \
00071         ((b & 0xff) <<  0) \
00072       ); \
00073 }
00074 
00075 #undef UI_MAX
00076 #define UI_MAX(a, b)  (((a) > (b)) ? (a) : (b))
00077 #undef UI_MIN
00078 #define UI_MIN(a, b)  (((a) < (b)) ? (a) : (b))

Generated on Sun May 27 2012 04:17:12 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.