Overview

Classes

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

Class ComponentFlag

The flag component. Looks for a country flag in ComponentFlag::FLAGS_DIRECTORY based on the user's country code.

&flagshadow can be used globally and adds a 3px 50% opacity shadow to the flag. &flagstroke can be used globally and adds a 1px white rounded stroke with 93.3% opacity around the flag.

Component
Extended by ComponentFlag
Author: Lemmmy
See: Component
Located at ComponentFlag.php
Methods summary
public
# __construct( OsuSignature $signature, integer $x = 0, integer $y = 0, integer $width = 18, integer $height = 12 )

Parameters

$signature
The base signature
$x
The X position of this flag
$y
The Y position of this flag
$width
The width of this flag
$height
The height of this flag

Overrides

Component::__construct()
public integer
# getWidth( )

Returns

integer
The width of this component. Overridable.

Overrides

Component::getWidth()
public integer
# getHeight( )

Returns

integer
The height of this component. Overridable.

Overrides

Component::getHeight()
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.

Overrides

Component::draw()
Constants summary
string FLAGS_DIRECTORY
# 'flags/'
Properties inherited from Component
$usesSpace, $x, $y
API documentation generated by ApiGen