1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-14 10:09:09 +01:00
MLEM/Docs/api/MLEM.Ui.Elements.Element.DrawCallback.yml

275 lines
8.6 KiB
YAML
Raw Normal View History

### YamlMime:ManagedReference
items:
- uid: MLEM.Ui.Elements.Element.DrawCallback
commentId: T:MLEM.Ui.Elements.Element.DrawCallback
id: Element.DrawCallback
parent: MLEM.Ui.Elements
children: []
langs:
- csharp
- vb
name: Element.DrawCallback
nameWithType: Element.DrawCallback
fullName: MLEM.Ui.Elements.Element.DrawCallback
type: Delegate
source:
remote:
path: MLEM.Ui/Elements/Element.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: DrawCallback
path: ../MLEM.Ui/Elements/Element.cs
startLine: 1308
assemblies:
- MLEM.Ui
namespace: MLEM.Ui.Elements
summary: A delegate used inside of <xref href="MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime%2cMicrosoft.Xna.Framework.Graphics.SpriteBatch%2cSystem.Single%2cMLEM.Graphics.SpriteBatchContext)" data-throw-if-not-resolved="false"></xref>
example: []
syntax:
content: public delegate void Element.DrawCallback(Element element, GameTime time, SpriteBatch batch, float alpha, SpriteBatchContext context)
parameters:
- id: element
type: MLEM.Ui.Elements.Element
description: The element that is being drawn
- id: time
type: Microsoft.Xna.Framework.GameTime
description: The game's time
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch used for drawing
- id: alpha
type: System.Single
description: The alpha this element is drawn with
- id: context
type: MLEM.Graphics.SpriteBatchContext
description: The sprite batch context to use for drawing
content.vb: Public Delegate Sub Element.DrawCallback(element As Element, time As GameTime, batch As SpriteBatch, alpha As Single, context As SpriteBatchContext)
references:
- uid: MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Single,MLEM.Graphics.SpriteBatchContext)
commentId: M:MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Single,MLEM.Graphics.SpriteBatchContext)
parent: MLEM.Ui.Elements.Element
isExternal: true
href: MLEM.Ui.Elements.Element.html#MLEM_Ui_Elements_Element_Draw_Microsoft_Xna_Framework_GameTime_Microsoft_Xna_Framework_Graphics_SpriteBatch_System_Single_MLEM_Graphics_SpriteBatchContext_
name: Draw(GameTime, SpriteBatch, float, SpriteBatchContext)
nameWithType: Element.Draw(GameTime, SpriteBatch, float, SpriteBatchContext)
fullName: MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch, float, MLEM.Graphics.SpriteBatchContext)
nameWithType.vb: Element.Draw(GameTime, SpriteBatch, Single, SpriteBatchContext)
fullName.vb: MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch, Single, MLEM.Graphics.SpriteBatchContext)
name.vb: Draw(GameTime, SpriteBatch, Single, SpriteBatchContext)
spec.csharp:
- uid: MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Single,MLEM.Graphics.SpriteBatchContext)
name: Draw
href: MLEM.Ui.Elements.Element.html#MLEM_Ui_Elements_Element_Draw_Microsoft_Xna_Framework_GameTime_Microsoft_Xna_Framework_Graphics_SpriteBatch_System_Single_MLEM_Graphics_SpriteBatchContext_
- name: (
- uid: Microsoft.Xna.Framework.GameTime
name: GameTime
isExternal: true
- name: ','
- name: " "
- uid: Microsoft.Xna.Framework.Graphics.SpriteBatch
name: SpriteBatch
isExternal: true
- name: ','
- name: " "
- uid: System.Single
name: float
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.single
- name: ','
- name: " "
- uid: MLEM.Graphics.SpriteBatchContext
name: SpriteBatchContext
href: MLEM.Graphics.SpriteBatchContext.html
- name: )
spec.vb:
- uid: MLEM.Ui.Elements.Element.Draw(Microsoft.Xna.Framework.GameTime,Microsoft.Xna.Framework.Graphics.SpriteBatch,System.Single,MLEM.Graphics.SpriteBatchContext)
name: Draw
href: MLEM.Ui.Elements.Element.html#MLEM_Ui_Elements_Element_Draw_Microsoft_Xna_Framework_GameTime_Microsoft_Xna_Framework_Graphics_SpriteBatch_System_Single_MLEM_Graphics_SpriteBatchContext_
- name: (
- uid: Microsoft.Xna.Framework.GameTime
name: GameTime
isExternal: true
- name: ','
- name: " "
- uid: Microsoft.Xna.Framework.Graphics.SpriteBatch
name: SpriteBatch
isExternal: true
- name: ','
- name: " "
- uid: System.Single
name: Single
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.single
- name: ','
- name: " "
- uid: MLEM.Graphics.SpriteBatchContext
name: SpriteBatchContext
href: MLEM.Graphics.SpriteBatchContext.html
- name: )
- uid: MLEM.Ui.Elements
commentId: N:MLEM.Ui.Elements
href: MLEM.html
name: MLEM.Ui.Elements
nameWithType: MLEM.Ui.Elements
fullName: MLEM.Ui.Elements
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Ui
name: Ui
href: MLEM.Ui.html
- name: .
- uid: MLEM.Ui.Elements
name: Elements
href: MLEM.Ui.Elements.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Ui
name: Ui
href: MLEM.Ui.html
- name: .
- uid: MLEM.Ui.Elements
name: Elements
href: MLEM.Ui.Elements.html
- uid: MLEM.Ui.Elements.Element
commentId: T:MLEM.Ui.Elements.Element
parent: MLEM.Ui.Elements
href: MLEM.Ui.Elements.Element.html
name: Element
nameWithType: Element
fullName: MLEM.Ui.Elements.Element
- uid: Microsoft.Xna.Framework.GameTime
commentId: T:Microsoft.Xna.Framework.GameTime
parent: Microsoft.Xna.Framework
isExternal: true
name: GameTime
nameWithType: GameTime
fullName: Microsoft.Xna.Framework.GameTime
- uid: Microsoft.Xna.Framework.Graphics.SpriteBatch
commentId: T:Microsoft.Xna.Framework.Graphics.SpriteBatch
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: SpriteBatch
nameWithType: SpriteBatch
fullName: Microsoft.Xna.Framework.Graphics.SpriteBatch
- uid: System.Single
commentId: T:System.Single
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.single
name: float
nameWithType: float
fullName: float
nameWithType.vb: Single
fullName.vb: Single
name.vb: Single
- uid: MLEM.Graphics.SpriteBatchContext
commentId: T:MLEM.Graphics.SpriteBatchContext
parent: MLEM.Graphics
href: MLEM.Graphics.SpriteBatchContext.html
name: SpriteBatchContext
nameWithType: SpriteBatchContext
fullName: MLEM.Graphics.SpriteBatchContext
- uid: Microsoft.Xna.Framework
commentId: N:Microsoft.Xna.Framework
isExternal: true
name: Microsoft.Xna.Framework
nameWithType: Microsoft.Xna.Framework
fullName: Microsoft.Xna.Framework
spec.csharp:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
spec.vb:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- uid: Microsoft.Xna.Framework.Graphics
commentId: N:Microsoft.Xna.Framework.Graphics
isExternal: true
name: Microsoft.Xna.Framework.Graphics
nameWithType: Microsoft.Xna.Framework.Graphics
fullName: Microsoft.Xna.Framework.Graphics
spec.csharp:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Graphics
name: Graphics
isExternal: true
spec.vb:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Graphics
name: Graphics
isExternal: true
- uid: System
commentId: N:System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system
name: System
nameWithType: System
fullName: System
- uid: MLEM.Graphics
commentId: N:MLEM.Graphics
href: MLEM.html
name: MLEM.Graphics
nameWithType: MLEM.Graphics
fullName: MLEM.Graphics
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Graphics
name: Graphics
href: MLEM.Graphics.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Graphics
name: Graphics
href: MLEM.Graphics.html