AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ACustomCaptionWindow Class Reference

Represents a window with customizable caption bar. More...

#include <AUI/Platform/ACustomCaptionWindow.h>

Detailed Description

ACustomCaptionWindow implements a fully custom window with customizable caption (title) bar. The way it's done is platform dependent. The goal is to implement a customizable caption bar yet preserve native system caption bar look and feel.

Use getCaptionContainer to fill up window caption.

Use getContentContainer to fill up the window contents.

Note
Do not use setContents/setLayout.

Depending on the platform, AUI provides following ASS classes to customize:

  • ".window-title" for whole window caption container. It has BackgroundSolid by default.
  • ".title" for window title label
  • ".window-title-content" for your contents
  • ".minimize" for minimize button
  • ".close" for close button
  • ".middle" for maximize button

    Windows-specific
    Since Windows does not provide APIs to the customize caption, AUI implements and renders caption by itself, including window icon, title and buttons.

Member Function Documentation

> All members, including inherited

◆ getCaptionContainer()

const _< AViewContainer > & ACustomCaptionWindow::getCaptionContainer ( ) const
inlinenodiscard
Returns
customizable container inside caption.

◆ getContentContainer()

const _< AViewContainer > & ACustomCaptionWindow::getContentContainer ( ) const
inlinenodiscard
Returns
actual window contents.

◆ isCustomCaptionMaximized()

bool ACustomCaptionWindow::isCustomCaptionMaximized ( )
overrideprotectedvirtual