kdk::KWindowButtonBar(3)

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

💖 NAME 💖

kdk::KWindowButtonBar — 窗口三联按钮和菜单按钮的集合 🎀

okay so real talk, this page is kdk::KWindowButtonBar(3) from the Library Functions Manual, and the class is literally just the glow-up squad of window controls: the window button trio plus the menu button. all together, one widget, slay ✨


✨ SYNOPSIS ✨

#include <kwindowbuttonbar.h>

Inherits QFrame. 🦋

🫶 Signals

  • void doubleClick () — 双击会发出双击信号,父widget可以绑定相应槽函数. bestie, double-clicking fires this signal, and the parent widget can go ahead and bind whatever slot it wants to it. the vibe check happens on the double tap 👑

👑 Public Member Functions

  • KWindowButtonBar (QWidget *parent=nullptr) — the constructor, the main character entrance. hand it a parent and you're set; if you don't, it defaults to nullptr, no cap.
  • QPushButton * minimumButton () — 获取最小化按钮. grab the minimize button 💅
  • QPushButton * maximumButton () — 获取最大化按钮. grab the maximize button 🔥
  • QPushButton * closeButton () — 获取关闭按钮. grab the close button 💀
  • KMenuButton * menuButton () — 获取菜单按钮. grab the menu button 🍓
  • MaximumButtonState maximumButtonState () — 获取最大化按钮的状态(最大化/恢复). tells you the current state of the maximize button, aka maximized vs. restored.
  • void setMaximumButtonState (MaximumButtonState state) — 设置最大化按钮图标状态(最大化/恢复). sets the maximize button's icon state — maximized or restored, you pick.
  • void setFollowMode (bool flag) — 设置是否遵循模式. flips follow mode on or off.
  • bool followMode () — 返回是否遵循模式. hands back whether follow mode is a thing rn.
  • void setSplitScreenGeometry (QRect rect) — setSplitScreenGeometry. yeah that's the whole description the original gave us, it's giving mystery 🫶

🧚 Protected Member Functions

  • void mouseDoubleClickEvent (QMouseEvent *event)
  • bool eventFilter (QObject *watched, QEvent *event)
  • QSize sizeHint () const override — note the override, iconic.

🌸 Detailed Description 🌸

窗口三联按钮和菜单按钮的集合 💖


💜 Author 💜

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. no human hand-wrote this one, it's a bot's finest work 🙈


and that's the whole page bestie, that's the tea ☕

okay so sign-off time: this lil masterpiece is brought to you by LIBKYSDK-APPLICATIONS, Version version:3.0, and it lives under kdk::KWindowButtonBar(3). go forth and build windows, you absolute legend 💖✨🎀🦋🌸💅

📦 where this page comes from