Struct oxygengine_prototype::nodes::text::TextNode
source · pub struct TextNode {
pub content: HaTextContent,
pub font: String,
pub size: Scalar,
pub color: Rgba,
pub alignment: Vec2,
pub bounds_width: Option<Scalar>,
pub bounds_height: Option<Scalar>,
pub wrapping: HaTextWrapping,
}
Fields§
§content: HaTextContent
§font: String
§size: Scalar
§color: Rgba
§alignment: Vec2
§bounds_width: Option<Scalar>
§bounds_height: Option<Scalar>
§wrapping: HaTextWrapping
Implementations§
source§impl TextNode
impl TextNode
pub fn event_draw__intuicio_function(context: &mut Context, registry: &Registry)
pub fn event_draw__define_signature(registry: &Registry) -> FunctionSignature
pub fn event_draw__define_function(registry: &Registry) -> Function
source§impl TextNode
impl TextNode
pub fn event_draw( this: &mut Self, transform: &mut HaTransform, universe: &Universe, _entity: Entity )
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TextNode
impl Send for TextNode
impl Sync for TextNode
impl Unpin for TextNode
impl UnwindSafe for TextNode
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
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more