StyleBoxTexture

Texture-based nine-patch StyleBox.

Texture-based nine-patch StyleBox, in a way similar to NinePatchRect. This stylebox performs a 3×3 scaling of a texture, where only the center cell is fully stretched. This makes it possible to design bordered styles regardless of the stylebox's size.

@GodotBaseClass
struct StyleBoxTexture {}

Members

Aliases

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

Enums

AxisStretchMode
enum AxisStretchMode
Constants
enum Constants

Functions

getExpandMarginSize
double getExpandMarginSize(long margin)

Returns the size of the given margin's expand margin. See margin for possible values.

getHAxisStretchMode
StyleBoxTexture.AxisStretchMode getHAxisStretchMode()
getMarginSize
double getMarginSize(long margin)

Returns the size of the given margin. See margin for possible values.

getModulate
Color getModulate()
getNormalMap
Ref!Texture getNormalMap()
getRegionRect
Rect2 getRegionRect()
getTexture
Ref!Texture getTexture()
getVAxisStretchMode
StyleBoxTexture.AxisStretchMode getVAxisStretchMode()
isDrawCenterEnabled
bool isDrawCenterEnabled()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(StyleBoxTexture other)
opEquals
bool opEquals(typeof(null) n)
setDrawCenter
void setDrawCenter(bool enable)
setExpandMarginAll
void setExpandMarginAll(double size)

Sets the expand margin to size pixels for all margins.

setExpandMarginIndividual
void setExpandMarginIndividual(double size_left, double size_top, double size_right, double size_bottom)

Sets the expand margin for each margin to size_left, size_top, size_right, and size_bottom pixels.

setExpandMarginSize
void setExpandMarginSize(long margin, double size)

Sets the expand margin to size pixels for the given margin. See margin for possible values.

setHAxisStretchMode
void setHAxisStretchMode(long mode)
setMarginSize
void setMarginSize(long margin, double size)

Sets the margin to size pixels for the given margin. See margin for possible values.

setModulate
void setModulate(Color color)
setNormalMap
void setNormalMap(Texture normal_map)
setRegionRect
void setRegionRect(Rect2 region)
setTexture
void setTexture(Texture texture)
setVAxisStretchMode
void setVAxisStretchMode(long mode)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

axisStretchHorizontal
StyleBoxTexture.AxisStretchMode axisStretchHorizontal [@property getter]
long axisStretchHorizontal [@property setter]

Controls how the stylebox's texture will be stretched or tiled horizontally. See axisstretchmode for possible values.

axisStretchVertical
StyleBoxTexture.AxisStretchMode axisStretchVertical [@property getter]
long axisStretchVertical [@property setter]

Controls how the stylebox's texture will be stretched or tiled vertically. See axisstretchmode for possible values.

drawCenter
bool drawCenter [@property getter]
bool drawCenter [@property setter]

If true, the nine-patch texture's center tile will be drawn.

expandMarginBottom
double expandMarginBottom [@property getter]
double expandMarginBottom [@property setter]

Expands the bottom margin of this style box when drawing, causing it to be drawn larger than requested.

expandMarginLeft
double expandMarginLeft [@property getter]
double expandMarginLeft [@property setter]

Expands the left margin of this style box when drawing, causing it to be drawn larger than requested.

expandMarginRight
double expandMarginRight [@property getter]
double expandMarginRight [@property setter]

Expands the right margin of this style box when drawing, causing it to be drawn larger than requested.

expandMarginTop
double expandMarginTop [@property getter]
double expandMarginTop [@property setter]

Expands the top margin of this style box when drawing, causing it to be drawn larger than requested.

marginBottom
double marginBottom [@property getter]
double marginBottom [@property setter]

Increases the bottom margin of the 3×3 texture box. A higher value means more of the source texture is considered to be part of the bottom border of the 3×3 box. This is also the value used as fallback for StyleBox.contentMarginBottom if it is negative.

marginLeft
double marginLeft [@property getter]
double marginLeft [@property setter]

Increases the left margin of the 3×3 texture box. A higher value means more of the source texture is considered to be part of the left border of the 3×3 box. This is also the value used as fallback for StyleBox.contentMarginLeft if it is negative.

marginRight
double marginRight [@property getter]
double marginRight [@property setter]

Increases the right margin of the 3×3 texture box. A higher value means more of the source texture is considered to be part of the right border of the 3×3 box. This is also the value used as fallback for StyleBox.contentMarginRight if it is negative.

marginTop
double marginTop [@property getter]
double marginTop [@property setter]

Increases the top margin of the 3×3 texture box. A higher value means more of the source texture is considered to be part of the top border of the 3×3 box. This is also the value used as fallback for StyleBox.contentMarginTop if it is negative.

modulateColor
Color modulateColor [@property getter]
Color modulateColor [@property setter]

Modulates the color of the texture when this style box is drawn.

normalMap
Texture normalMap [@property getter]
Texture normalMap [@property setter]

The normal map to use when drawing this style box. Note: Godot expects the normal map to use X+, Y-, and Z+ coordinates. See url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinatesthis page/url for a comparison of normal map coordinates expected by popular engines.

regionRect
Rect2 regionRect [@property getter]
Rect2 regionRect [@property setter]

Species a sub-region of the texture to use. This is equivalent to first wrapping the texture in an AtlasTexture with the same region.

texture
Texture texture [@property getter]
Texture texture [@property setter]

The texture to use when drawing this style box.

Static functions

_new
StyleBoxTexture _new()

Construct a new instance of StyleBoxTexture. Note: use memnew!StyleBoxTexture 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