[ Module Hierarchy | Class Hierarchy ]

# Class Hierarchy

- dict: dict() -> new empty dictionary.
  - pyglet.window.key.KeyStateHandler: Simple handler that tracks the state of keys on the keyboard.
- exceptions.BaseException: Common base class for all exceptions
  - exceptions.Exception: Common base class for all non-exit exceptions.
    - pyglet.event.EventException: An exception raised when an event handler could not be attached.
    - pyglet.font.base.FontException: Generic exception related to errors from the font module.
    - pyglet.gl.ConfigException
    - pyglet.gl.ContextException
    - pyglet.graphics.allocation.AllocatorMemoryException: The buffer is not large enough to fulfil an allocation.
    - pyglet.image.ImageException
    - pyglet.image.atlas.AllocatorException: The allocator does not have sufficient free space for the requested image size.
    - pyglet.media.MediaException
      - pyglet.media.CannotSeekException
      - pyglet.media.MediaFormatException
    - pyglet.resource.ResourceNotFoundException: The named resource was not found on the search path.
    - pyglet.text.DocumentDecodeException: An error occured decoding document text.
    - pyglet.window.WindowException: The root exception for all window-related errors.
      - pyglet.window.MouseCursorException: The root exception for all mouse cursor-related errors.
      - pyglet.window.NoSuchConfigException: An exception indicating the requested configuration is not available.
      - pyglet.window.NoSuchDisplayException: An exception indicating the requested display is not available.
- markupbase.ParserBase: Parser base class which provides some common support methods used by the SGML/HTML and XHTML parsers.
  - HTMLParser.HTMLParser: Find tags and other markup and call handler functions.
    - pyglet.text.formats.html.HTMLDecoder: Decoder for HTML documents.
- pyglet.app.WeakSet: Set of objects, referenced weakly.
- pyglet.clock.ClockDisplay: Display current clock values, such as FPS.
- pyglet.clock._ClockBase
  - pyglet.clock.Clock: Class for calculating and limiting framerate, and for calling scheduled functions.
- pyglet.event.EventDispatcher: Generic event dispatcher interface.
  - pyglet.app.EventLoop: The main run loop of the application.
  - pyglet.media.Player: A sound and/or video player.
    - pyglet.media.ManagedSoundPlayer: A player which takes care of updating its own audio buffers.
  - pyglet.sprite.Sprite: Instance of an on-screen image.
  - pyglet.text.document.AbstractDocument: Abstract document interface used by all pyglet.text classes.
    - pyglet.text.document.FormattedDocument: Simple implementation of a document that maintains text formatting.
    - pyglet.text.document.UnformattedDocument: A document having uniform style over all text.
  - pyglet.text.layout.IncrementalTextLayout: Displayed text suitable for interactive editing and/or scrolling large documents.
  - pyglet.window.Window: Platform-independent application window.
- pyglet.font.GlyphString: An immutable string of glyphs that can be rendered quickly.
- pyglet.font.Text: Simple displayable text.
- pyglet.font.base.Font: Abstract font class able to produce glyphs.
- pyglet.font.base.GlyphRenderer: Abstract class for creating glyph images.
- pyglet.gl.Config: Graphics configuration.
- pyglet.gl.Context: OpenGL context for drawing.
- pyglet.gl.ObjectSpace
- pyglet.gl.gl_info.GLInfo: Information interface for a single GL context.
- pyglet.gl.glu_info.GLUInfo: Information interface for the GLU library.
- pyglet.graphics.Batch: Manage a collection of vertex lists for batched rendering.
- pyglet.graphics.Group: Group of common OpenGL state.
  - pyglet.graphics.NullGroup: The default group class used when `None` is given to a batch.
  - pyglet.graphics.OrderedGroup: A group with partial order.
    - pyglet.text.layout.TextLayoutForegroundDecorationGroup: Rendering group for decorative elements (e.g., glyph underlines) in all text layouts.
    - pyglet.text.layout.TextLayoutForegroundGroup: Rendering group for foreground elements (glyphs) in all text layouts.
  - pyglet.graphics.TextureGroup: A group that enables and binds a texture.
  - pyglet.sprite.SpriteGroup: Shared sprite rendering group.
  - pyglet.text.layout.ScrollableTextLayoutGroup: Top-level rendering group for ScrollableTextLayout.
  - pyglet.text.layout.TextLayoutGroup: Top-level rendering group for TextLayout.
  - pyglet.text.layout.TextLayoutTextureGroup: Rendering group for a glyph texture in all text layouts.
- pyglet.graphics.allocation.Allocator: Buffer space allocation implementation.
- pyglet.graphics.vertexattribute.AbstractAttribute: Abstract accessor for an attribute in a mapped buffer.
  - pyglet.graphics.vertexattribute.ColorAttribute: Color vertex attribute.
  - pyglet.graphics.vertexattribute.EdgeFlagAttribute: Edge flag attribute.
  - pyglet.graphics.vertexattribute.FogCoordAttribute: Fog coordinate attribute.
  - pyglet.graphics.vertexattribute.GenericAttribute: Generic vertex attribute, used by shader programs.
  - pyglet.graphics.vertexattribute.NormalAttribute: Normal vector attribute.
  - pyglet.graphics.vertexattribute.SecondaryColorAttribute: Secondary color attribute.
  - pyglet.graphics.vertexattribute.TexCoordAttribute: Texture coordinate attribute.
  - pyglet.graphics.vertexattribute.VertexAttribute: Vertex coordinate attribute.
- pyglet.graphics.vertexbuffer.AbstractBuffer: Abstract buffer of byte data.
  - pyglet.graphics.vertexbuffer.VertexArray: A ctypes implementation of a vertex array.
  - pyglet.graphics.vertexbuffer.VertexBufferObject: Lightweight representation of an OpenGL VBO.
    - pyglet.graphics.vertexbuffer.MappableVertexBufferObject: A VBO with system-memory backed store.
- pyglet.graphics.vertexbuffer.AbstractBufferRegion: A mapped region of a buffer.
  - pyglet.graphics.vertexbuffer.IndirectArrayRegion: A mapped region in which data elements are not necessarily contiguous.
  - pyglet.graphics.vertexbuffer.VertexArrayRegion: A mapped region of a vertex array.
  - pyglet.graphics.vertexbuffer.VertexBufferObjectRegion: A mapped region of a VBO.
- pyglet.graphics.vertexbuffer.AbstractMappable
  - pyglet.graphics.vertexbuffer.MappableVertexBufferObject: A VBO with system-memory backed store.
  - pyglet.graphics.vertexbuffer.VertexArray: A ctypes implementation of a vertex array.
- pyglet.graphics.vertexdomain.VertexDomain: Management of a set of vertex lists.
  - pyglet.graphics.vertexdomain.IndexedVertexDomain: Management of a set of indexed vertex lists.
- pyglet.graphics.vertexdomain.VertexList: A list of vertices within a VertexDomain.
  - pyglet.graphics.vertexdomain.IndexedVertexList: A list of vertices within an IndexedVertexDomain that are indexed.
- pyglet.image.AbstractImage: Abstract class representing an image.
  - pyglet.image.BufferImage: An abstract framebuffer.
    - pyglet.image.BufferImageMask: A single bit of the stencil buffer.
    - pyglet.image.ColorBufferImage: A color framebuffer.
    - pyglet.image.DepthBufferImage: The depth buffer.
  - pyglet.image.CompressedImageData: Image representing some compressed data suitable for direct uploading to driver.
  - pyglet.image.ImageData: An image represented as a string of unsigned bytes.
    - pyglet.image.ImageDataRegion
  - pyglet.image.ImageGrid: An imaginary grid placed over an image allowing easy access to regular regions of that image.
  - pyglet.image.Texture: An image loaded into video memory that can be efficiently drawn to the framebuffer.
    - pyglet.font.base.GlyphTextureAtlas: A texture within which glyphs can be drawn.
    - pyglet.image.DepthTexture: A texture with depth samples (typically 24-bit).
    - pyglet.image.Texture3D: A texture with more than one image slice.
    - pyglet.image.TextureRegion: A rectangular region of a texture, presented as if it were a separate texture.
      - pyglet.font.base.Glyph: A single glyph located within a larger texture.
      - pyglet.image.TextureGrid: A texture containing a regular grid of texture regions.
    - pyglet.image.TileableTexture: A texture that can be tiled efficiently.
- pyglet.image.AbstractImageSequence: Abstract sequence of images.
  - pyglet.image.ImageGrid: An imaginary grid placed over an image allowing easy access to regular regions of that image.
  - pyglet.image.TextureSequence: Interface for a sequence of textures.
    - pyglet.image.UniformTextureSequence: Interface for a sequence of textures, each with the same dimensions.
      - pyglet.image.Texture3D: A texture with more than one image slice.
      - pyglet.image.TextureGrid: A texture containing a regular grid of texture regions.
