ViewportContainer

Control for holding Viewports.

A Container node that holds a Viewport, automatically setting its size. Note: Changing a ViewportContainer's Control.rectScale will cause its contents to appear distorted. To change its visual size without causing distortion, adjust the node's margins instead (if it's not already in a container).

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_input
void _input(InputEvent event)
_unhandledInput
void _unhandledInput(InputEvent event)
getStretchShrink
long getStretchShrink()
isStretchEnabled
bool isStretchEnabled()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(ViewportContainer other)
opEquals
bool opEquals(typeof(null) n)
setStretch
void setStretch(bool enable)
setStretchShrink
void setStretchShrink(long amount)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

stretch
bool stretch [@property getter]
bool stretch [@property setter]

If true, the viewport will be scaled to the control's size.

stretchShrink
long stretchShrink [@property getter]
long stretchShrink [@property setter]

Divides the viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering. For example, a 1280×720 viewport with stretchShrink set to 2 will be rendered at 640×360 while occupying the same size in the container. Note: stretch must be true for this property to work.

Static functions

_new
ViewportContainer _new()

Construct a new instance of ViewportContainer. Note: use memnew!ViewportContainer instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta