Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
5b905782
Commit
5b905782
authored
Apr 15, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced SetGAL() functions that will allow changing GAL backend for rendering on the fly.
parent
e1fcd313
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
painter.cpp
common/painter.cpp
+7
-0
stroke_font.h
include/gal/stroke_font.h
+10
-0
painter.h
include/painter.h
+7
-0
No files found.
common/painter.cpp
View file @
5b905782
...
...
@@ -80,3 +80,10 @@ PAINTER::~PAINTER()
{
delete
m_stroke_font
;
}
void
PAINTER
::
SetGAL
(
GAL
*
aGal
)
{
m_gal
=
aGal
;
m_stroke_font
->
SetGAL
(
aGal
);
}
include/gal/stroke_font.h
View file @
5b905782
...
...
@@ -152,6 +152,16 @@ public:
m_verticalJustify
=
aVerticalJustify
;
}
/**
* Function SetGAL
* Changes Graphics Abstraction Layer used for drawing items for a new one.
* @param aGal is the new GAL instance.
*/
void
SetGAL
(
GAL
*
aGal
)
{
m_gal
=
aGal
;
}
private
:
GAL
*
m_gal
;
///< Pointer to the GAL
GlyphList
m_glyphs
;
///< Glyph list
...
...
include/painter.h
View file @
5b905782
...
...
@@ -180,6 +180,13 @@ public:
m_settings
=
aSettings
;
}
/**
* Function SetGAL
* Changes Graphics Abstraction Layer used for drawing items for a new one.
* @param aGal is the new GAL instance.
*/
void
SetGAL
(
GAL
*
aGal
);
/**
* Function GetSettings
* Returns pointer to current settings that are going to be used when drawing items.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment