ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
asw::ui::InputStyle Struct Reference

How an input box looks. Set on Theme::input for every input box, or on InputBox::style for one input box. More...

#include <theme.h>

Collaboration diagram for asw::ui::InputStyle:
[legend]

Public Attributes

asw::Color bg { 20, 20, 20, 255 }
 Background color.
 
asw::Color bg_disabled { 30, 30, 30, 255 }
 Background color while disabled.
 
asw::Color border { 55, 55, 55, 255 }
 Border color.
 
asw::Color border_hover { 75, 75, 75, 255 }
 Border color while hovered.
 
float border_width = 1.0F
 Border width in pixels. 0 draws no border.
 
asw::Color text { 255, 255, 255, 255 }
 Text color.
 
asw::Color placeholder { 200, 200, 200, 255 }
 Placeholder text color.
 
asw::Color caret { 255, 255, 255, 255 }
 Text cursor color.
 

Detailed Description

How an input box looks. Set on Theme::input for every input box, or on InputBox::style for one input box.

Definition at line 116 of file theme.h.

Member Data Documentation

◆ bg

asw::Color asw::ui::InputStyle::bg { 20, 20, 20, 255 }

Background color.

Definition at line 118 of file theme.h.

◆ bg_disabled

asw::Color asw::ui::InputStyle::bg_disabled { 30, 30, 30, 255 }

Background color while disabled.

Definition at line 121 of file theme.h.

◆ border

asw::Color asw::ui::InputStyle::border { 55, 55, 55, 255 }

Border color.

Definition at line 124 of file theme.h.

◆ border_hover

asw::Color asw::ui::InputStyle::border_hover { 75, 75, 75, 255 }

Border color while hovered.

Definition at line 127 of file theme.h.

◆ border_width

float asw::ui::InputStyle::border_width = 1.0F

Border width in pixels. 0 draws no border.

Definition at line 130 of file theme.h.

◆ caret

asw::Color asw::ui::InputStyle::caret { 255, 255, 255, 255 }

Text cursor color.

Definition at line 139 of file theme.h.

◆ placeholder

asw::Color asw::ui::InputStyle::placeholder { 200, 200, 200, 255 }

Placeholder text color.

Definition at line 136 of file theme.h.

◆ text

asw::Color asw::ui::InputStyle::text { 255, 255, 255, 255 }

Text color.

Definition at line 133 of file theme.h.


The documentation for this struct was generated from the following file: