pub enum WindowPalette {
Blue,
Cyan,
Gray,
}Expand description
Which colour scheme the window draws in.
Choose the variant that matches the window’s purpose:
Blue— plain application windows; the default. Draws in theRole::FrameActive/FramePassive/FrameDragging/FrameIcon/Role::ScrollBar*/Role::Scroller*role family.Cyan— secondary / highlight windows (e.g. help viewers). Draws in theRole::FrameCyanActive/FrameCyanPassive/FrameCyanIconfamily.Gray— dialog boxes.Dialogsets this automatically; use it directly when building a dialog-styled custom window. Draws in theRole::FrameGrayActive/FrameGrayPassive/FrameGrayIconfamily.
The scheme is stored on the Window and pushed down to the Frame
child automatically; no manual frame update is needed when the palette
changes.
§Turbo Vision heritage
Replaces the wpBlueWindow = 1 / wpCyanWindow = 2 / wpGrayWindow = 3
integer palette selector (views.h; the guide calls these
dpBlueDialog / dpCyanDialog / dpGrayDialog) with a typed enum, which the
frame maps to named Role entries in the theme. The eight
per-palette entries described in the guide (frame passive, frame active,
frame icon, scrollbar page, scrollbar controls, scroller normal, scroller
selected, reserved) are expressed as named Role variants rather than
integer indices.
Variants§
Blue
The default window scheme (Role::Frame* family).
Cyan
The cyan scheme (Role::FrameCyan* family).
Gray
The gray scheme used by dialogs (Role::FrameGray* family).
Trait Implementations§
Source§impl Clone for WindowPalette
impl Clone for WindowPalette
Source§fn clone(&self) -> WindowPalette
fn clone(&self) -> WindowPalette
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WindowPalette
Source§impl Debug for WindowPalette
impl Debug for WindowPalette
Source§impl Default for WindowPalette
impl Default for WindowPalette
Source§fn default() -> WindowPalette
fn default() -> WindowPalette
impl Eq for WindowPalette
Source§impl PartialEq for WindowPalette
impl PartialEq for WindowPalette
impl StructuralPartialEq for WindowPalette
Auto Trait Implementations§
impl Freeze for WindowPalette
impl RefUnwindSafe for WindowPalette
impl Send for WindowPalette
impl Sync for WindowPalette
impl Unpin for WindowPalette
impl UnsafeUnpin for WindowPalette
impl UnwindSafe for WindowPalette
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.