- pyglet.image.Animation: Sequence of images with timing information.
- pyglet.image.AnimationFrame: A single frame of an animation.
- pyglet.image.BufferManager: Manages the set of framebuffers for a context.
- pyglet.image.ImagePattern: Abstract image creation class.
  - pyglet.image.CheckerImagePattern: Create an image with a tileable checker image.
  - pyglet.image.SolidColorImagePattern: Creates an image filled with a solid color.
- pyglet.image.atlas.Allocator: Rectangular area allocation algorithm.
- pyglet.image.atlas.TextureAtlas: Collection of images within a texture.
- pyglet.image.atlas.TextureBin: Collection of texture atlases.
- pyglet.media.AudioData: A single packet of audio data.
- pyglet.media.AudioFormat: Audio details.
- pyglet.media.AudioPlayer: Abstract low-level interface for playing audio.
- pyglet.media.Listener: The listener properties for positional audio.
- pyglet.media.Source: An audio and/or video source.
  - pyglet.media.StaticSource: A source that has been completely decoded in memory.
    - pyglet.media.StaticMemorySource: Helper class for default implementation of StaticSource.
  - pyglet.media.StreamingSource: A source that is decoded as it is being played, and can only be queued once.
- pyglet.media.VideoFormat: Video details.
- pyglet.resource.Loader: Load program resource files from disk.
- pyglet.resource.Location: Abstract resource location.
  - pyglet.resource.FileLocation: Location on the filesystem.
  - pyglet.resource.URLLocation: Location on the network.
  - pyglet.resource.ZIPLocation: Location within a ZIP file.
- pyglet.text.DocumentDecoder: Abstract document decoder.
  - pyglet.text.formats.attributed.AttributedTextDecoder
  - pyglet.text.formats.plaintext.PlainTextDecoder
  - pyglet.text.formats.structured.StructuredTextDecoder
    - pyglet.text.formats.html.HTMLDecoder: Decoder for HTML documents.
- pyglet.text.caret.Caret: Visible text insertion marker for pyglet.text.layout.IncrementalTextLayout.
- pyglet.text.document.InlineElement: Arbitrary inline element positioned within a formatted document.
  - pyglet.text.formats.structured.ImageElement
- pyglet.text.formats.structured.ListBuilder
  - pyglet.text.formats.structured.OrderedListBuilder
  - pyglet.text.formats.structured.UnorderedListBuilder
- pyglet.text.layout.TextLayout: Lay out and display documents.
  - pyglet.text.DocumentLabel: Base label class.
    - pyglet.text.HTMLLabel: HTML formatted text label.
    - pyglet.text.Label: Plain text label.
  - pyglet.text.layout.ScrollableTextLayout: Display text in a scrollable viewport.
    - pyglet.text.layout.IncrementalTextLayout: Displayed text suitable for interactive editing and/or scrolling large documents.
- pyglet.text.runlist.AbstractRunIterator: Range iteration over RunList.
  - pyglet.text.runlist.ConstRunIterator: Iterate over a constant value without creating a RunList.
  - pyglet.text.runlist.FilteredRunIterator: Iterate over an AbstractRunIterator with filtered values replaced by a default value.
  - pyglet.text.runlist.OverriddenRunIterator: Iterator over a RunIterator, with a value temporarily replacing a given range.
  - pyglet.text.runlist.RunIterator
  - pyglet.text.runlist.ZipRunIterator: Iterate over multiple run iterators concurrently.
- pyglet.text.runlist.RunList: List of contiguous runs of values.
- pyglet.window.Display: A display device supporting one or more screens.
- pyglet.window.MouseCursor: An abstract mouse cursor.
  - pyglet.window.DefaultMouseCursor: The default mouse cursor used by the operating system.
  - pyglet.window.ImageMouseCursor: A user-defined mouse cursor created from an image.
- pyglet.window.Platform: Operating-system-level functionality.
- pyglet.window.Screen: A virtual monitor that supports fullscreen windows.
- pyglet.window.event.WindowEventLogger: Print all events to a file.
- pyglet.window.event.WindowExitHandler: Determine if the window should be closed.
- type: type(object) -> the object's type type(name, bases, dict) -> a new type
  - pyglet.window._WindowMetaclass: Sets the _platform_event_names class variable on the window subclass.