kdk::KFlowLayout(3)

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

💖 kdk::KFlowLayout 💖

okay bestie, gather round, because today we're learning about kdk::KFlowLayout — straight out of the kdk::KFlowLayout(3) page in the Library Functions Manual. it's a layout class, it flows, it's iconic, let's go 🦋


✨ NAME ✨

kdk::KFlowLayout — that's it, that's the name, no notes 💅


🌸 SYNOPSIS 🌸

she Inherits QLayout. family tree? immaculate. 👑

🎀 Public Member Functions 🎀

  • KFlowLayout (QWidget *parent, bool home=false, int margin=-1, int hSpacing=-1, int vSpacing=-1) — 创建一个父对象为parent,边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。 (translation for the girlies: builds a layout whose parent is parent, whose margin is margin, whose horizontal spacing is hSpacing, and whose vertical spacing is vSpacing ✨)
  • KFlowLayout (int margin=-1, int hSpacing=-1, int vSpacing=-1) — 创建一个边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。 (aka: a layout with margin margin, horizontal spacing hSpacing, vertical spacing vSpacing 🌸)
  • int horizontalSpacing () const — 水平间距 (the horizontal spacing, bestie)
  • int verticalSpacing () const — 垂直间距 (the vertical spacing, obviously)

🧚 Protected Member Functions 🧚

these ones are lowkey the inner workings, not for just anyone to touch 🙈

  • void addItem (QLayoutItem *item) Q_DECL_OVERRIDE
  • Qt::Orientations expandingDirections () const Q_DECL_OVERRIDE
  • bool hasHeightForWidth () const Q_DECL_OVERRIDE
  • int heightForWidth (int) const Q_DECL_OVERRIDE
  • int count () const Q_DECL_OVERRIDE
  • QLayoutItem * itemAt (int index) const Q_DECL_OVERRIDE
  • QSize minimumSize () const Q_DECL_OVERRIDE
  • void setGeometry (const QRect &rect) Q_DECL_OVERRIDE
  • QSize sizeHint () const Q_DECL_OVERRIDE
  • QLayoutItem * takeAt (int index) Q_DECL_OVERRIDE

🍼 Constructor & Destructor Documentation 🍼

kdk::KFlowLayout::KFlowLayout (QWidget * parent, bool home = false, int margin = -1, int hSpacing = -1, int vSpacing = -1) [explicit]

创建一个父对象为parent,边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。

(so: you get a layout with parent parent, margin margin, horizontal spacing hSpacing, vertical spacing vSpacing. she's explicit too, no sneaky implicit conversions here 😤)

💜 Parameters 💜

  • home — 是否首页布局 (is it the home page layout or not)
  • margin — 边距 (margin)
  • hSpacing — 水平间距 (horizontal spacing)
  • vSpacing — 垂直间距 (vertical spacing)
  • parent — (no description given, she's mysterious like that 🤫)

kdk::KFlowLayout::KFlowLayout (int margin = -1, int hSpacing = -1, int vSpacing = -1) [explicit]

创建一个边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。

(same energy, minus the parent: margin margin, horizontal spacing hSpacing, vertical spacing vSpacing. also [explicit] ✨)

💜 Parameters 💜

  • margin — 边距 (margin)
  • hSpacing — 水平间距 (horizontal spacing)
  • vSpacing — 垂直间距 (vertical spacing)

⭐ Member Function Documentation ⭐

int kdk::KFlowLayout::horizontalSpacing () const

水平间距

(the horizontal spacing. that's the whole thing. short queen 👑)

💜 Parameters 💜

  • 无 — literally none, she takes no parameters 🫶

int kdk::KFlowLayout::verticalSpacing () const

垂直间距

(the vertical spacing. equally brief, equally slay 💅)

💜 Parameters 💜

  • 无 — again, none. zero. nada. 🌈

🫶 Author 🫶

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (yes bestie, a robot wrote this and i'm just the messenger 💀)


and that's the whole page!! no cap, we kept every single detail — every option, every default, every parameter, every Q_DECL_OVERRIDE, all of it. periodt. ✨

signing off from LIBKYSDK-APPLICATIONS, Version version:3.0, where this lil kdk::KFlowLayout(3) page lives 💖 bye bestie, go build something gorgeous 🦋🌸

📦 where this page comes from