Overview

The Non-Client Area refers to the parts of a window that are managed by the system rather than the application, including title bars, borders, and control buttons.

Components

  • Title Bar - Top bar with window title and controls
  • Borders - Window frame for resizing
  • Control Buttons - Close, minimize, maximize buttons
  • System Menu - Window menu icon

Rendering

The Non-Client Area is rendered by the kernel GUI system using functions in kernel/gui/window_controls.asm and kernel/gui/window.asm.

Title Bar

  • Blue background (Windows 10 style)
  • White text for window title
  • Height: 30 pixels

Control Buttons

  • Close button (red X)
  • Minimize button (horizontal line)
  • Maximize button (square)
  • Size: 30x30 pixels each

Hit Testing

The system performs hit testing to determine if mouse clicks are in the Non-Client Area, enabling window dragging, resizing, and control button activation.