[−][src]Struct ggez::ContextBuilder
A builder object for creating a Context
.
Methods
impl ContextBuilder
[src]
pub fn new(game_id: &'static str, author: &'static str) -> Self
[src]
Create a new ContextBuilder
with default settings.
pub fn window_setup(self, setup: WindowSetup) -> Self
[src]
Sets the window setup settings.
pub fn window_mode(self, mode: WindowMode) -> Self
[src]
Sets the window mode settings.
pub fn backend(self, backend: Backend) -> Self
[src]
Sets the graphics backend.
pub fn modules(self, modules: ModuleConf) -> Self
[src]
Sets the modules configuration.
pub fn conf(self, conf: Conf) -> Self
[src]
Sets all the config options, overriding any previous
ones from window_setup()
,
window_mode()
, and
backend()
.
pub fn add_resource_path<T>(self, path: T) -> Self where
T: Into<PathBuf>,
[src]
T: Into<PathBuf>,
Add a new read-only filesystem path to the places to search for resources.
pub fn with_conf_file(self, load_conf_file: bool) -> Self
[src]
Specifies whether or not to load the conf.toml
file if it
exists and use its settings to override the provided values.
Defaults to true
which is usually what you want, but being
able to fiddle with it is sometimes useful for debugging.
pub fn build(self) -> GameResult<(Context, EventsLoop)>
[src]
Build the Context
.
Trait Implementations
impl PartialEq<ContextBuilder> for ContextBuilder
[src]
fn eq(&self, other: &ContextBuilder) -> bool
[src]
fn ne(&self, other: &ContextBuilder) -> bool
[src]
impl Clone for ContextBuilder
[src]
fn clone(&self) -> ContextBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ContextBuilder
[src]
Auto Trait Implementations
impl Send for ContextBuilder
impl Sync for ContextBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Erased for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.