view release on metacpan or search on metacpan
webp-src/README view on Meta::CPAN
-info ........ print info.
-h ....... this help message.
Keyboard shortcuts:
'c' ................ toggle use of color profile.
'i' ................ overlay file information.
'q' / 'Q' / ESC .... quit.
Building:
---------
view all matches for this distribution
view release on metacpan or search on metacpan
# check the default read doesn't match
ok($im->read(file=>'testimg/screen2.gif'),
"read same image without consolidate");
isnt(i_img_diff($im->{IMG}, $expected->{IMG}), 0,
"compare them - shouldn't include the overlayed second image");
}
{
print "# test the reading of single pages\n";
# build a test file
my $test_file = 'testout/t105_multi_sing.gif';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
Imager->register_filter(
type => 'bakumatsu',
callsub => \&bakumatsu,
callseq => [],
defaults => {
overlay_image => $texture,
},
);
sub bakumatsu {
my %opt = @_;
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
],
);
$work->rubthrough(
src => do {
my $overlay = Imager->new;
$overlay->read(file => $opt{overlay_image})
or die $overlay->errstr;
$overlay = $overlay->scale(
xpixels => $work->getwidth,
ypixels => $work->getheight,
type => 'nonprop'
);
},
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
$img->filter(type => 'bakumatsu');
=over 4
=item overlay_image
$img->filter(type => 'bakumatsu', overlay_image => '/foo/image.png');
Overlay image to cover (it should have alpha channel).
default is: dist/share/BakumatsuTexture.png
=back
view all matches for this distribution
view release on metacpan or search on metacpan
print STDERR "FreeType2 runtime ", Imager::Font::FT2::i_ft2_version(1),
" compile-time ", Imager::Font::FT2::i_ft2_version(0), "\n";
my $bgcolor=i_color_new(255,0,0,0);
my $overlay=Imager::ImgRaw::new(200,70,3);
my $ttraw=Imager::Font::FT2::i_ft2_new($fontname, 0);
$ttraw or print Imager::_error_as_msg(),"\n";
ok($ttraw, "loaded raw font");
my @bbox=Imager::Font::FT2::i_ft2_bbox($ttraw, 50.0, 0, 'XMCLH', 0);
print "#bbox @bbox\n";
is(@bbox, 8, "i_ft2_bbox() returns 8 values");
ok(Imager::Font::FT2::i_ft2_cp($ttraw,$overlay,5,50,1,50.0,50, 'XMCLH',1,1, 0, 0), "drawn to channel");
i_line($overlay,0,50,100,50,$bgcolor,1);
push @test_output, "t38ft2font.ppm";
open(FH,">testout/t38ft2font.ppm") || die "cannot open testout/t38ft2font.ppm\n";
binmode(FH);
my $IO = Imager::io_new_fd(fileno(FH));
ok(i_writeppm_wiol($overlay, $IO), "saved image");
close(FH);
$bgcolor=i_color_set($bgcolor,200,200,200,0);
my $backgr=Imager::ImgRaw::new(500,300,3);
view all matches for this distribution
view release on metacpan or search on metacpan
t/t10type1.t view on Meta::CPAN
unless (ok($fnum >= 0, "load font $fontname_pfb")) {
skip("without the font I can't do a thing", 90);
}
my $bgcolor=Imager::Color->new(255,0,0,255);
my $overlay=Imager::ImgRaw::new(200,70,3);
ok($fnum->cp($overlay,5,50,1,50.0,'XMCLH',1), "i_t1_cp");
i_line($overlay,0,50,100,50,$bgcolor,1);
my @bbox=$fnum->bbox(50.0,'XMCLH');
is(@bbox, 8, "i_t1_bbox");
print "# bbox: ($bbox[0], $bbox[1]) - ($bbox[2], $bbox[3])\n";
open(FH,">testout/t30t1font.ppm") || die "cannot open testout/t35t1font.ppm\n";
binmode(FH); # for os2
my $IO = Imager::io_new_fd( fileno(FH) );
i_writeppm_wiol($overlay,$IO);
close(FH);
$bgcolor=Imager::Color::set($bgcolor,200,200,200,255);
my $backgr=Imager::ImgRaw::new(280,300,3);
view all matches for this distribution
view release on metacpan or search on metacpan
t/t10win32.t view on Meta::CPAN
my $fontname=$ENV{'TTFONTTEST'} || 'Times New Roman Bold';
# i_init_fonts(); # unnecessary for Win32 font support
my $bgcolor=i_color_new(255,0,0,0);
my $overlay=Imager::ImgRaw::new(200,70,3);
my @bbox=Imager::Font::W32::i_wf_bbox($fontname, 50.0,'XMCLH');
print "#bbox: ($bbox[0], $bbox[1]) - ($bbox[2], $bbox[3])\n";
ok(Imager::Font::W32::i_wf_cp($fontname,$overlay,5,50,1,50.0,'XMCLH',1,1),
"i_wf_cp smoke test");
i_line($overlay,0,50,100,50,$bgcolor, 1);
if (open(FH,">testout/t10font.ppm")) {
binmode(FH);
my $io = Imager::io_new_fd(fileno(FH));
i_writeppm_wiol($overlay,$io);
close(FH);
}
else {
diag "cannot open testout/t10font.ppm: $!";
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Heatmap.pm view on Meta::CPAN
$hmap->insert_datas(...); # You can call multiple times to add large data that cannot process at a time.
# After adding datas, you could get heatmap as Imager instance.
my $img = $hmap->draw;
# Returned image is 4-channels image. So you can overlay it on other images.
$base_img->rubthrough( src => $hmap->img ); # Overlay on other images(see Imager::Transformations)
# And you can access probability density matrix using matrix method if you like.
# In case, maybe you would like to create some graduations which be assigned to color of heatmap and its value.
$hmap->matrix;
view all matches for this distribution
view release on metacpan or search on metacpan
Screenshot.pm view on Meta::CPAN
grab the background that you see. In fact, when I tested under
Cygwin/X I got the xterm window contents even when the Windows
screensaver was running. The root window captured appeared to be that
generated by my window manager.
Grabbing a window with other windows overlaying it will capture the
content of those windows where they hide the window you want to
capture. You may want to raise the window to top. This may be a
security concern if the overlapping windows contain any sensitive
information - true for any screen capture.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Fill.pm view on Meta::CPAN
=item *
C<fg>, C<bg> - The C<fg> color is rendered where bits are set in the
hatch, and the C<bg> where they are clear. If you use a transparent
C<fg> or C<bg>, and set combine, you can overlay the hatch onto an
existing image.
C<fg> defaults to black, C<bg> to white.
=item *
view all matches for this distribution
view release on metacpan or search on metacpan
ffi/target/release/build/mlua-sys-6a99a2ae50f12319/out/luajit-build/build/src/lj_ccall.h view on Meta::CPAN
struct { LJ_ENDIAN_LOHI(float f; , float g;) };
} FPRArg;
#elif LJ_TARGET_MIPS64
/* FP args are positional and overlay the GPR array. */
#define CCALL_NARG_GPR 8
#define CCALL_NARG_FPR 0
#define CCALL_NRET_GPR 2
#define CCALL_NRET_FPR (LJ_ABI_SOFTFP ? 0 : 2)
#define CCALL_SPS_EXTRA 3
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JQuery/Mobile.pm view on Meta::CPAN
'navbar-data-attribute' => ['disable-page-zoom', 'enhance', 'fullscreen', 'iconpos', 'tap-toggle', 'theme', 'transition', 'update-page-padding', 'visible-on-page-show'],
'navbar-item-html-attribute' => ['id', 'class', 'target'],
'navbar-item-data-attribute' => ['ajax', 'icon', 'iconpos', 'iconshadow','prefetch', 'theme'],
'page-html-attribute' => ['id', 'class'],
# combine data-attributes for page and dialog
'page-data-attribute' => ['add-back-btn', 'back-btn-text', 'back-btn-theme', 'close-btn', 'close-btn-text', 'corners', 'dom-cache', 'enhance', 'overlay-theme', 'role', 'shadow','theme', 'title', 'tolerance', 'url'],
'table-html-attribute' => ['id', 'class'],
'table-data-attribute' => ['mode'],
'table-head-html-attribute' => ['id', 'class'],
'table-head-data-attribute' => ['priority'],
'panel-html-attribute' => ['id', 'class'],
'panel-data-attribute' => ['corners', 'overlay-theme', 'shadow', 'theme', 'tolerance', 'position-to', 'rel', 'role', 'transition'],
'popup-html-attribute' => ['id', 'class'],
'popup-data-attribute' => ['animate', 'dismissible', 'display', 'position', 'position-fixed', 'swipe-close', 'role', 'theme'],
'listview-html-attribute' => ['id', 'class'],
'listview-data-attribute' => ['autodividers', 'count-theme', 'divider-theme', 'enhance', 'filter', 'filter-placeholder', 'filter-reveal', 'filter-theme', 'filtertext', 'header-theme', 'inset', 'split-icon', 'split-theme', 'theme'],
'listview-item-html-attribute' => ['id', 'class'],
lib/JQuery/Mobile.pm view on Meta::CPAN
'input-html-attribute' => ['id', 'class', 'disabled', 'max', 'maxlength', 'min', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'size', 'type', 'value', 'accept', 'capture'],
'input-data-attribute' => ['clear-btn', 'clear-btn-text', 'corners', 'highlight', 'icon', 'iconpos', 'iconshadow', 'inline', 'mini', 'shadow', 'theme', 'track-theme'],
'textarea-html-attribute' => ['id', 'name', 'class', 'rows', 'cols', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern'],
'textarea-data-attribute' => ['clear-btn', 'clear-btn-text', 'mini', 'theme'],
'select-html-attribute' => ['id', 'class', 'size', 'maxlength', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern', 'multiple'],
'select-data-attribute' => ['icon', 'iconpos', 'inline', 'mini', 'native-menu', 'overlay-theme', 'theme', 'role'],
'radio-checkbox-html-attribute' => ['id', 'class', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern', 'value'],
'radio-checkbox-data-attribute' => ['mini', 'theme'],
'rangeslider-html-attribute' => ['id', 'name', 'class'],
'rangeslider-data-attribute' => ['highlight', 'mini', 'theme', 'track-theme'],
'label' => sub {
lib/JQuery/Mobile.pm view on Meta::CPAN
'navbar-data-attribute' => ['disable-page-zoom', 'enhance', 'fullscreen', 'iconpos', 'tap-toggle', 'theme', 'transition', 'update-page-padding', 'visible-on-page-show'],
'navbar-item-html-attribute' => ['id', 'class', 'target'],
'navbar-item-data-attribute' => ['ajax', 'icon', 'iconpos', 'iconshadow','prefetch', 'theme'],
'page-html-attribute' => ['id', 'class'],
# combine data-attributes for page and dialog
'page-data-attribute' => ['add-back-btn', 'back-btn-text', 'back-btn-theme', 'close-btn', 'close-btn-text', 'corners', 'dom-cache', 'enhance', 'overlay-theme', 'role', 'shadow','theme', 'title', 'tolerance', 'url'],
'popup-html-attribute' => ['id', 'class'],
'popup-data-attribute' => ['corners', 'overlay-theme', 'shadow', 'theme', 'tolerance', 'position-to', 'rel', 'role', 'transition'],
'listview-html-attribute' => ['id', 'class'],
'listview-data-attribute' => ['autodividers', 'count-theme', 'divider-theme', 'enhance', 'filter', 'filter-placeholder', 'filter-theme', 'filtertext', 'header-theme', 'inset', 'split-icon', 'split-theme', 'theme'],
'listview-item-html-attribute' => ['id', 'class'],
'listview-item-data-attribute' => ['ajax', 'mini', 'rel', 'theme', 'transition'],
'collapsible-html-attribute' => ['id', 'class'],
lib/JQuery/Mobile.pm view on Meta::CPAN
'input-html-attribute' => ['id', 'class', 'disabled', 'max', 'maxlength', 'min', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'size', 'type', 'value', 'accept', 'capture'],
'input-data-attribute' => ['clear-btn', 'clear-btn-text', 'corners', 'highlight', 'icon', 'iconpos', 'iconshadow', 'inline', 'mini', 'shadow', 'theme', 'track-theme'],
'textarea-html-attribute' => ['id', 'name', 'class', 'rows', 'cols', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern'],
'textarea-data-attribute' => ['clear-btn', 'clear-btn-text', 'mini', 'theme'],
'select-html-attribute' => ['id', 'class', 'size', 'maxlength', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern'],
'select-data-attribute' => ['icon', 'iconpos', 'inline', 'mini', 'native-menu', 'overlay-theme', 'placeholder', 'theme'],
'radio-checkbox-html-attribute' => ['id', 'class', 'readonly', 'disabled', 'title', 'required', 'placeholder', 'title', 'pattern', 'value'],
'radio-checkbox-data-attribute' => ['mini', 'theme']
}
);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JQuery/jquery_js/plugins/blockUI/jquery.block.js view on Meta::CPAN
$.blockUI.defaults = {
// the message displayed when blocking the entire page
pageMessage: '<h1>Please wait...</h1>',
// the message displayed when blocking an element
elementMessage: '', // none
// styles for the overlay iframe
overlayCSS: { backgroundColor: '#fff', opacity: '0.5' },
// styles for the message when blocking the entire page
pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' },
// styles for the message when blocking an element
elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'}
};
lib/JQuery/jquery_js/plugins/blockUI/jquery.block.js view on Meta::CPAN
var w = $('<div class="blockUI" style="z-index:1001;cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
var m = full ? $('<div class="blockUI blockMsg" style="z-index:1002;cursor:wait;padding:0;position:fixed"></div>')
: $('<div class="blockUI" style="display:none;z-index:1002;cursor:wait;position:absolute"></div>');
w.css('position', full ? 'fixed' : 'absolute');
if (msg) m.css(css);
if (!noalpha) w.css($.blockUI.defaults.overlayCSS);
if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame
if ($.browser.msie) f.css('opacity','0.0');
$([f[0],w[0],m[0]]).appendTo(full ? 'body' : el);
if (full) this.pageBlock = m[0];
view all matches for this distribution
view release on metacpan or search on metacpan
lib/JSONAPI/Document/Builder/Compound.pm view on Meta::CPAN
my $result_ref =
$self->build_relationship($relation_source, $fields->{$relation_source}, { with_attributes => 1 })->{data};
if (ref($result_ref) eq 'ARRAY') { # The source relation is a has_many, link the nested resources for each one.
my $source_row = $self->row->$relation_source;
if ($source_row->can('all')) { # Check if any overlaying dbix resultset class can do "all"
my $includes =
$self->build_nested_from_resultset($source_row, $result_ref, $nested->{$relation_source}, $fields);
push @included, $_ for @$includes;
}
} else {
view all matches for this distribution
view release on metacpan or search on metacpan
t/9080_cheatsheets.t view on Meta::CPAN
ok( $file_ok && length($copy) == 0,
"$lang CS1 file is valid UTF-8" );
}
# Decode raw bytes as UTF-8 string for text checks
# (simple: treat as Latin-1 overlay; exact match strings are ASCII
# or will be embedded as UTF-8 literals in this source file)
$content = $raw;
#------------------------------------------------------------------
# CS4: header line 2 contains "(XX)"
view all matches for this distribution
view release on metacpan or search on metacpan
share/ext-3.4.1/docs/extjs/ext-all.js view on Meta::CPAN
--
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See t...
*/
var Ext=Ext||{};Ext._startTime=new Date().getTime();(function(){var h=this,a=Object.prototype,j=a.toString,b=true,g={toString:1},e=function(){},d=function(){var i=d.caller.caller;return i.$owner.prototype[i.$name].apply(this,arguments)},c;Ext.global=...
view all matches for this distribution
view release on metacpan or search on metacpan
t/scripts/s12-expected.js view on Meta::CPAN
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([wEHLQV-Z]|[0-9a-zA...
view all matches for this distribution
view release on metacpan or search on metacpan
share/web/static/css/facebox.css view on Meta::CPAN
width: 10px;
overflow: hidden;
padding: 0;
}
#facebox_overlay {
position: fixed;
top: 0px;
left: 0px;
height:100%;
width:100%;
share/web/static/css/facebox.css view on Meta::CPAN
.facebox_hide {
z-index:-100;
}
.facebox_overlayBG {
background-color: #000;
z-index: 99;
}
* html #facebox_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Geo/KML/PolyMap.pm view on Meta::CPAN
push(@kml_file,"<description>$placename $datadesc</description>");
push(@kml_file,"<name>Legend</name>");
push(@kml_file,"<Icon>");
push(@kml_file,"<href>$legend_file_name</href>");
push(@kml_file,"</Icon>");
push(@kml_file,"<overlayXY x=\"0\" y=\"1\" xunits=\"fraction\" yunits=\"fraction\"/>");
push(@kml_file,"<screenXY x=\"0\" y=\"1\" xunits=\"fraction\" yunits=\"fraction\"/>");
push(@kml_file,"<rotationXY x=\"0\" y=\"0\" xunits=\"fraction\" yunits=\"fraction\"/>");
push(@kml_file,"<size x=\"0\" y=\"0\" xunits=\"pixels\" yunits=\"pixels\"/>");
push(@kml_file,"<rotation>0</rotation>");
push(@kml_file,"</ScreenOverlay>");
view all matches for this distribution
view release on metacpan or search on metacpan
lib/KiokuDB/TypeMap/Shadow.pm view on Meta::CPAN
=head1 DESCRIPTION
This class is useful for performing mixin inheritance like merging of typemaps,
by shadowing an ordered list.
This is used internally to overlay the user typemap on top of the
L<KiokuDB::TypeMap::Default> instance provided by the backend.
This differs from using C<includes> in L<KiokuDB::TypeMap> because that
inclusion is computed symmetrically, like roles.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LINE/Bot/API.pm view on Meta::CPAN
my $messages = LINE::Bot::API::Builder::SendMessage->new(
)->add_imagemap($imagemap->build);
$bot->reply_message($reply_token, $messages->build);
An Imagemap message can contain a video area inside. Here is an example of one withe upper half being a video overlay:
my $imagemap_message = LINE::Bot::API::Builder::ImagemapMessage->new(
base_url => 'https://example.com/bot/images/rm001',
alt_text => 'this is an imagemap',
base_width => 1040,
view all matches for this distribution
view release on metacpan or search on metacpan
Report/examples/localTrojans.pl view on Meta::CPAN
}
return($line);
};
# overlay above with below in order
@_ = split('\n',q|
#
# my additions + user contributions
1 Sockets des Troie
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LaTeXML/Plugin/LtxMojo/public/css/external/jquery-ui.css view on Meta::CPAN
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*!
* jQuery UI CSS Framework 1.8.24
*
lib/LaTeXML/Plugin/LtxMojo/public/css/external/jquery-ui.css view on Meta::CPAN
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
/* Overlays */
.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radiu...
* jQuery UI Resizable 1.8.24
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
#**********************************************************************
# The decoding macro does decoding using tex, we do it with perl!
# Doesn't have a user-facing interface.
# this grammar defines what an (alert|overlay|mode) specification is!
our $BEAMER_SPECIFICATION = Parse::RecDescent->new(<<'EOGRAMMAR');
# a mode specification
mode_spec:
MODE(s /|/)
# an overlay specification
overlay_spec:
mode_and_frame(s /\|/)
# an action specification
action_spec:
mode_and_action_and_frame(s /\|/)
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
MODIFIER : '.' | '+'
STAR : '*'
EOGRAMMAR
# processBeamerSpec is the main function for processing alert and overlay specifications.
# This takes place in three steps:
#
# 1. Process the AST
# 2. Filter out non-matching modes
# 3. Evaluate '+'s and perform actions
#
# This function takes the following arguments:
# $spec - The specification to parse (a string)
# $mode - The current (actual) mode to process the specification in.
# $allowActions - when true, process an action specification, else an overlay specification.
# $beamerPauses - The value of plus that was encountered. This is used to process relative frame numbers.
#
# The function returns a pair ([@actions], $newBeamerPauses).
# $newBeamerPauses - The new last plus encountered.
# @actions - an array containing a list of frames and the corresponding actions to perform.
#
# When parsing fails, returns (undef, $beamerPauses).
#
# Each $action in @actions is a hash with the following keys:
# 'action' => The action to perform (in the case of an overlay specification this is undef, in alert specifications, this might be undef or the action itself).
# 'frames' => an array of hashes with the following keys:
#
# 'from' => The absolute slide number this action should start at, may be undef to indiciate the first slide.
# 'to' => The absolute slide number this action should end at (inclusive), may be undef to indiciate the last slide.
sub processBeamerSpec {
my ($spec, $allowActions, $mode, $beamerPauses) = @_;
# process the specification into an ast!
$spec =~ s/\s+//g;
# process an overlay or alert, depending on if $allowActions is true
# FIXME: action_spec only parses first one
my ($ast);
if ($allowActions) {
$ast = $BEAMER_SPECIFICATION->action_spec($spec); }
else {
$ast = $BEAMER_SPECIFICATION->overlay_spec($spec); }
return $beamerPauses, undef unless defined($ast);
# prepare the returned list of actions
my (@actions) = ();
my ($action, $start, $end) = ();
my (@frames, %actionspec, %framespec);
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
$beamerPauses = $beamerPauses + $offset;
return $oldBeamerPauses, $beamerPauses; } }
# getSlideActions processes $actions, and returns an ordered list with the following items:
# $action: the action to be performed, or undef if none provided.
# $overlay: a string describing the overlay specification for the provided action.
sub getSlideActions {
my ($actions) = @_;
my (@actions, @spec) = ();
my (%action, %frame);
my ($from, $to);
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
#**********************************************************************
# Digesting Beamer Specifications
#**********************************************************************
NewCounter('beamer@slideinframe'); # the current slide number in the frame
NewCounter('beamerpauses'); # overlay we are on, i.e. the last '+' value encounted.
NewCounter('beamer@lastslideinframe'); # the last known slide in a frame
# digestBeamerSpec digests an alert or overlay specification.
# It returns the actions contained in it.
sub digestBeamerSpec {
my ($spec, $allowActions) = @_;
my ($actions);
# get current state
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
my $theSlide = CounterValue('beamer@slideinframe')->valueOf;
AssignValue('beamer@anotherslide' => $theSlide < $theMaxSlide, 'global') unless ($theSlide == 0);
# return the parsed actions!
$actions; }
# digestOverlaySpec digests an overlay specification.
# It returns where the current slide is located temporally to the overlay.
# See getTemporalSlide for return values.
sub digestOverlaySpec {
my ($spec) = @_;
return undef unless defined($spec);
$spec = ToString(Expand($spec)); # TODO: Should this be done ealier? Perhaps in the argument type?
# get the action
my $action = digestBeamerSpec($spec, 0);
unless (defined($action)) {
Warn('unexpected', '<overlay>', $spec, 'Missing overlay specification, treated as matching');
return 0; }
return undef unless defined($action);
# check if we need to do anything
my $theSlide = CounterValue('beamer@slideinframe')->valueOf;
# for debugging!
# Info('expected', 'overlay', $spec, "spec = <$spec> slide = $theSlide value = " . getTemporalSlide($action, $theSlide));
getTemporalSlide($action, $theSlide); }
# digestActionSpec digests an overlay specification.
# It returns the processed actions.
# See getSlideActions for return values.
sub digestActionSpec {
my ($spec) = @_;
return undef unless defined($spec);
$spec = ToString(Expand($spec)); # TODO: Should this be done ealier? Perhaps in the argument type?
# get the action
my $action = digestBeamerSpec($spec, 1);
unless (defined($action)) {
Warn('unexpected', '<overlay>', $spec, 'Missing overlay specification, treated as matching');
return 0; }
return undef unless defined($action);
# check if we need to do anything
getSlideActions($action); }
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
\space\number\day, \number\year}
EoTeX
#**********************************************************************
# beamerbaseoverlay.sty
#**********************************************************************
RawTeX(<<'EoTeX');
% This variant based on \@ifnextchar does not skip spaces
% (So like amsmath's \new@ifnextchar). It is used where beamer allows
% an overlay at the end of a command, and would thus otherwise result in
% space gobbling.
\long\def\beamer@ifnextcharospec#1#2{%
\def\reserved@a{#1}%
\def\reserved@b{#2}%
\futurelet\@let@token\beamer@ifnch}
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
\def\newenvironment{\@ifnextchar<{\beamer@newenv}{\beamer@orignewenvironment}}
\def\beamer@newenv<>{\@star@or@long\beamer@new@environment}
\def\beamer@new@environment#1{\@ifnextchar[{\beamer@@newenv{#1}}{\beamer@newenvnoopt{#1}{0}}}
\def\beamer@@newenv#1[#2]{\@ifnextchar[{\beamer@newenvopt{#1}{#2}}{\beamer@newenvnoopt{#1}{#2}}}
% The beamer syntax for \newenvironment<> follows the pattern for \newcommand<>
% and allows the overlay spec anywhere: the same code path is therefore used for
% both.
\long\def\beamer@newenvnoopt#1#2#3#4{%
\expandafter\newcommand\expandafter<\expandafter>\csname#1\endcsname[#2]{#3}%
\expandafter\long\expandafter\def\csname end#1\endcsname{#4}%
}
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
{\cslet{@orig\string#1}#1}%
{}%
\csundef{beamerx@\string#1}%
\newcommand<>#1}
% The class allows overlays specs at any position in a command.
% To handle that, beamer first collects up material potentially
% including overlay info before passing to the 'real' definition.
\long\def\beamer@presort#1#2#3{%
\def\beamer@todo{#1}%
\def\beamer@ospec{}%
\beamer@argscount=#2\relax
\beamer@prechecka{#3}}
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
# only shows text only on specified slides - but only one specficiation may be present
DefMacro('\only', '\beamer@ifnextcharospec{\beamer@only@before}{\beamer@only}');
DefMacro('\beamer@only {}', '\beamer@ifnextcharospec{\beamer@only@after{#1}}{\beamer@only@plain{#1}}');
DefMacro('\beamer@only@after {} BeamerAngled', '\beamer@only@before<#2>{#1}');
DefMacro('\beamer@only@before BeamerAngled {}', sub {
my ($gullet, $overlay, $argument) = @_;
if (digestOverlaySpec($overlay) == 0) {
$argument; }
else {
(); } });
DefMacro('\beamer@only@plain {}', '#1'); # the empty only always matches
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
DefMacro('\alt', '\beamer@ifnextcharospec{\beamer@alt@before}{\beamer@alt}');
DefMacro('\beamer@alt {}{}', '\beamer@ifnextcharospec{\beamer@alt@after{#1}{#2}}{\beamer@alt@plain{#1}{#2}}');
DefMacro('\beamer@alt@after {}{} BeamerAngled', '\beamer@alt@before<#3>{#1}{#2}');
DefMacro('\beamer@alt@before BeamerAngled {}{}', sub {
my ($gullet, $overlay, $text, $altText) = @_;
if (digestOverlaySpec($overlay) == 0) {
$text; }
else {
$altText; } });
DefMacro('\beamer@alt@plain {}{}', '#1'); # the empty spec always matches
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
DefMacro('\beamer@altenv@ BeamerAngled {}{}{}{}', '\beamer@altenv{#2}{#3}{#4}{#5}<#1>'); # put the <> at the end!
DefMacro('\beamer@altenv {}{}{}{}', '\alt{#1\def\beamer@eoenv{#2}}{#3\def\beamer@eoenv{#4}}');
DefMacro('\endaltenv', '\beamer@eoenv');
DefMacro('\temporal BeamerAngled {}{}{}', sub {
my ($gullet, $overlay, $beforeText, $text, $afterText) = @_;
my $temporal = digestOverlaySpec($overlay);
if ($temporal == 0) {
$text; }
elsif ($temporal == -1) {
$beforeText; }
else {
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
# beamerbaseframe.sty
#**********************************************************************
DefKeyVal('beamerframe', 'fragile', '', '');
# To render a frame, we need to render all the overlay(s) contained in it.
# To achieve this, we first record the content of the frame environment into a macro - so we can replace it multiple times.
DefMacro(T_CS('\begin{frame}'), '\frame@');
DefMacro('\frame@ OptionalBeamerAngled BeamerSquared OptionalKeyVals:beamerframe LiteralBalanced LiteralBalanced', sub {
my ($gullet, $overlay, $defaultOverlay, $opts, $title, $subtitle) = @_;
# store the default overlay (which may be undef)
AssignValue('beamer@action@default@local' => $defaultOverlay);
# store title and subtitle
prepareFrameTitles($title, $subtitle);
# ensure we have an overlay
$overlay = '*' unless defined($overlay);
$overlay = ToString($overlay);
# execute overlay with a blank context, discarding any changed state.
($overlay) = digestBeamerSpec($overlay, 0);
Error('unexpected', '<overlay>', $overlay, 'Unable to parse slide overlay') unless defined($overlay);
AssignValue('beamer@frame@overlay' => $overlay);
# figure out the first slide to render
my $first = getNextSlide($overlay, undef);
# read the body of the frame!
my $fragile = defined($opts) && defined(GetKeyVal($opts, 'fragile'));
unless (readFrameBody($gullet, $fragile, 'frame')) {
Fatal('unexpected', '<eof>', $gullet, 'Unexpected end of input while looking for \end{frame}'); }
# and do the frame now!
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
DefMacro('\beamer@slides@do {}', '\beamer@slides@iter{#1}\beamer@slides@while{#1}');
DefMacro('\beamer@slides@iter {}', '\begin{beamer@frame@slide}#1\beamer@slide\end{beamer@frame@slide}');
DefMacro('\beamer@slides@while {}', sub {
my ($gullet, $current) = @_;
return () unless LookupValue('beamer@anotherslide');
my $overlay = LookupValue('beamer@frame@overlay');
my $next = getNextSlide($overlay, ToString($current) + 0);
return () unless defined($next); # overlay spec for the slide
(T_CS('\beamer@slides@do'), T_BEGIN, ExplodeText(ToString($next)), T_END); });
NewCounter('framenumber'); # public counter for the current frame.
NewCounter('beamer@pagenumber'); # fake page number counter, in real tex this uses pdf pages
NewCounter('beamer@slidenumber'); # fake slide number counter, in real tex this uses math
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
beforeDigest => sub {
StepCounter('framenumber');
ResetCounter('beamer@slidenumber'); });
Tag('ltx:slidesequence', afterOpen => sub { GenerateID(@_, 'frame'); });
DefEnvironment('{beamer@frame@slide} Number', "<ltx:slide overlay='#overlay'>#body</ltx:slide>",
# HACK: we use properties to be able to access $overlayno.
properties => sub {
my ($gullet, $overlayno) = @_;
SetCounter('beamer@slideinframe' => $overlayno);
StepCounter('beamer@pagenumber');
StepCounter('beamer@slidenumber');
(overlay => ToString($overlayno)); });
Tag('ltx:slide', afterOpen => sub { GenerateID(@_, 'slide'); });
# TODO: Ignore \setbeamersize for now
DefMacro('\setbeamersize {}', '');
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
DefMacro('\insertdocumentendpage', sub { beamerTODO('insertdocumentendpage'); });
DefMacro('\insertpagenumber', '\@arabic\c@beamer@pagenumber');
DefMacro('\insertframenumber', '\@arabic\c@framenumber');
DefMacro('\insertslidenumber', '\@arabic\c@beamer@slidenumber');
DefMacro('\insertoverlaynumber', '\@arabic\c@beamer@slideinframe');
#**********************************************************************
# beamerbasecolor.sty
#**********************************************************************
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
# store the stuff for the end, and return the beginning
AssignValue('beamer@todoend' => Tokens(@ends));
Tokens(@begins); });
DefMacro('\endactionenv', sub { LookupValue('beamer@todoend'); });
# a beamer variant of beginItemize, that additionally takes a default overlay.
sub beginBeamerItemize {
my ($defaultOverlay, @rest) = @_;
AssignValue('beamer@action@default@local' => $defaultOverlay) if defined($defaultOverlay);
my @result = beginItemize(@rest);
# create a hook to wrap items in
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
if (defined($defaultOverlay)) {
(T_CS('\beamer@item@before'), Tokenize('<' . ToString($defaultOverlay) . '>')); }
else {
(T_CS('\beamer@closeitem'), T_CS('\beamer@item@org')); } });
DefMacro('\beamer@item@before BeamerAngled []', sub {
my ($stomach, $overlay, $key) = @_;
my @return = ();
push(@return, T_CS('\beamer@closeitem'), T_CS('\beamer@item@org'));
push(@return, T_OTHER('['), Revert($key), T_OTHER(']')) if defined($key);
push(@return, T_CS('\beamer@item@action'), revertBeamerAngled($overlay));
@return; });
# Hook into all the {enumerate} {itemize} {description}
# from LaTeX.Pool
lib/LaTeXML/Package/beamer.cls.ltxml view on Meta::CPAN
#**********************************************************************
# All the extra commands with <> arguments
#**********************************************************************
# AddBeamerWrapper adds a beamer overlay argument to a command.
sub AddBeamerWrapper {
my ($command, $args, $wrapper) = @_;
$wrapper = '\only' unless defined($wrapper);
# build tex code to pass the arguments!
my ($count) = 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Language/Befunge/doc/bf98-specs.html view on Meta::CPAN
<p>Befunge-93 source files are plain text files containing only printable
ASCII characters and the end-of-line controls described below.
<p>Funge-98 source files are made up of Funge characters. The
Funge-98 character set overlays the ASCII subset used by Befunge-93
and may have characters greater than 127 present in it (and greater
than 255 on systems where characters are stored in multiple bytes;
but no greater than 2,147,483,647.) The Funge character set is 'display-independent.'
That is to say, character #417 may look like a squiggle on system
Foo and a happy face on system Bar, but the meaning is always the
lib/Language/Befunge/doc/bf98-specs.html view on Meta::CPAN
completely wipes the stack (popping and discarding elements
until it is empty.)
<hr><a name="Stack_Stack_Manipulation"><h3>Stack Stack Manipulation</h3>
<p>The stack stack transparently overlays
the stack - that is to say, the top stack of
Funge-98's stack stack is treated the same as
Befunge-93's sole stack. The Funge programmer
will never notice the difference unless they
use the <code>{</code>, <code>}</code>, or <code>u</code>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Language/FormulaEngine/Compiler.pm view on Meta::CPAN
The Compiler object takes a parse tree and generates perl code from it, and also evals
that perl code into a compiled coderef. However, most of the code generation is handled
by the L<Language::FormulaEngine::Namespace> object. The namespace object must be
available during compilation. In the default scenario, the namespace object will be
consulted for default constants and "global" variables, and then the generated coderef
will accept additional variables to overlay on those global variables, but the Namespace
will still get to determine how to access that pool of combined variables at execution.
For alternative strategies, see the C<output_api> attribute below.
=head1 ATTRIBUTES
view all matches for this distribution
view release on metacpan or search on metacpan
hugs98-Nov2003/fptools/libraries/GLUT/Graphics/UI/GLUT.hs view on Meta::CPAN
--
-- * Utility routines to generate various solid and wire frame objects.
--
-- * Support for bitmap and stroke fonts.
--
-- * Miscellaneous window management functions, including managing overlays.
--
-- This documentation serves as both a specification and a programming guide.
-- If you are interested in a brief introduction to programming with GLUT,
-- have a look at the relevant parts of <http://www.opengl.org/> and the vast
-- amount of books on OpenGL, most of them use GLUT.
hugs98-Nov2003/fptools/libraries/GLUT/Graphics/UI/GLUT.hs view on Meta::CPAN
-- the @tk@ and @aux@ toolkits. The @aux@ toolkit is used in the examples found
-- in the /OpenGL Programming Guide/. Unfortunately, @aux@ has numerous
-- limitations and its utility is largely limited to toy programs. The @tk@
-- library has more functionality than @aux@ but was developed in an /ad hoc/
-- fashion and still lacks much important functionality that IRIS GL programmers
-- expect, like pop-up menus and overlays.
--
-- GLUT is designed to fill the need for a window system independent programming
-- interface for OpenGL programs. The interface is designed to be simple yet
-- still meet the needs of useful OpenGL programs. Features from the IRIS GL,
-- @aux@, and @tk@ interfaces are included to make it easy for programmers used
hugs98-Nov2003/fptools/libraries/GLUT/Graphics/UI/GLUT.hs view on Meta::CPAN
-- loop. This routine never returns, and it continuously calls GLUT callbacks
-- as necessary.
--
-- * /Window Management:/ These routines create and control windows.
--
-- * /Overlay Management:/ These routines establish and manage overlays for
-- windows.
--
-- * /Menu Management:/ These routines create and control pop-up menus.
--
-- * /Callback Registration:/ These routines register callbacks to be called by
hugs98-Nov2003/fptools/libraries/GLUT/Graphics/UI/GLUT.hs view on Meta::CPAN
-- attributed to a window.
--
-- * /Idle:/ A state when no window system events are received for processing
-- as callbacks and the idle callback, if one is registered, is called.
--
-- * /Layer in use:/ Either the normal plane or overlay. This per-window state
-- determines what frame buffer layer OpenGL commands affect.
--
-- * /Menu entry:/ A menu item that the user can select to trigger the menu
-- callback for the menu entry\'s value.
--
hugs98-Nov2003/fptools/libraries/GLUT/Graphics/UI/GLUT.hs view on Meta::CPAN
-- of samples (each containing color and depth information). The samples are
-- averaged to determine the displayed pixel color value. Multisampling is
-- supported as an extension to OpenGL.
--
-- * /Normal plane:/ The default frame buffer layer where GLUT window state
-- resides; as opposed to the /overlay/.
--
-- * /Overlay:/ A frame buffer layer that can be displayed preferentially to
-- the /normal plane/ and supports transparency to display through to the
-- /normal plane/. Overlays are useful for rubber-banding effects, text
-- annotation, and other operations, to avoid damaging the normal plane frame
view all matches for this distribution
view release on metacpan or search on metacpan
doc/AuthorizationHeader.html.en view on Meta::CPAN
<li><a href="#name">NAME</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<ul>
<li><a href="#overlay">Overlay</a></li>
</ul>
<li><a href="#see_also">SEE ALSO</a></li>
<li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li>
</ul>
doc/AuthorizationHeader.html.en view on Meta::CPAN
<pre>
see <a href="http://lemonldap.sf.net">http://lemonldap.sf.net</a> for more infos .</pre>
<p>
</p>
<h2><a name="overlay">Overlay</a></h2>
<p>If you want use your own header method you must use PLUGINHEADER parameter like this :
in httpd.conf : perlsetvar lemonldappluginheader MyModule</p>
<pre>
Your module must accept 3 parameters : config (all the hash of config ) , dn and sting of role (profil) .</pre>
<pre>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Lemonldap/NG/Common/Conf/Backends/Overlay.pm view on Meta::CPAN
if ($@) {
$Lemonldap::NG::Common::Conf::msg .= $@;
return undef;
}
my $conf =
&{"Lemonldap::NG::Common::Conf::Backends::$self->{overlayRealtype}::load"}
(@_);
my @errors;
foreach my $file (@files) {
if ( open my $f, '<', "$self->{overlayDirectory}/$file" ) {
local $/ = undef;
my $content = <$f>;
close $f;
if ( $file =~ $hashParameters ) {
eval { $content = JSON::from_json($content) };
lib/Lemonldap/NG/Common/Conf/Backends/Overlay.pm view on Meta::CPAN
my @files = eval { overList($self) };
my @errors;
foreach my $file (@files) {
my $data = delete $fields->{$file};
if ( $self->{overlayWrite} ) {
if ( open my $f, '>', "$self->{overlayDirectory}/$file" ) {
print $f (
$file =~ $hashParameters ? JSON::to_json($data) : $data );
close $f;
}
lib/Lemonldap/NG/Common/Conf/Backends/Overlay.pm view on Meta::CPAN
}
die join( "\n", @errors ) if $@;
return &{
"Lemonldap::NG::Common::Conf::Backends::$self->{overlayRealtype}::store"
}( $self, $fields );
}
sub overList {
my ($self) = @_;
my $overDir = $self->{overlayDirectory} or die 'Missing overlayDirectory';
die "$overDir directory doesn't exist" unless -d $overDir and -r $overDir;
opendir my $dir, $overDir or die $!;
my @files = grep /^[^\.]/, readdir $dir;
closedir $dir;
my @errors;
lib/Lemonldap/NG/Common/Conf/Backends/Overlay.pm view on Meta::CPAN
return @files;
}
sub AUTOLOAD {
my ($self) = @_;
die 'Missing overlayRealtype'
unless $self->{overlayRealtype};
eval
"require Lemonldap::NG::Common::Conf::Backends::$self->{overlayRealtype}";
die $@ if $@;
$AUTOLOAD =~ s/::Overlay::/::$self->{overlayRealtype}::/;
my @res = &{$AUTOLOAD}(@_);
return wantarray ? (@res) : $res;
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
site/htdocs/static/bwr/angular-bootstrap/ui-bootstrap-tpls.js view on Meta::CPAN
* Used by scrollbarWidth() function to cache scrollbar's width.
* Do not access this variable directly, use scrollbarWidth() instead.
*/
var SCROLLBAR_WIDTH;
/**
* scrollbar on body and html element in IE and Edge overlay
* content and should be considered 0 width.
*/
var BODY_SCROLLBAR_WIDTH;
var OVERFLOW_REGEX = {
normal: /(auto|scroll)/,
site/htdocs/static/bwr/angular-bootstrap/ui-bootstrap-tpls.js view on Meta::CPAN
},
/**
* Provides the scrollbar width, concept from TWBS measureScrollbar()
* function in https://github.com/twbs/bootstrap/blob/master/js/modal.js
* In IE and Edge, scollbar on body and html element overlay and should
* return a width of 0.
*
* @returns {number} The width of the browser scollbar.
*/
scrollbarWidth: function(isBody) {
view all matches for this distribution