View Issue Details

IDProjectCategoryView StatusLast Update
0005083ScribusScripterpublic2008-01-25 23:40
Reporterdjcarr Assigned Tojghali  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.3.7cvs 
Fixed in Version1.3.3.12svn 
Summary0005083: API functions for Opacity
DescriptionCan we please have API functions to access the Opacity settings in scripts? They would seem to be very similar to the existing Shade functions, so might look like this:

setFillOpacity(opacity, ["name"])
setLineOpacity(opacity, ["name"])
setTextOpacity(opacity, ["name"])
getFillOpacity(["name"]) -> integer
getLineOpacity(["name"]) -> integer
getTextOpacity(["name"]) -> integer

where the integer is from 0 (completely transparent) to 100 (completely opaque).
TagsNo tags attached.
Patch

Activities

djcarr

2008-01-22 08:30

reporter   ~0018686

Last edited: 2008-01-22 08:38

Still missing in 1.3.3.9

I am working on an improved CalendarWizard.py to contribute back to the project, and these API commands would be much appreciated. Thank you!

jghali

2008-01-24 23:24

administrator   ~0018713

I backported the scripter functions for opacity from 1.3.5svn:
setFillTransparency(trans, ["name"])
setLineTransparency(trans, ["name"])
getFillTransparency(["name"]) -> double
getLineTransparency(["name"]) -> double

Some precisions : transis a number between 0.0 and 1.0 + those functions should have been called "Opacity" and not "Transparency" as they truly get/set the opacity and not the transparency. That gonna probably change in a future release

No getTextTransparency/setTextTransparency, as setting text transparency is currently not supported

Issue History

Date Modified Username Field Change
2007-01-05 00:54 djcarr New Issue
2007-01-05 01:00 plinnell Status new => assigned
2007-01-05 01:00 plinnell Assigned To => subik
2007-01-05 01:00 plinnell Product Version 1.3.3.6 => 1.3.3.7cvs
2008-01-22 08:30 djcarr Note Added: 0018686
2008-01-22 08:38 djcarr Note Edited: 0018686
2008-01-24 23:14 jghali Assigned To subik => jghali
2008-01-24 23:24 jghali Status assigned => resolved
2008-01-24 23:24 jghali Fixed in Version => 1.3.3.12svn
2008-01-24 23:24 jghali Resolution open => fixed
2008-01-24 23:24 jghali Note Added: 0018713
2008-01-25 23:40 cbradney Status resolved => closed