Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
a7a67031
Commit
a7a67031
authored
Jan 28, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
789e6bdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
xtt/lib/flow/src/flow_tiptext.h
xtt/lib/flow/src/flow_tiptext.h
+21
-18
No files found.
xtt/lib/flow/src/flow_tiptext.h
View file @
a7a67031
/*
* Proview $Id: flow_tiptext.h,v 1.
2 2008-01-24 09:33:47
claes Exp $
* Proview $Id: flow_tiptext.h,v 1.
3 2008-01-28 14:55:40
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -17,20 +17,22 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
#ifndef
g
low_tiptext_h
#define
g
low_tiptext_h
#ifndef
f
low_tiptext_h
#define
f
low_tiptext_h
#include <iostream.h>
#include <fstream.h>
#include "
g
low.h"
#include "
f
low.h"
class
GrowCtx
;
class
GlowArrayElem
;
#define TIPTEXT_ROWS 10
/*! \file glow_tiptext.h
\brief Contains the GlowTipText class. */
/*! \addtogroup Glow */
class
FlowCtx
;
class
FlowArrayElem
;
/*! \file flow_tiptext.h
\brief Contains the FlowTipText class. */
/*! \addtogroup Flow */
/*@{*/
...
...
@@ -41,28 +43,29 @@ class GlowArrayElem;
The text is visible until the remove_text() or remove() function are called.
*/
class
G
lowTipText
{
class
F
lowTipText
{
public:
//! Constructor
/*!
\param gctx
G
low context.
\param gctx
F
low context.
*/
GlowTipText
(
GrowCtx
*
gctx
)
:
ctx
(
gctx
),
active
(
false
),
timer_id
(
0
)
{}
FlowTipText
(
FlowCtx
*
gctx
)
:
ctx
(
gctx
),
tiptext_rows
(
0
),
active
(
false
),
timer_id
(
0
)
{}
//! Destructor
/*! Removes the timer if it is set.
*/
~
G
lowTipText
();
~
F
lowTipText
();
GrowCtx
*
ctx
;
//!< G
low context.
FlowCtx
*
ctx
;
//!< F
low context.
int
text_x
;
//!< x coordinate in pixels for text.
int
text_y
;
//!< y coordinate in pixels for text.
int
text_width
;
//!< Text width in pixels.
int
text_height
;
//!< Text height in pixels.
int
text_descent
;
//!< Text descent in pixels.
GlowArrayElem
*
text_object
;
//!< Object that activated the current tip text.
char
tiptext
[
200
];
//!< Current tip text.
FlowArrayElem
*
text_object
;
//!< Object that activated the current tip text.
int
tiptext_rows
;
//!< Number of rows in current tiptext.
char
tiptext
[
TIPTEXT_ROWS
][
256
];
//!< Current tip text.
bool
active
;
//!< Tip text is active, i.e. timer is running or text is displayed.
void
*
timer_id
;
//!< Timer id.
...
...
@@ -77,13 +80,13 @@ class GlowTipText {
no remove function is called, the text will be displayed within 1 second, and remain until
a remove function is called.
*/
void
draw_text
(
G
lowArrayElem
*
e
,
char
*
text
,
int
x
,
int
y
);
void
draw_text
(
F
lowArrayElem
*
e
,
char
*
text
,
int
x
,
int
y
);
//! Remove or inactivate the text for the specified object.
/*!
\param e Object which the text should be removed for.
*/
void
remove_text
(
G
lowArrayElem
*
e
);
void
remove_text
(
F
lowArrayElem
*
e
);
//! Remove or inactivate texts for any object.
/*! If the timer is running, it is stopped. If the text is diplayed, it is erased.
...
...
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