note description: "Console fill attributes." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_FILL_ATTRIBUTES_CONSTANTS feature -- Access foreground_blue: INTEGER -- Add blue to foreground external "c [macro ]" alias "FOREGROUND_BLUE" end foreground_green: INTEGER -- Add green to foreground external "c [macro ]" alias "FOREGROUND_GREEN" end foreground_red: INTEGER -- Add red to foreground external "c [macro ]" alias "FOREGROUND_RED" end foreground_intensity: INTEGER -- Increase console foreground intensity external "c [macro ]" alias "FOREGROUND_INTENSITY" end background_blue: INTEGER -- Add blue to background external "c [macro ]" alias "BACKGROUND_BLUE" end background_green: INTEGER -- Add green to background external "c [macro ]" alias "BACKGROUND_GREEN" end background_red: INTEGER -- Add red to background external "c [macro ]" alias "BACKGROUND_RED" end background_intensity: INTEGER -- Increase console background intensity external "c [macro ]" alias "BACKGROUND_INTENSITY" end is_valid_fill_attributes (an_integer: INTEGER): BOOLEAN -- Is `an_integer' a valid fill atrtibutes? do Result := an_integer = (an_integer & (foreground_blue | foreground_green | foreground_red | foreground_intensity | background_blue | background_green | background_red | background_intensity)) end note copyright: "Copyright (c) 1984-2009, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class WEL_FILL_ATTRIBUTES_CONSTANTS