Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netrunner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sharinigma
netrunner
Commits
c9ab5fff
Commit
c9ab5fff
authored
7 years ago
by
gyroninja
Browse files
Options
Downloads
Patches
Plain Diff
Added block quotes element
parent
8963dee7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/html/elements/BLOCKQUOTEElement.cpp
+6
-0
6 additions, 0 deletions
src/html/elements/BLOCKQUOTEElement.cpp
src/html/elements/BLOCKQUOTEElement.h
+13
-0
13 additions, 0 deletions
src/html/elements/BLOCKQUOTEElement.h
with
19 additions
and
0 deletions
src/html/elements/BLOCKQUOTEElement.cpp
0 → 100644
+
6
−
0
View file @
c9ab5fff
#include
"BLOCKQUOTEElement.h"
#include
"../TextNode.h"
std
::
unique_ptr
<
Component
>
BLOCKQUOTEElement
::
render
(
const
Node
&
node
,
int
y
,
int
windowWidth
,
int
windowHeight
)
{
return
std
::
make_unique
<
TextComponent
>
(
static_cast
<
const
TextNode
&>
(
node
).
text
,
0
,
y
,
12
,
false
,
windowWidth
,
windowHeight
);
}
This diff is collapsed.
Click to expand it.
src/html/elements/BLOCKQUOTEElement.h
0 → 100644
+
13
−
0
View file @
c9ab5fff
#ifndef BLOCKQUOTEELEMENT_H
#define BLOCKQUOTEELEMENT_H
#include
"../../graphics/opengl/components/Component.h"
#include
"../../graphics/opengl/components/TextComponent.h"
#include
"../TextNode.h"
class
BLOCKQUOTEElement
{
public:
static
std
::
unique_ptr
<
Component
>
render
(
const
Node
&
node
,
int
y
,
int
windowWidth
,
int
windowHeight
);
};
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment