Editor → Widget Kit → containers.h
kit::property_row
| Type | Class |
| Namespace | conjure::editor::kit |
| Include File Path | engine/include/conjure/editor/kit/containers.h |
| Source File Path | engine/src/editor/kit/containers.cpp |
| API ↗ | The editor, The widget kit |
Syntax
Inheritance Hierarchy
kit::layout_host → kit::property_row
Constructors
| Access | Signature | Description |
|---|---|---|
| public | property_row(
property_section §ion,
std::string_view key,
const property_row_props &props); | Submits the row on the section's next line (the section must be open; a row inside another asserts) and makes it the layout host. |
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~property_row() override; | Gives the layout host back to the section. |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mBounds | rect | {} | |
| private | mCursor | f32 | 0.0f | |
| private | mFieldMarks | field_mark_flags | field_ | |
| private | mLineHeight | f32 | 0.0f | |
| private | mPinPressed | bool | false | |
| private | mPlaced | u32 | 0 | |
| private | m | layout_host * | nullptr | |
| private | mSection | property_section * | nullptr | |
| private | mSlots | property_row_slots | {} |
Functions
Public
field_marks
field_marks[[nodiscard]] field_mark_flags field_marks() const noexcept;The marks the row's fields take: PERSISTED when marks.persisted, READ_ONLY for a read-only row, MIXED for a mixed one. Pass them in the fields' props (or with others: marks | INVALID).
line
lineThe values' slot of value line index (ROW tall); the last line for an index past the end.
note
notevoid note(
std::string_view text,
colour_token colour = colour_token::FAINT);An inline note after the values placed so far ("changed by play"): CAPTION in colour, in the rest of the first value line, ellipsised.
pin_pressed
pin_pressed[[nodiscard]] bool pin_pressed() const noexcept;True in the frame the row's pin was pressed (never while covered).
place
place[[nodiscard]] rect place(
const math::vec2 &size) override;The next value's rectangle on the first value line: after GAP_ROW (from the second value on), size.x wide (0: the rest of the line), size.y tall centred on the line.