mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement pango markup api
This commit is contained in:
parent
58bc99de06
commit
f81cf9fdee
5 changed files with 237 additions and 108 deletions
57
src/Interface/Model/Gtk/Pango/Markup.php
Normal file
57
src/Interface/Model/Gtk/Pango/Markup.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yggverse\Yoda\Interface\Model\Gtk\Pango;
|
||||
|
||||
/*
|
||||
* Pango markup API
|
||||
*
|
||||
*/
|
||||
interface Markup
|
||||
{
|
||||
public const TAG_CODE = 'tt';
|
||||
|
||||
public static function code(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function h1(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function h2(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function h3(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function link(
|
||||
string $href,
|
||||
string $title,
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function list(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function quote(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function text(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function pre(
|
||||
string $value
|
||||
): string;
|
||||
|
||||
public static function tag(
|
||||
string $const,
|
||||
bool $close
|
||||
): string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue