Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libzathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
libzathura
Commits
7c99fa90
Commit
7c99fa90
authored
Jun 23, 2016
by
Moritz Lipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init and clear functions for annotation border
parent
d4646148
Pipeline
#143
passed with stage
in 13 minutes and 10 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
libzathura/annotations/annotation-square-and-circle.c
libzathura/annotations/annotation-square-and-circle.c
+1
-0
libzathura/annotations/border.c
libzathura/annotations/border.c
+35
-0
libzathura/annotations/border.h
libzathura/annotations/border.h
+4
-0
No files found.
libzathura/annotations/annotation-square-and-circle.c
View file @
7c99fa90
...
...
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "../annotations.h"
#include "annotation-caret.h"
...
...
libzathura/annotations/border.c
0 → 100644
View file @
7c99fa90
/* See LICENSE file for license and copyright information */
#include "border.h"
zathura_error_t
zathura_annotation_border_init
(
zathura_annotation_border_t
*
annotation_border
)
{
if
(
annotation_border
==
NULL
)
{
return
ZATHURA_ERROR_INVALID_ARGUMENTS
;
}
annotation_border
->
width
=
1
;
annotation_border
->
style
=
ZATHURA_ANNOTATION_BORDER_STYLE_SOLID
;
annotation_border
->
dash_pattern
.
dash_array
=
NULL
;
annotation_border
->
dash_pattern
.
dash_phase
=
0
;
annotation_border
->
effect
=
ZATHURA_ANNOTATION_BORDER_EFFECT_NONE
;
annotation_border
->
intensity
=
0
;
return
ZATHURA_ERROR_OK
;
}
zathura_error_t
zathura_annotation_border_clear
(
zathura_annotation_border_t
*
annotation_border
)
{
if
(
annotation_border
==
NULL
)
{
return
ZATHURA_ERROR_INVALID_ARGUMENTS
;
}
if
(
annotation_border
->
dash_pattern
.
dash_array
!=
NULL
)
{
zathura_list_free
(
annotation_border
->
dash_pattern
.
dash_array
);
annotation_border
->
dash_pattern
.
dash_array
=
NULL
;
}
return
ZATHURA_ERROR_OK
;
}
libzathura/annotations/border.h
View file @
7c99fa90
...
...
@@ -8,6 +8,7 @@ extern "C" {
#endif
#include "../list.h"
#include "../error.h"
/**
* The border style.
...
...
@@ -107,6 +108,9 @@ typedef struct zathura_annotation_border_s {
float
intensity
;
}
zathura_annotation_border_t
;
zathura_error_t
zathura_annotation_border_init
(
zathura_annotation_border_t
*
annotation_border
);
zathura_error_t
zathura_annotation_border_clear
(
zathura_annotation_border_t
*
annotation_border
);
#ifdef __cplusplus
}
#endif
...
...
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