v_sim.GlExtFrame¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
title |
||
r/w/c |
padding along x axis |
||
r/w/c |
position along x axis |
||
r/w/c |
requisition along x axis |
||
r/w/c |
padding along y axis |
||
r/w/c |
position along y axis |
||
r/w/c |
requisition along y axis |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
fontRGB |
[ |
r |
|
height |
r |
||
parent |
r |
||
priv |
r |
||
width |
r |
Class Details¶
- class v_sim.GlExtFrame(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.7.
- getPosition()¶
- Returns:
- xpos:
a location to store the x position.
- ypos:
a location to store the y position.
- Return type:
Inquire the position of the representation of the frame.
New in version 3.7.
- getScale()¶
- Returns:
the scaling factor used to represent frames.
- Return type:
Frames are rendered with a scaling factor of 1. by default.
New in version 3.7.
- setBgRGBA(rgba, mask)¶
- Parameters:
rgba ([
float]) – a four floats array with values (0 <= values <= 1) for the red, the green, the blue color and the alpha channel. Only values specified by the mask are really relevant.mask (
int) – usev_sim.COLOR_MASK_R,v_sim.COLOR_MASK_G,v_sim.COLOR_MASK_B,v_sim.COLOR_MASK_Aor a combinaison to indicate what values in the rgba array must be taken into account.
- Returns:
Trueif value is actually changed.- Return type:
Change the colour to represent the background of the frame.
New in version 3.7.
- setFontRGB(rgb, mask)¶
- Parameters:
rgb ([
float]) – a four floats array with values (0 <= values <= 1) for the red, the green, the blue color. Only values specified by the mask are really relevant.mask (
int) – usev_sim.COLOR_MASK_R,v_sim.COLOR_MASK_G,v_sim.COLOR_MASK_Bor a combinaison to indicate what values in the rgb array must be taken into account.
- Returns:
Trueif value is actually changed.- Return type:
Change the colour to represent the font of the frame.
New in version 3.7.
- setPadding(xpad, ypad)¶
- Parameters:
- Returns:
Trueif any position is actually changed.- Return type:
Change the padding of the frame representation.
New in version 3.8.
- setPosition(xpos, ypos)¶
- Parameters:
- Returns:
Trueif any position is actually changed.- Return type:
Change the position of the frame representation.
New in version 3.7.
- setRequisition(width, height)¶
- Parameters:
- Returns:
Trueif requested size is changed.- Return type:
Set the size of the frame in pixels. Use
v_sim.GlExtFrame.setScale() to adjust the size if necessary.New in version 3.7.
- setScale(scale)¶
- Parameters:
scale (
float) – a positive value.- Returns:
Trueif value is actually changed.- Return type:
Change the zoom level for the rendering of the legend.
New in version 3.7.
- setTitle(title)¶
-
Change the title of the box legend.
New in version 3.7.
- do_render() virtual¶
the render method for the content of this frame.
- do_renderText() virtual¶
Property Details¶
- v_sim.GlExtFrame.props.title¶
-
title
- v_sim.GlExtFrame.props.x_padding¶
-
padding along x axis
- v_sim.GlExtFrame.props.x_pos¶
-
position along x axis
- v_sim.GlExtFrame.props.x_requisition¶
-
requisition along x axis
- v_sim.GlExtFrame.props.y_padding¶
-
padding along y axis
- v_sim.GlExtFrame.props.y_pos¶
-
position along y axis