Overview

Classes

  • Card
  • CardRegular
  • Component
  • ComponentAvatar
  • ComponentFlag
  • ComponentImage
  • ComponentLabel
  • ComponentXPBar
  • ErrorImage
  • OsuAPI
  • OsuSignature
  • PredefinedColours
  • Signature
  • Template
  • TemplateNormal
  • Utils
  • Overview
  • Class

Class Component

An element in the signature. These are used for things like labels, avatars etc. A signature's width is calculated by the size of its elements.

If Component::$usesSpace is set to false, the element's sizes will not matter as they are ignored by width and height calculations.

Direct known subclasses

ComponentAvatar, ComponentFlag, ComponentImage, ComponentLabel, ComponentXPBar
Author: Lemmmy
Located at Component.php
Methods summary
public
# __construct( OsuSignature $signature, integer $x = 0, integer $y = 0 )

Initializes this component.

Initializes this component.

Parameters

$signature
The base signature
$x
The X position of this component
$y
The Y position of this component
public integer
# getWidth( )

Returns

integer
The width of this component. Overridable.
public integer
# getHeight( )

Returns

integer
The height of this component. Overridable.
public
# draw( OsuSignature $signature )

Draws this component to the signature's canvas.

Draws this component to the signature's canvas.

Parameters

$signature
The signature to draw to.
Properties summary
public integer $x

The X position of this component.

The X position of this component.

#
public integer $y

The Y position of this component.

The Y position of this component.

#
public boolean $usesSpace

Should the component count towards template size?

Should the component count towards template size?

# true
API documentation generated by ApiGen