{"id":21985606,"url":"https://github.com/ickshonpe/bevy_ui_text_cursor","last_synced_at":"2025-10-25T02:03:39.610Z","repository":{"id":37257504,"uuid":"505619991","full_name":"ickshonpe/bevy_ui_text_cursor","owner":"ickshonpe","description":"bevy ui text cursor","archived":false,"fork":false,"pushed_at":"2022-06-21T08:56:34.000Z","size":94,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T02:14:25.160Z","etag":null,"topics":["bevy","ui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ickshonpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-20T22:48:55.000Z","updated_at":"2023-03-01T01:38:31.000Z","dependencies_parsed_at":"2022-08-22T12:20:38.296Z","dependency_job_id":null,"html_url":"https://github.com/ickshonpe/bevy_ui_text_cursor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ickshonpe/bevy_ui_text_cursor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickshonpe%2Fbevy_ui_text_cursor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickshonpe%2Fbevy_ui_text_cursor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickshonpe%2Fbevy_ui_text_cursor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickshonpe%2Fbevy_ui_text_cursor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ickshonpe","download_url":"https://codeload.github.com/ickshonpe/bevy_ui_text_cursor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickshonpe%2Fbevy_ui_text_cursor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261686363,"owners_count":23194273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bevy","ui"],"created_at":"2024-11-29T18:14:12.497Z","updated_at":"2025-10-25T02:03:34.580Z","avatar_url":"https://github.com/ickshonpe.png","language":"Rust","readme":"# Bevy Ui Text Cursor\n\ntext cursor for bevy_ui\n\nsupports Bevy 0.7\n\n## Usage\n\nAdd the plugin to your app\n\n```rust\napp.add_plugin(bevy_ui_text_cursor::BevyUiTextCursorPlugin)\n```\n\nThen you can spawn a text bundle with a cursor like so:\n\n```rust\ncommands.spawn_bundle(\n    TextBundle {\n        text: Text {\n            sections: vec![\n                TextSection {\n                    value: \"Hello, World\".to_string(), \n                    style: TextStyle {\n                        font: asset_server.load(\"FiraMono-Medium.ttf\"),\n                        font_size: 32.0,\n                        color: Color::WHITE,\n                    }\n                },\n            ],\n            alignment: TextAlignment { vertical: VerticalAlign::Center, horizontal:HorizontalAlign::Center },\n            ..Default::default()\n        },\n        ..Default::default()\n    }\n)\n.insert(UiTextCursor::default())\n.insert(UiTextCursorStyle::default());\n```\n\nAnd it will draw a cursor over the H.\nUiTextCursor is just a newtype containing a usize.\nIf UiTextCursor contains N then the cursor will be drawn over the Nth glyph in the Text component.\nThere is also a ```UiTextCursorBlink``` component you can add to get a blinking cursor.\n\n## Examples\n\n```\ncargo run --example hello_world\n```\n\nwhich displays the message \"Hello, World\" and a cursor you can move left and right with the left and right arrow keys.\n\n## Notes\n\nVery rough work in progress. Many problems.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickshonpe%2Fbevy_ui_text_cursor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fickshonpe%2Fbevy_ui_text_cursor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickshonpe%2Fbevy_ui_text_cursor/lists"}