mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
Add a CBitmap class. The C is for Courage.
This commit is contained in:
parent
e23ac56017
commit
c7463aad11
Notes:
sideshowbarker
2024-07-19 18:50:11 +09:00
Author: https://github.com/awesomekling
Commit: c7463aad11
8 changed files with 63 additions and 18 deletions
17
Widgets/CBitmap.cpp
Normal file
17
Widgets/CBitmap.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "CBitmap.h"
|
||||
|
||||
CBitmap::CBitmap(const char* asciiData, unsigned width, unsigned height)
|
||||
: m_bits(asciiData)
|
||||
, m_size(width, height)
|
||||
{
|
||||
}
|
||||
|
||||
CBitmap::~CBitmap()
|
||||
{
|
||||
}
|
||||
|
||||
RetainPtr<CBitmap> CBitmap::createFromASCII(const char* asciiData, unsigned width, unsigned height)
|
||||
{
|
||||
return adopt(*new CBitmap(asciiData, width, height));
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue