mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Rename master branch to main (#7034)
For consistency with other repositories, i.e. so I can write `git checkout main` without worrying which repo I'm browsing.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
There are no stand-alone egui examples, because egui is not stand-alone!
|
||||
|
||||
See the top-level [examples](https://github.com/emilk/egui/tree/master/examples/) folder instead.
|
||||
See the top-level [examples](https://github.com/emilk/egui/tree/main/examples/) folder instead.
|
||||
|
||||
There are also plenty of examples in [the online demo](https://www.egui.rs/#demo). You can find the source code for it at <https://github.com/emilk/egui/tree/master/crates/egui_demo_lib>.
|
||||
There are also plenty of examples in [the online demo](https://www.egui.rs/#demo). You can find the source code for it at <https://github.com/emilk/egui/tree/main/crates/egui_demo_lib>.
|
||||
|
||||
To learn how to set up `eframe` for web and native, go to <https://github.com/emilk/eframe_template/> and follow the instructions there!
|
||||
|
||||
@@ -1433,7 +1433,7 @@ impl Context {
|
||||
/// figured out from the `target_os`.
|
||||
///
|
||||
/// For web, this can be figured out from the user-agent,
|
||||
/// and is done so by [`eframe`](https://github.com/emilk/egui/tree/master/crates/eframe).
|
||||
/// and is done so by [`eframe`](https://github.com/emilk/egui/tree/main/crates/eframe).
|
||||
pub fn os(&self) -> OperatingSystem {
|
||||
self.read(|ctx| ctx.os)
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ use crate::{Context, CursorIcon, Id};
|
||||
/// - [`crate::Response::dnd_hover_payload`]
|
||||
/// - [`crate::Response::dnd_release_payload`]
|
||||
///
|
||||
/// See [this example](https://github.com/emilk/egui/blob/master/crates/egui_demo_lib/src/demo/drag_and_drop.rs).
|
||||
/// See [this example](https://github.com/emilk/egui/blob/main/crates/egui_demo_lib/src/demo/drag_and_drop.rs).
|
||||
#[doc(alias = "drag and drop")]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct DragAndDrop {
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! For a reference OpenGL renderer, see [the `egui_glow` painter](https://github.com/emilk/egui/blob/master/crates/egui_glow/src/painter.rs).
|
||||
//! For a reference OpenGL renderer, see [the `egui_glow` painter](https://github.com/emilk/egui/blob/main/crates/egui_glow/src/painter.rs).
|
||||
//!
|
||||
//!
|
||||
//! ### Debugging your renderer
|
||||
@@ -219,7 +219,7 @@
|
||||
//! This means it is responsibility of the egui user to store the state (`value`) so that it persists between frames.
|
||||
//!
|
||||
//! It can be useful to read the code for the toggle switch example widget to get a better understanding
|
||||
//! of how egui works: <https://github.com/emilk/egui/blob/master/crates/egui_demo_lib/src/demo/toggle_switch.rs>.
|
||||
//! of how egui works: <https://github.com/emilk/egui/blob/main/crates/egui_demo_lib/src/demo/toggle_switch.rs>.
|
||||
//!
|
||||
//! Read more about the pros and cons of immediate mode at <https://github.com/emilk/egui#why-immediate-mode>.
|
||||
//!
|
||||
@@ -567,7 +567,7 @@ macro_rules! include_image {
|
||||
///
|
||||
/// ```
|
||||
/// # egui::__run_test_ui(|ui| {
|
||||
/// ui.add(egui::github_link_file_line!("https://github.com/YOUR/PROJECT/blob/master/", "(source code)"));
|
||||
/// ui.add(egui::github_link_file_line!("https://github.com/YOUR/PROJECT/blob/main/", "(source code)"));
|
||||
/// # });
|
||||
/// ```
|
||||
#[macro_export]
|
||||
@@ -582,7 +582,7 @@ macro_rules! github_link_file_line {
|
||||
///
|
||||
/// ```
|
||||
/// # egui::__run_test_ui(|ui| {
|
||||
/// ui.add(egui::github_link_file!("https://github.com/YOUR/PROJECT/blob/master/", "(source code)"));
|
||||
/// ui.add(egui::github_link_file!("https://github.com/YOUR/PROJECT/blob/main/", "(source code)"));
|
||||
/// # });
|
||||
/// ```
|
||||
#[macro_export]
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
//! a [`ViewportCommand`] to it using [`Context::send_viewport_cmd`].
|
||||
//! You can interact with other viewports using [`Context::send_viewport_cmd_to`].
|
||||
//!
|
||||
//! There is an example in <https://github.com/emilk/egui/tree/master/examples/multiple_viewports/src/main.rs>.
|
||||
//! There is an example in <https://github.com/emilk/egui/tree/main/examples/multiple_viewports/src/main.rs>.
|
||||
//!
|
||||
//! You can find all available viewports in [`crate::RawInput::viewports`] and the active viewport in
|
||||
//! [`crate::InputState::viewport`]:
|
||||
|
||||
Reference in New Issue
Block a user