mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
260 lines
7.0 KiB
TOML
260 lines
7.0 KiB
TOML
# API map of the "Text editing" family: old path to new path and setter renames.
|
|
|
|
family = "Text editing"
|
|
new_module = "craft_text::ui"
|
|
|
|
[[type]]
|
|
name = "TextEditor"
|
|
old = "craft_text::ui::editor::TextEditor"
|
|
new = "craft_text::ui::editor::TextEditor"
|
|
status = "replaced"
|
|
note = "A component shown over the canvas at the text's screen bounds: `TextEditor::new(label, &mut host, Bind<TextSelection>).show_at(ui, rect)`."
|
|
|
|
[[type]]
|
|
name = "TextEditorHost"
|
|
old = "craft_text::ui::editor::TextEditorHost"
|
|
new = "craft_text::ui::editor::TextEditorHost"
|
|
status = "same"
|
|
note = "`contains` is gone (a press outside the rect is the app's); `revision` and `lines` are new."
|
|
|
|
[[type]]
|
|
name = "TextEditorTool"
|
|
old = "craft_text::ui::editor::TextEditorTool"
|
|
new = ""
|
|
status = "removed"
|
|
note = "The editor takes its own presses; a press outside the text reaches the app's type tool."
|
|
|
|
[[type]]
|
|
name = "TextEditorResponse"
|
|
old = "craft_text::ui::editor::TextEditorResponse"
|
|
new = ""
|
|
status = "removed"
|
|
note = "Replaced by `TextEditorOutput` (response, changed, selection_changed, edit)."
|
|
|
|
[[type]]
|
|
name = "TextEditorOutput"
|
|
old = ""
|
|
new = "craft_text::ui::editor::TextEditorOutput"
|
|
status = "replaced"
|
|
note = "The output of `TextEditor`."
|
|
|
|
[[type]]
|
|
name = "TextSelection"
|
|
old = "craft_text::ui::editor::TextSelection"
|
|
new = "craft_text::ui::editor::TextSelection"
|
|
status = "same"
|
|
|
|
[[type]]
|
|
name = "StyleKey"
|
|
old = "craft_text::ui::editor::StyleKey"
|
|
new = "craft_text::ui::editor::StyleKey"
|
|
status = "same"
|
|
note = "The keys are `TextEditorCommand` chords."
|
|
|
|
[[type]]
|
|
name = "TextEditorCommand"
|
|
old = ""
|
|
new = "craft_text::ui::editor::TextEditorCommand"
|
|
status = "replaced"
|
|
note = "Photoshop's type formatting keys and the commit chord as one command set."
|
|
|
|
[[type]]
|
|
name = "FindBar"
|
|
old = "craft_text::ui::find::FindBar"
|
|
new = "craft_text::ui::find::FindBar"
|
|
status = "replaced"
|
|
note = "A pattern; `FindBar::new(query, options, matches)`, no id salt."
|
|
|
|
[[type]]
|
|
name = "FindBarOutput"
|
|
old = "craft_text::ui::find::FindBarOutput"
|
|
new = "craft_text::ui::find::FindBarOutput"
|
|
status = "same"
|
|
|
|
[[type]]
|
|
name = "FindBarState"
|
|
old = "craft_text::ui::find::FindBarState"
|
|
new = "craft_text::ui::find::FindBarState"
|
|
status = "same"
|
|
|
|
[[type]]
|
|
name = "FindReplaceDialog"
|
|
old = "craft_text::ui::find::FindReplaceDialog"
|
|
new = "craft_text::ui::find::FindReplaceDialog"
|
|
status = "replaced"
|
|
note = "A pattern on a modeless `Dialog`; `take_request` and `set_message` stay."
|
|
|
|
[[type]]
|
|
name = "FindLabels"
|
|
old = "craft_text::ui::find::FindLabels"
|
|
new = "craft_text::ui::find::FindLabels"
|
|
status = "replaced"
|
|
note = "A `WordSet` read through `Env::words`; `FindLabels::error` no longer takes number formats."
|
|
|
|
[[type]]
|
|
name = "NotesEditor"
|
|
old = "craft_text::ui::notes::NotesEditor"
|
|
new = "craft_text::ui::notes::NotesEditor"
|
|
status = "replaced"
|
|
note = "A component over `&mut NotesText`; `NotesEditor::new(label, notes)`."
|
|
|
|
[[type]]
|
|
name = "NotesView"
|
|
old = "craft_text::ui::notes::NotesView"
|
|
new = ""
|
|
status = "removed"
|
|
note = "The same `NotesEditor` with `Props::read_only(true)`."
|
|
|
|
[[type]]
|
|
name = "NotesResponse"
|
|
old = "craft_text::ui::notes::NotesResponse"
|
|
new = ""
|
|
status = "removed"
|
|
note = "Replaced by `NotesEditorOutput`."
|
|
|
|
[[type]]
|
|
name = "NotesEditorOutput"
|
|
old = ""
|
|
new = "craft_text::ui::notes::NotesEditorOutput"
|
|
status = "replaced"
|
|
note = "The output of `NotesEditor`."
|
|
|
|
[[type]]
|
|
name = "NotesStyle"
|
|
old = "craft_text::ui::notes::NotesStyle"
|
|
new = ""
|
|
status = "removed"
|
|
note = "Replaced by `NotesEditorStyle`, the component's `ComponentStyle`."
|
|
|
|
[[type]]
|
|
name = "NotesEditorStyle"
|
|
old = ""
|
|
new = "craft_text::ui::notes::NotesEditorStyle"
|
|
status = "replaced"
|
|
note = "The look of `NotesEditor`."
|
|
|
|
[[type]]
|
|
name = "NotesLabels"
|
|
old = "craft_text::ui::notes::NotesLabels"
|
|
new = "craft_text::ui::notes::NotesLabels"
|
|
status = "replaced"
|
|
note = "A `WordSet` read through `Env::words`."
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "new(id, selection)"
|
|
new = "new(label, host, Bind<TextSelection>)"
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "canvas(id)"
|
|
new = ""
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "update(ctx, host) / finish_pass(ctx, view, host) / press / drag / release / paint"
|
|
new = "show_at(ui, rect)"
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "insert / copy / cut / set_selection / text_replaced / end_composition"
|
|
new = "the Bind<TextSelection> and the app's host edits"
|
|
|
|
[[setter]]
|
|
type = "FindBar"
|
|
old = "new(id_salt, query, options, matches)"
|
|
new = "new(query, options, matches)"
|
|
|
|
[[setter]]
|
|
type = "FindBar"
|
|
old = "labels(labels)"
|
|
new = ""
|
|
|
|
[[setter]]
|
|
type = "FindReplaceDialog"
|
|
old = "labels(labels)"
|
|
new = ""
|
|
|
|
[[setter]]
|
|
type = "NotesEditor"
|
|
old = "new(id_salt, notes)"
|
|
new = "new(label, notes)"
|
|
|
|
[[setter]]
|
|
type = "NotesEditor"
|
|
old = "labels(labels)"
|
|
new = ""
|
|
|
|
[[type]]
|
|
name = "CaretLine"
|
|
old = "craft_text::ui::editor::CaretLine"
|
|
new = "craft_text::ui::editor::CaretLine"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `CaretLine::new(top, bottom)`."
|
|
|
|
[[type]]
|
|
name = "HostLine"
|
|
old = "craft_text::ui::editor::HostLine"
|
|
new = "craft_text::ui::editor::HostLine"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `HostLine::new(text, chars, rect, baseline, runs)`."
|
|
|
|
[[type]]
|
|
name = "HostRun"
|
|
old = "craft_text::ui::editor::HostRun"
|
|
new = "craft_text::ui::editor::HostRun"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `HostRun::new(bytes, rtl, positions, widths)`."
|
|
|
|
[[type]]
|
|
name = "NotesRun"
|
|
old = "craft_text::ui::notes::NotesRun"
|
|
new = "craft_text::ui::notes::NotesRun"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `NotesRun::new(text)` and the `bold`, `italic`, `underline`, `strikethrough` and `color` builders."
|
|
|
|
[[type]]
|
|
name = "NotesParagraph"
|
|
old = "craft_text::ui::notes::NotesParagraph"
|
|
new = "craft_text::ui::notes::NotesParagraph"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `NotesParagraph::new(runs)`, `list(level, marker)` and `margins(margin, indent)`."
|
|
|
|
[[type]]
|
|
name = "NotesText"
|
|
old = "craft_text::ui::notes::NotesText"
|
|
new = "craft_text::ui::notes::NotesText"
|
|
status = "same"
|
|
note = "The struct is `#[non_exhaustive]`: build it with `NotesText::new(paragraphs)`."
|
|
|
|
[[type]]
|
|
name = "FindRequest"
|
|
old = "craft_text::ui::find::FindRequest"
|
|
new = "craft_text::ui::find::FindRequest"
|
|
status = "same"
|
|
note = "The variants `FindNext`, `Replace`, `ReplaceAll`, `Highlight` and `GoTo` are `#[non_exhaustive]`: build them with `FindRequest::find_next`, `replace`, `replace_all`, `highlight` and `go_to`; match them with `..`."
|
|
|
|
[[setter]]
|
|
type = "TextSelection"
|
|
old = "TextSelection { caret, anchor }"
|
|
new = "TextSelection::new(anchor, caret)"
|
|
note = "The struct is `#[non_exhaustive]`."
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "smart_quotes(Option<QuoteStyle>)"
|
|
new = "smart_quotes(QuoteStyle)"
|
|
note = "Written by `#[derive(Props)]`; the option is the setter's presence."
|
|
|
|
[[setter]]
|
|
type = "TextEditor"
|
|
old = "esc_commits(bool)"
|
|
new = "esc_commits(bool)"
|
|
note = "Written by `#[derive(Props)]`."
|
|
|
|
[[setter]]
|
|
type = "NotesEditor"
|
|
old = "zoom(f32)"
|
|
new = "zoom(f32)"
|
|
note = "Written by `#[derive(Props)]`; a zoom factor, declared with `quantity`."
|