[][src]Struct gdnative_bindings::ColorPicker

pub struct ColorPicker { /* fields omitted */ }

core class ColorPicker inherits BoxContainer (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

Non reference counted objects such as the ones of this type are usually owned by the engine.

ColorPicker is an unsafe pointer, and all of its methods are unsafe.

In the cases where Rust code owns an object of this type, for example if the object was just created on the Rust side and not passed to the engine yet, ownership should be either given to the engine or the object must be manually destroyed using ColorPicker::free.

Class hierarchy

ColorPicker inherits methods from:

Methods

impl ColorPicker[src]

pub fn new() -> Self[src]

Constructor.

Because this type is not reference counted, the lifetime of the returned object is not automatically managed. Immediately after creation, the object is owned by the caller, and can be passed to the engine (in which case the engine will be responsible for destroying the object) or destroyed manually using ColorPicker::free.

pub unsafe fn free(self)[src]

Manually deallocate the object.

pub unsafe fn _add_preset_pressed(&mut self)[src]

pub unsafe fn _focus_enter(&mut self)[src]

pub unsafe fn _focus_exit(&mut self)[src]

pub unsafe fn _hsv_draw(&mut self, arg0: i64, arg1: Option<Control>)[src]

pub unsafe fn _html_entered(&mut self, arg0: GodotString)[src]

pub unsafe fn _html_focus_exit(&mut self)[src]

pub unsafe fn _preset_input(&mut self, arg0: Option<InputEvent>)[src]

pub unsafe fn _sample_draw(&mut self)[src]

pub unsafe fn _screen_input(&mut self, arg0: Option<InputEvent>)[src]

pub unsafe fn _screen_pick_pressed(&mut self)[src]

pub unsafe fn _text_type_toggled(&mut self)[src]

pub unsafe fn _update_presets(&mut self)[src]

pub unsafe fn _uv_input(&mut self, arg0: Option<InputEvent>)[src]

pub unsafe fn _value_changed(&mut self, arg0: f64)[src]

pub unsafe fn _w_input(&mut self, arg0: Option<InputEvent>)[src]

pub unsafe fn add_preset(&mut self, color: Color)[src]

pub unsafe fn erase_preset(&mut self, color: Color)[src]

pub unsafe fn get_pick_color(&self) -> Color[src]

pub unsafe fn get_presets(&self) -> ColorArray[src]

pub unsafe fn is_deferred_mode(&self) -> bool[src]

pub unsafe fn is_editing_alpha(&self) -> bool[src]

pub unsafe fn is_raw_mode(&self) -> bool[src]

pub unsafe fn set_deferred_mode(&mut self, mode: bool)[src]

pub unsafe fn set_edit_alpha(&mut self, show: bool)[src]

pub unsafe fn set_pick_color(&mut self, color: Color)[src]

pub unsafe fn set_raw_mode(&mut self, mode: bool)[src]

pub unsafe fn to_box_container(&self) -> BoxContainer[src]

Up-cast.

pub unsafe fn to_container(&self) -> Container[src]

Up-cast.

pub unsafe fn to_control(&self) -> Control[src]

Up-cast.

pub unsafe fn to_canvas_item(&self) -> CanvasItem[src]

Up-cast.

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Methods from Deref<Target = BoxContainer>

pub unsafe fn add_spacer(&mut self, begin: bool)[src]

pub unsafe fn get_alignment(&self) -> BoxContainerAlignMode[src]

pub unsafe fn set_alignment(&mut self, alignment: i64)[src]

pub unsafe fn to_container(&self) -> Container[src]

Up-cast.

pub unsafe fn to_control(&self) -> Control[src]

Up-cast.

pub unsafe fn to_canvas_item(&self) -> CanvasItem[src]

Up-cast.

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Trait Implementations

impl Clone for ColorPicker[src]

impl Copy for ColorPicker[src]

impl Debug for ColorPicker[src]

impl Deref for ColorPicker[src]

type Target = BoxContainer

The resulting type after dereferencing.

impl DerefMut for ColorPicker[src]

impl Free for ColorPicker[src]

impl FromVariant for ColorPicker[src]

impl GodotObject for ColorPicker[src]

impl Instanciable for ColorPicker[src]

impl QueueFree for ColorPicker[src]

impl ToVariant for ColorPicker[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.