TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::LinkStyle Struct Reference

Colors of a link run, normal and hovered. More...

#include <gui_core/text/gui_text_system.h>

Public Member Functions

bool operator== (const LinkStyle &) const noexcept=default

Public Attributes

color4b color { 64, 148, 255, 255 }
color4b hoverColor { 128, 200, 255, 255 }
MouseCursor cursor = MouseCursor::Pointer
 over the link
TextDecoration underline {}
 Its underline at rest, in CSS px: thickness, offset under the text, solid or dotted.

Detailed Description

Colors of a link run, normal and hovered.

Member Function Documentation

◆ operator==()

bool tachyon::LinkStyle::operator== ( const LinkStyle & ) const
defaultnoexcept

Member Data Documentation

◆ color

color4b tachyon::LinkStyle::color { 64, 148, 255, 255 }

◆ hoverColor

color4b tachyon::LinkStyle::hoverColor { 128, 200, 255, 255 }

◆ cursor

MouseCursor tachyon::LinkStyle::cursor = MouseCursor::Pointer

over the link

◆ underline

TextDecoration tachyon::LinkStyle::underline {}

Its underline at rest, in CSS px: thickness, offset under the text, solid or dotted.

A thickness of 0 underlines it only while it's hovered.


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