[MKHIVE/USETUP]
[reactos.git] / reactos / base / setup / usetup / interface / consup.h
index 60ca293..98be6db 100644 (file)
@@ -12,9 +12,9 @@
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 /*
  * COPYRIGHT:       See COPYING in the top level directory
  * PROGRAMMER:      Eric Kohl
  */
 
-#ifndef __CONSUP_H__
-#define __CONSUP_H__
+#pragma once
 
 #define FOREGROUND_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)
 #define FOREGROUND_YELLOW (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)
 #define BACKGROUND_WHITE (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)
 
+/* Text style */
+#define TEXT_STYLE_NORMAL      0x00000001
+#define TEXT_STYLE_HIGHLIGHT   0x00000002
+#define TEXT_STYLE_UNDERLINE   0x00000004
+
+/* Text type */
+#define TEXT_TYPE_REGULAR      0x00000008
+#define TEXT_TYPE_STATUS       0x00000010
+
+/* Text align */
+#define TEXT_ALIGN_DEFAULT     0x00000020
+#define TEXT_ALIGN_RIGHT       0x00000040
+#define TEXT_ALIGN_LEFT        0x00000080
+#define TEXT_ALIGN_CENTER      0x00000100
+
+/* Text padding */
+#define TEXT_PADDING_SMALL     0x00000200 /* One space */
+#define TEXT_PADDING_MEDIUM    0x00000400 /* Two spaces */
+#define TEXT_PADDING_BIG       0x00000800 /* Three spaces */
+
 extern HANDLE StdInput, StdOutput;
 extern SHORT xScreen, yScreen;
 
@@ -57,6 +76,9 @@ VOID
 CONSOLE_ConOutPuts(
        IN LPCSTR szText);
 
+BOOL
+CONSOLE_Flush(VOID);
+
 SHORT
 CONSOLE_GetCursorX(VOID);
 
@@ -135,6 +157,16 @@ VOID
 CONSOLE_SetStatusText(
        IN LPCSTR fmt, ...);
 
+VOID
+CONSOLE_SetStatusTextX(
+    IN SHORT x,
+       IN LPCSTR fmt, ...);
+
+VOID
+CONSOLE_SetStatusTextAutoFitX(
+    IN SHORT x,
+       IN LPCSTR fmt, ...);
+
 VOID
 CONSOLE_SetTextXY(
        IN SHORT x,
@@ -147,6 +179,11 @@ CONSOLE_SetUnderlinedTextXY(
        IN SHORT y,
        IN LPCSTR Text);
 
-#endif /* __CONSOLE_H__*/
+VOID
+CONSOLE_SetStyledText(
+       IN SHORT x,
+       IN SHORT y,
+       IN INT Flags,
+       IN LPCSTR Text);
 
 /* EOF */