FormModule(3)

πŸ“¦ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay bestie, welcome to FormModule(3) β€” the manual page for FormModule, living inside the LIBKYSDK-APPLICATIONS manual. it's giving window-chrome royalty, fr fr πŸ‘‘


✨ SYNOPSIS ✨

πŸŽ€ Classes

  • class kdk::KWidget β€” inherits from QWidget. it supports responding to theme background switching 🌈, icon theme switching, and title color that reacts to the window's active state. the content area is split into a side area and a base area. main character energy tbh.

πŸ¦‹ Functions

  • kdk::KWidget::KWidget (QWidget *parent=nullptr)
  • void kdk::KWidget::setIcon (const QIcon &icon) β€” sets the window icon
  • void kdk::KWidget::setIcon (const QString &iconName) β€” sets the window icon
  • void kdk::KWidget::setWidgetName (const QString &widgetName) β€” sets the widget name
  • QWidget * kdk::KWidget::sideBar () β€” grabs the left sidebar widget; you add your custom content to it via setlayout
  • QWidget * kdk::KWidget::baseBar () β€” grabs the main content area widget; you add your custom content to it via setlayout
  • KWindowButtonBar * kdk::KWidget::windowButtonBar () β€” grabs the window's triple-button combo widget, so you can control whether the maximize, minimize and dropdown menu buttons show up; you can also add custom buttons
  • KIconBar * kdk::KWidget::iconBar () β€” grabs the window title + icon combo widget so you can control the related styles
  • void kdk::KWidget::setLayoutType (LayoutType type) β€” sets the layout structure type
  • void kdk::KWidget::setWindowFlags (Qt::WindowFlags type) β€” sets the window flags
  • void kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on=true) β€” sets a window flag
  • void kdk::KWidget::setSidebarFollowMode (bool flag) β€” sets whether the sidebar follows system width changes
  • bool kdk::KWidget::sidebarFollowMode () β€” returns whether the sidebar follows system width changes
  • bool kdk::KWidget::eventFilter (QObject *target, QEvent *event) override
  • virtual void kdk::KWidget::changeIconStyle ()
  • virtual void kdk::KWidget::changeTheme ()

🌸 Detailed Description 🌸

bestie. not me having to tell you this… this section is empty in the original. like, absolutely nothing here. no description, no lore, no tea. moving on πŸ’€


πŸ”₯ Function Documentation πŸ”₯

QWidget* kdk::KWidget::baseBar ()

grabs the main content area widget β€” you add your custom content to it via setlayout.

Returns

returns the main content area widget 🫢


KIconBar* kdk::KWidget::iconBar ()

grabs the window title + icon combo widget so you can control the related styles.

Returns

returns the window title + icon combo widget ✨


void kdk::KWidget::setIcon (const QIcon & icon)

sets the window icon.

Parameters

  • icon

void kdk::KWidget::setIcon (const QString & iconName)

sets the window icon.

Parameters

  • iconName β€” directly names an icon from the system directory, like 'kylin-music' 🎡

void kdk::KWidget::setSidebarFollowMode (bool flag)

sets whether the sidebar follows system width changes.

Parameters

  • flag

Since

1.2


void kdk::KWidget::setWidgetName (const QString & widgetName)

sets the widget name.

Parameters

  • widgetName

void kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on = true)

sets a window flag.

Parameters

  • flag
  • on

Since

1.2


void kdk::KWidget::setWindowFlags (Qt::WindowFlags type)

sets the window flags.

Parameters

  • type

Since

1.2


QWidget* kdk::KWidget::sideBar ()

grabs the left sidebar widget β€” you add your custom content to it via setlayout.

Returns

returns the left sidebar widget πŸ’…


bool kdk::KWidget::sidebarFollowMode ()

returns whether the sidebar follows system width changes.

Returns

(yeah bestie, the original leaves this one blank β€” no text, no cap 😭)

Since

1.2


KWindowButtonBar* kdk::KWidget::windowButtonBar ()

grabs the window's triple-button combo widget, so you can control whether the maximize, minimize and dropdown menu buttons show up; you can also add custom buttons.

Returns

returns the window's triple-button combo widget πŸ‘‘


🧚 Author 🧚

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. slay, Doxygen, you ate πŸ“


and that's the whole page, bestie!! πŸŽ€πŸ¦‹ this was version version:2.3, dated Thu Oct 12 2023, and it lives in the FormModule(3) corner of the LIBKYSDK-APPLICATIONS manual. periodt. go build something iconic πŸ’–βœ¨

πŸ“¦ where this page comes from