indexing description: "Console fill attributes." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_FILL_ATTRIBUTES_CONSTANTS inherit WEL_BIT_OPERATIONS export {NONE} all end feature -- Access foreground_blue: INTEGER is -- Add blue to foreground external "c [macro ]" alias "FOREGROUND_BLUE" end foreground_green: INTEGER is -- Add green to foreground external "c [macro ]" alias "FOREGROUND_GREEN" end foreground_red: INTEGER is -- Add red to foreground external "c [macro ]" alias "FOREGROUND_RED" end foreground_intensity: INTEGER is -- Increase console foreground intensity external "c [macro ]" alias "FOREGROUND_INTENSITY" end background_blue: INTEGER is -- Add blue to background external "c [macro ]" alias "BACKGROUND_BLUE" end background_green: INTEGER is -- Add green to background external "c [macro ]" alias "BACKGROUND_GREEN" end background_red: INTEGER is -- Add red to background external "c [macro ]" alias "BACKGROUND_RED" end background_intensity: INTEGER is -- Increase console background intensity external "c [macro ]" alias "BACKGROUND_INTENSITY" end is_valid_fill_attributes (an_integer: INTEGER): BOOLEAN is -- Is `an_integer' a valid fill atrtibutes? do Result := flag_set (foreground_blue + foreground_green + foreground_red + foreground_intensity + background_blue + background_green + background_red + background_intensity, an_integer) end end -- class WEL_FILL_ATTRIBUTES_CONSTANTS --|---------------------------------------------------------------- --| Windows Eiffel Library: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------