GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class ProgressBar

    Represents a progress bar UI element.

    Inheritance
    object
    Widget
    ProgressBar
    Inherited Members
    Widget.AddChildren(Widget)
    Widget.OnInit(Game, Scene, Canvas)
    Widget.OnUpdate(Game, Scene, Canvas)
    Widget.OnDispose(Game, Scene, Canvas)
    Widget.GetRelativePos(Canvas)
    Widget.GetChildren(string)
    Widget.GetRelativeBounds2D(Canvas)
    Widget.IsHover(Game, Scene, Canvas)
    Widget.FindChildren(string)
    Widget.Name
    Widget.Location
    Widget.Size
    Widget.Parent
    Widget.Children
    Widget.Enabled
    Widget.Debug
    Widget.MouseEnter
    Widget.MouseLeave
    Widget.Click
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.UI
    Assembly: Genesis.dll
    Syntax
    public class ProgressBar : Widget

    Constructors

    ProgressBar(string, Vec3, Vec3)

    Initializes a new instance of the ProgressBar class with the specified name, location, and size.

    Declaration
    public ProgressBar(string name, Vec3 location, Vec3 size)
    Parameters
    Type Name Description
    string name

    The name of the progress bar.

    Vec3 location

    The location of the progress bar.

    Vec3 size

    The size of the progress bar.

    Properties

    BackgroundColor

    Gets or sets the background color of the progress bar.

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Color

    BarColor

    Gets or sets the color of the progress bar.

    Declaration
    public Color BarColor { get; set; }
    Property Value
    Type Description
    Color

    BorderColor

    Gets or sets the color of the progress bar border.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    Color

    MaxValue

    Gets or sets the maximum value of the progress bar.

    Declaration
    public float MaxValue { get; set; }
    Property Value
    Type Description
    float

    Value

    Gets or sets the current value of the progress bar.

    Declaration
    public float Value { get; set; }
    Property Value
    Type Description
    float

    Methods

    OnRender(Game, IRenderDevice, Scene, Canvas)

    Renders the progress bar with its background, bar, and border.

    Declaration
    public override void OnRender(Game game, IRenderDevice renderDevice, Scene scene, Canvas canvas)
    Parameters
    Type Name Description
    Game game

    The game instance.

    IRenderDevice renderDevice

    The render device used for rendering.

    Scene scene

    The scene in which the progress bar is rendered.

    Canvas canvas

    The canvas to which the progress bar belongs.

    Overrides
    Widget.OnRender(Game, IRenderDevice, Scene, Canvas)
    In this article
    Back to top Generated by DocFX