kdk::KColorButton(3)

📦 version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

💖 kdk::KColorButton 💖

okay so bestie, welcome to the manual page for kdk::KColorButton, straight out of the Library Functions Manual. she is, and I cannot stress this enough, a button whose whole entire thing is setting colors and styles so she fits into literally any scenario you drop her into. main character energy fr fr. 🌈✨


🎀 NAME 🎀

kdk::KColorButton — provides a button for setting colors and styles, made to work in all kinds of different scenarios. 💅


✨ SYNOPSIS ✨

#include <kcolorbutton.h>

Inherits QPushButton. yes bestie she IS a QPushButton underneath, she just got a glow-up. 👑

🦋 Public Types 🦋

  • enum ButtonType { Circle, RoundedRect, CheckedRect } — KColorButton serves up three different styles. pick your fighter, no cap.

💖 Public Member Functions 💖

  • KColorButton (QWidget *parent=nullptr) — the constructor. she's here, she's born, and parent defaults to nullptr so she can absolutely be a free agent. 🫶
  • void setBackgroundColor (QColor color) — sets the colorButton background color.
  • QColor backgroundColor () — returns the colorButton background color.
  • void setBorderRadius (int radious) — sets the corner radius (and heads up, this only does anything for the RoundedRect and CheckedRect types). yes, the parameter is literally spelled radious in the docs. we don't fix it, we respect it. 🙈
  • int borderRadius () — returns the corner radius.
  • void setButtonType (KColorButton::ButtonType type) — sets the colorButton type.
  • KColorButton::ButtonType buttonType () — returns the colorButton type.

🌸 Protected Member Functions 🌸

  • void paintEvent (QPaintEvent *) override
  • QSize sizeHint () const override

🌟 Detailed Description 🌟

Provides a button for setting colors and styles, so it fits all sorts of different scenarios. that's the whole vibe. that's her whole deal. 💜

Since 2.0.2.1 — she's been serving since then, and she has not stopped. ⭐


💫 Member Function Documentation 💫

QColor kdk::KColorButton::backgroundColor ()

Returns the colorButton background color.

Returns — the original literally just says Returns and then stops. iconic minimalism honestly. 😭

int kdk::KColorButton::borderRadius ()

Returns the corner radius.

Returns — again, it just says Returns. we love a mysterious queen. 🎀

KColorButton::ButtonType kdk::KColorButton::buttonType ()

Returns the colorButton type.

Returns — blank. as the docs intended. 🦋

void kdk::KColorButton::setBackgroundColor (QColor color)

Sets the colorButton background color.

Parameters

  • color

void kdk::KColorButton::setBorderRadius (int radious)

Sets the corner radius (only takes effect for the RoundedRect and CheckedRect types).

Parameters

  • radious

void kdk::KColorButton::setButtonType (KColorButton::ButtonType type)

Sets the colorButton type.

Parameters

  • type

👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. the docs wrote themselves, we're just hyping them up. 💅


okay and that's the whole page bestie, go forth and color some buttons, slay, periodt. 🔥

kisses from LIBKYSDK-APPLICATIONS, Version version:3.0 — and remember the page you just read is kdk::KColorButton(3). 💖🌈🫶

📦 where this page comes from