kdk::KIntroWidget(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

๐Ÿ’– kdk::KIntroWidget ๐Ÿ’–

okay bestie, this one's from the Library Functions Manual (kdk::KIntroWidget(3)) and it's giving widget energy, so let's get into it ๐Ÿซถ


โœจ NAME โœจ

kdk::KIntroWidget โ€” that's the whole name, no notes ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

Inherits QWidget. yep, it's a widget, it's in the QWidget family tree, iconic behavior honestly ๐Ÿ‘‘

๐ŸŒธ Signals

  • void rightClick (QPoint point) โ€” it emits this, and it hands over a QPoint point with it, so you know exactly where it happened ๐Ÿ“

๐ŸŽ€ Public Member Functions

  • KIntroWidget (QWidget *parent=nullptr) โ€” constructor, with parent defaulting to nullptr ๐Ÿผ
  • void setViewType (ViewType type) โ€” ่ฎพ็ฝฎ่ง†ๅ›พๆ ทๅผ (setting the view style, periodt) ๐Ÿชž
  • void setMainLabel (QString str) โ€” ่ฎพ็ฝฎไธปๆ–‡ๆœฌ (the main text, the moment, the main character) ๐ŸŒŸ
  • void setSubLabel (QString str) โ€” ่ฎพ็ฝฎๆฌก็บงๆ–‡ๆœฌ (the secondary text, the supporting cast) ๐ŸŽ€
  • void setBorderRadius (int radius) โ€” ่ฎพ็ฝฎๅœ†่ง’ (rounded corners, we love a soft edge) ๐Ÿงš
  • void setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight) โ€” ่ฎพ็ฝฎๅœ†่ง’ (also rounded corners, but you're picking all four yourself, queen) ๐Ÿ’…
  • void setTitleColor (QColor color) โ€” ่ฎพ็ฝฎๆ ‡้ข˜้ขœ่‰ฒ (title color, go off) ๐ŸŒˆ

๐Ÿ’… Protected Member Functions

  • void paintEvent (QPaintEvent *event) ๐ŸŽจ
  • bool eventFilter (QObject *watched, QEvent *event) ๐Ÿ”
  • QSize sizeHint () const override ๐Ÿ“
  • void mousePressEvent (QMouseEvent *event) ๐Ÿ–ฑ๏ธ
  • void mouseReleaseEvent (QMouseEvent *event) ๐Ÿ–ฑ๏ธ

๐Ÿ“ Member Function Documentation ๐Ÿ“

๐Ÿงš void kdk::KIntroWidget::setBorderRadius (int bottomLeft, int topLeft, int topRight, int bottomRight)

่ฎพ็ฝฎๅœ†่ง’ โ€” you're setting the corner radius, and you're doing it per-corner because you have range ๐Ÿ’…

Parameters

  • bottomLeft โ€” the bottom-left corner ๐ŸŒ™
  • topLeft โ€” the top-left corner โญ
  • topRight โ€” the top-right corner โœจ
  • bottomRight โ€” the bottom-right corner ๐ŸŒธ

๐Ÿงš void kdk::KIntroWidget::setBorderRadius (int radius)

่ฎพ็ฝฎๅœ†่ง’ โ€” same energy, but one single radius for the whole thing, no favorites ๐Ÿ’–

Parameters

  • radius โ€” the radius ๐Ÿ”ต

๐ŸŒŸ void kdk::KIntroWidget::setMainLabel (QString str)

่ฎพ็ฝฎไธปๆ–‡ๆœฌ โ€” this sets the main text, the headline, the main character moment ๐Ÿ‘‘

Parameters

  • str โ€” the string ๐Ÿ“

๐ŸŽ€ void kdk::KIntroWidget::setSubLabel (QString str)

่ฎพ็ฝฎๆฌก็บงๆ–‡ๆœฌ โ€” and this sets the secondary text, the lil supporting line ๐Ÿซถ

Parameters

  • str โ€” the string ๐Ÿ“

๐ŸŒˆ void kdk::KIntroWidget::setTitleColor (QColor color)

่ฎพ็ฝฎๆ ‡้ข˜้ขœ่‰ฒ โ€” sets the title color, go make it pretty ๐ŸŽจ

Parameters

  • color โ€” the color ๐ŸŽจ

๐Ÿชž void kdk::KIntroWidget::setViewType (ViewType type)

่ฎพ็ฝฎ่ง†ๅ›พๆ ทๅผ โ€” sets the view style, and that's the vibe check passed โœ…

Parameters

  • type โ€” the ViewType ๐ŸŒ€

๐Ÿ‘‘ Author ๐Ÿ‘‘

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS, straight from the source code. no cap, the robots wrote this one ๐Ÿค–


okay that's the whole page bestie, we ate and left no crumbs ๐Ÿ’–โœจ anyway, this was LIBKYSDK-APPLICATIONS, Version version:3.0, and it's kdk::KIntroWidget(3) โ€” slay, stay hydrated, read your manpages, mwah ๐ŸŽ€๐Ÿฆ‹๐Ÿ’…

๐Ÿ“ฆ where this page comes from