1Prima::Const(3) User Contributed Perl Documentation Prima::Const(3)
2
3
4
6 Prima::Const - predefined constants
7
9 "Prima::Const" and Prima::Classes is a minimal set of perl modules
10 needed for the toolkit. Since the module provides bindings for the core
11 constants, it is required to be included in every Prima-related module
12 and program.
13
14 The constants are assembled under the top-level package names, with no
15 "Prima::" prefix. This violates the perl guidelines about package
16 naming, however, it was considered way too inconvenient to prefix every
17 constant with "Prima::" string.
18
19 This document provides description of all core-coded constants. The
20 constants are also described in the articles together with the
21 corresponding methods and properties. For example, "nt" constants are
22 also described in "Flow" in Prima::Object article.
23
25 am:: - Prima::Icon auto masking
26 See also "autoMasking" in Prima::Image
27
28 am::None - no mask update performed
29 am::MaskColor - mask update based on Prima::Icon::maskColor property
30 am::MaskIndex - mask update based on Prima::Icon::maskIndex property
31 am::Auto - mask update based on corner pixel values
32
33 apc:: - OS type
34 See "get_system_info" in Prima::Application
35
36 apc::Win32
37 apc::Unix
38
39 bi:: - border icons
40 See "borderIcons" in Prima::Window
41
42 bi::SystemMenu - system menu button and/or close button
43 ( usually with icon ) is shown
44 bi::Minimize - minimize button
45 bi::Maximize - maximize ( and eventual restore )
46 bi::TitleBar - window title
47 bi::All - all of the above
48
49 bs:: - border styles
50 See "borderStyle" in Prima::Window
51
52 bs::None - no border
53 bs::Single - thin border
54 bs::Dialog - thick border
55 bs::Sizeable - thick border with interactive resize capabilities
56
57 ci:: - color indices
58 See "colorIndex" in Prima::Widget
59
60 ci::NormalText or ci::Fore
61 ci::Normal or ci::Back
62 ci::HiliteText
63 ci::Hilite
64 ci::DisabledText
65 ci::Disabled
66 ci::Light3DColor
67 ci::Dark3DColor
68 ci::MaxId
69
70 cl:: - colors
71 See "colorIndex" in Prima::Widget
72
73 Direct color constants
74 cl::Black
75 cl::Blue
76 cl::Green
77 cl::Cyan
78 cl::Red
79 cl::Magenta
80 cl::Brown
81 cl::LightGray
82 cl::DarkGray
83 cl::LightBlue
84 cl::LightGreen
85 cl::LightCyan
86 cl::LightRed
87 cl::LightMagenta
88 cl::Yellow
89 cl::White
90 cl::Gray
91
92 Indirect color constants
93 cl::NormalText, cl::Fore
94 cl::Normal, cl::Back
95 cl::HiliteText
96 cl::Hilite
97 cl::DisabledText
98 cl::Disabled
99 cl::Light3DColor
100 cl::Dark3DColor
101 cl::MaxSysColor
102
103 Special constants
104 See "Colors" in Prima::gp_problems
105
106 cl::Set - logical all-1 color
107 cl::Clear - logical all-0 color
108 cl::Invalid - invalid color value
109 cl::SysFlag - indirect color constant bit set
110 cl::SysMask - indirect color constant bit clear mask
111
112 cm:: - commands
113 Keyboard and mouse commands
114 See "key_down" in Prima::Widget, "mouse_down" in Prima::Widget
115
116 cm::KeyDown
117 cm::KeyUp
118 cm::MouseDown
119 cm::MouseUp
120 cm::MouseClick
121 cm::MouseWheel
122 cm::MouseMove
123 cm::MouseEnter
124 cm::MouseLeave
125
126 Internal commands ( used in core only or not used at all )
127 cm::Close
128 cm::Create
129 cm::Destroy
130 cm::Hide
131 cm::Show
132 cm::ReceiveFocus
133 cm::ReleaseFocus
134 cm::Paint
135 cm::Repaint
136 cm::Size
137 cm::Move
138 cm::ColorChanged
139 cm::ZOrderChanged
140 cm::Enable
141 cm::Disable
142 cm::Activate
143 cm::Deactivate
144 cm::FontChanged
145 cm::WindowState
146 cm::Timer
147 cm::Click
148 cm::CalcBounds
149 cm::Post
150 cm::Popup
151 cm::Execute
152 cm::Setup
153 cm::Hint
154 cm::DragDrop
155 cm::DragOver
156 cm::EndDrag
157 cm::Menu
158 cm::EndModal
159 cm::MenuCmd
160 cm::TranslateAccel
161 cm::DelegateKey
162
163 cr:: - pointer cursor resources
164 See "pointerType" in Prima::Widget
165
166 cr::Default same pointer type as owner's
167 cr::Arrow arrow pointer
168 cr::Text text entry cursor-like pointer
169 cr::Wait hourglass
170 cr::Size general size action pointer
171 cr::Move general move action pointer
172 cr::SizeWest, cr::SizeW right-move action pointer
173 cr::SizeEast, cr::SizeE left-move action pointer
174 cr::SizeWE general horizontal-move action pointer
175 cr::SizeNorth, cr::SizeN up-move action pointer
176 cr::SizeSouth, cr::SizeS down-move action pointer
177 cr::SizeNS general vertical-move action pointer
178 cr::SizeNW up-right move action pointer
179 cr::SizeSE down-left move action pointer
180 cr::SizeNE up-left move action pointer
181 cr::SizeSW down-right move action pointer
182 cr::Invalid invalid action pointer
183 cr::DragNone pointer for an invalid dragging target
184 cr::DragCopy pointer to indicate that a dnd::Copy action can be accepted
185 cr::DragMove pointer to indicate that a dnd::Move action can be accepted
186 cr::DragLink pointer to indicate that a dnd::Link action can be accepted
187 cr::User user-defined icon
188
189 dbt:: - device bitmap types
190 dbt::Bitmap monochrome 1 bit bitmap
191 dbt::Pixmap bitmap compatible with display format
192 dbt::Layered bitmap compatible with display format with alpha channel
193
194 dnd:: - drag and drop action constants and functions
195 dnd::None no DND action was selected or performed
196 dnd::Copy copy action
197 dnd::Move move action
198 dnd::Link link action
199 dnd::Mask combination of all valid actions
200
201 is_one_action ACTIONS
202 Returns true if "ACTIONS" is not a combination of "dnd::"
203 constants.
204
205 pointer ACTION
206 Returns a "cr::" constant corresponding to the "ACTION"
207
208 to_one_action ACTIONS
209 Selects a best single action from combination of allowes "ACTIONS"
210
211 keymod ACTION
212 Returns a "km::" keyboard modifier constant the "ACTION" will be
213 selected, when possible, if the user presses that modifier. Return
214 0 for "dnd::Copy" that is a standard action to be performed without
215 any modifiers.
216
217 dt:: - drive types
218 See "query_drive_type" in Prima::Utils
219
220 dt::None
221 dt::Unknown
222 dt::Floppy
223 dt::HDD
224 dt::Network
225 dt::CDROM
226 dt::Memory
227
228 dt:: - Prima::Drawable::draw_text constants
229 dt::Left - text is aligned to the left boundary
230 dt::Right - text is aligned to the right boundary
231 dt::Center - text is aligned horizontally in center
232 dt::Top - text is aligned to the upper boundary
233 dt::Bottom - text is aligned to the lower boundary
234 dt::VCenter - text is aligned vertically in center
235 dt::DrawMnemonic - tilde-escapement and underlining is used
236 dt::DrawSingleChar - sets tw::BreakSingle option to
237 Prima::Drawable::text_wrap call
238 dt::NewLineBreak - sets tw::NewLineBreak option to
239 Prima::Drawable::text_wrap call
240 dt::SpaceBreak - sets tw::SpaceBreak option to
241 Prima::Drawable::text_wrap call
242 dt::WordBreak - sets tw::WordBreak option to
243 Prima::Drawable::text_wrap call
244 dt::ExpandTabs - performs tab character ( \t ) expansion
245 dt::DrawPartial - draws the last line, if it is visible partially
246 dt::UseExternalLeading- text lines positioned vertically with respect to
247 the font external leading
248 dt::UseClip - assign ::clipRect property to the boundary rectangle
249 dt::QueryLinesDrawn - calculates and returns number of lines drawn
250 ( contrary to dt::QueryHeight )
251 dt::QueryHeight - if set, calculates and returns vertical extension
252 of the lines drawn
253 dt::NoWordWrap - performs no word wrapping by the width of the boundaries
254 dt::WordWrap - performs word wrapping by the width of the boundaries
255 dt::Default - dt::NewLineBreak|dt::WordBreak|dt::ExpandTabs|
256 dt::UseExternalLeading
257
258 fdo:: - find / replace dialog options
259 See Prima::FindDialog
260
261 fdo::MatchCase
262 fdo::WordsOnly
263 fdo::RegularExpression
264 fdo::BackwardSearch
265 fdo::ReplacePrompt
266
267 fds:: - find / replace dialog scope type
268 See Prima::FindDialog
269
270 fds::Cursor
271 fds::Top
272 fds::Bottom
273
274 fe:: - file events constants
275 See Prima::File
276
277 fe::Read
278 fe::Write
279 fe::Exception
280
281 fm:: - fill modes
282 See "fillMode" in Prima::Drawable
283
284 fp::Alternate
285 fp::Winding
286 fp::Overlay
287
288 fp:: - standard fill pattern indices
289 See "fillPattern" in Prima::Drawable
290
291 fp::Empty
292 fp::Solid
293 fp::Line
294 fp::LtSlash
295 fp::Slash
296 fp::BkSlash
297 fp::LtBkSlash
298 fp::Hatch
299 fp::XHatch
300 fp::Interleave
301 fp::WideDot
302 fp::CloseDot
303 fp::SimpleDots
304 fp::Borland
305 fp::Parquet
306
307 fp:: - font pitches
308 See "pitch" in Prima::Drawable
309
310 fp::Default
311 fp::Fixed
312 fp::Variable
313
314 fr:: - fetch resource constants
315 See "fetch_resource" in Prima::Widget
316
317 fr::Color
318 fr::Font
319 fs::String
320
321 fs:: - font styles
322 See "style" in Prima::Drawable
323
324 fs::Normal
325 fs::Bold
326 fs::Thin
327 fs::Italic
328 fs::Underlined
329 fs::StruckOut
330 fs::Outline
331
332 fw:: - font weights
333 See "weight" in Prima::Drawable
334
335 fw::UltraLight
336 fw::ExtraLight
337 fw::Light
338 fw::SemiLight
339 fw::Medium
340 fw::SemiBold
341 fw::Bold
342 fw::ExtraBold
343 fw::UltraBold
344
345 ggo:: - glyph outline commands
346 ggo::Move
347 ggo::Line
348 ggo::Conic
349 ggo::Cubic
350
351 See also "render_glyph" in Prima::Drawable
352
353 gm:: - grow modes
354 See "growMode" in Prima::Widget
355
356 Basic constants
357 gm::GrowLoX widget's left side is kept in constant
358 distance from owner's right side
359 gm::GrowLoY widget's bottom side is kept in constant
360 distance from owner's top side
361 gm::GrowHiX widget's right side is kept in constant
362 distance from owner's right side
363 gm::GrowHiY widget's top side is kept in constant
364 distance from owner's top side
365 gm::XCenter widget is kept in center on its owner's
366 horizontal axis
367 gm::YCenter widget is kept in center on its owner's
368 vertical axis
369 gm::DontCare widgets origin is maintained constant relative
370 to the screen
371
372 Derived or aliased constants
373 gm::GrowAll gm::GrowLoX|gm::GrowLoY|gm::GrowHiX|gm::GrowHiY
374 gm::Center gm::XCenter|gm::YCenter
375 gm::Client gm::GrowHiX|gm::GrowHiY
376 gm::Right gm::GrowLoX|gm::GrowHiY
377 gm::Left gm::GrowHiY
378 gm::Floor gm::GrowHiX
379
380 gui:: - GUI types
381 See "get_system_info" in Prima::Application
382
383 gui::Default
384 gui::PM
385 gui::Windows
386 gui::XLib
387 gui::GTK
388
389 le:: - line end styles
390 See "lineEnd" in Prima::Drawable
391
392 le::Flat
393 le::Square
394 le::Round
395
396 lj:: - line join styles
397 See "lineJoin" in Prima::Drawable
398
399 lj::Round
400 lj::Bevel
401 lj::Miter
402
403 lp:: - predefined line pattern styles
404 See "linePattern" in Prima::Drawable
405
406 lp::Null # "" /* */
407 lp::Solid # "\1" /* ___________ */
408 lp::Dash # "\x9\3" /* __ __ __ __ */
409 lp::LongDash # "\x16\6" /* _____ _____ */
410 lp::ShortDash # "\3\3" /* _ _ _ _ _ _ */
411 lp::Dot # "\1\3" /* . . . . . . */
412 lp::DotDot # "\1\1" /* ............ */
413 lp::DashDot # "\x9\6\1\3" /* _._._._._._ */
414 lp::DashDotDot # "\x9\3\1\3\1\3" /* _.._.._.._.. */
415
416 im:: - image types
417 See "type" in Prima::Image.
418
419 Bit depth constants
420 im::bpp1
421 im::bpp4
422 im::bpp8
423 im::bpp16
424 im::bpp24
425 im::bpp32
426 im::bpp64
427 im::bpp128
428
429 Pixel format constants
430 im::Color
431 im::GrayScale
432 im::RealNumber
433 im::ComplexNumber
434 im::TrigComplexNumber
435 im::SignedInt
436
437 Mnemonic image types
438 im::Mono - im::bpp1
439 im::BW - im::bpp1 | im::GrayScale
440 im::16 - im::bpp4
441 im::Nibble - im::bpp4
442 im::256 - im::bpp8
443 im::RGB - im::bpp24
444 im::Triple - im::bpp24
445 im::Byte - gray 8-bit unsigned integer
446 im::Short - gray 16-bit unsigned integer
447 im::Long - gray 32-bit unsigned integer
448 im::Float - float
449 im::Double - double
450 im::Complex - dual float
451 im::DComplex - dual double
452 im::TrigComplex - dual float
453 im::TrigDComplex - dual double
454
455 Extra formats
456 im::fmtBGR
457 im::fmtRGBI
458 im::fmtIRGB
459 im::fmtBGRI
460 im::fmtIBGR
461
462 Masks
463 im::BPP - bit depth constants
464 im::Category - category constants
465 im::FMT - extra format constants
466
467 ict:: - image conversion types
468 See "conversion" in Prima::Image.
469
470 ict::None - no dithering, with static palette or palette optimized by source palette
471 ict::Posterization - no dithering, with optimized palette by source pixels
472 ict::Ordered - 8x8 ordered halftone dithering
473 ict::ErrorDiffusion - error diffusion dithering with static palette
474 ict::Optimized - error diffusion dithering with optimized palette
475
476 Their values are combinations of "ictp::" and "ictd::" constants, see
477 below.
478
479 ictd:: - image conversion types, dithering
480 These constants select color correction (dithering) algorithm when
481 downsampling an image
482
483 ictd::None - no dithering, pure colors only
484 ictd::Ordered - 8x8 ordered halftone dithering (checkerboard)
485 ictd::ErrorDiffusion - error diffusion dithering (2/5 down, 2/5 right, 1/5 down/right)
486
487 ictp:: - image conversion types, palette optimization
488 These constants select how the target palette is made up when
489 downsampling an image.
490
491 ictp::Unoptimized - use whatever color mapping method is fastest,
492 image quality can be severely compromized
493 ictp::Cubic - use static cubic palette; a bit slower,
494 guaranteed mediocre quality
495 ictp::Optimized - collect available colors in the image;
496 slowest, gives best results
497
498 Not all combination of ictp and ictd constants are valid
499
500 is:: - image statistics indices
501 See "stats" in Prima::Image.
502
503 is::RangeLo - minimum pixel value
504 is::RangeHi - maximum pixel value
505 is::Mean - mean value
506 is::Variance - variance
507 is::StdDev - standard deviation
508 is::Sum - sum of pixel values
509 is::Sum2 - sum of squares of pixel values
510
511 ist:: - image scaling types
512 ist::None - image stripped or padded with zeros
513 ist::Box - image will be scaled using simple box transform
514 ist::BoxX - columns behave as ist::None, rows as ist::Box
515 ist::BoxY - rows behave as in ist::None, columns as ist::Box
516 ist::AND - shrunken pixels AND-end together (black on white)
517 ist::OR - shrunken pixels OR-end together (white on black)
518 ist::Triangle - bilinear interpolation
519 ist::Quadratic - 2rd order (quadratic) B-Spline approximation of Gaussian
520 ist::Sinc - sine function
521 ist::Hermite - B-Spline interpolation
522 ist::Cubic - 3rd order (cubic) B-Spline approximation of Gaussian
523 ist::Gaussian - Gaussian transform with gamma=0.5
524
525 See "scaling" in Prima::Image.
526
527 kb:: - keyboard virtual codes
528 See also "KeyDown" in Prima::Widget.
529
530 Modificator keys
531 kb::ShiftL kb::ShiftR kb::CtrlL kb::CtrlR
532 kb::AltL kb::AltR kb::MetaL kb::MetaR
533 kb::SuperL kb::SuperR kb::HyperL kb::HyperR
534 kb::CapsLock kb::NumLock kb::ScrollLock kb::ShiftLock
535
536 Keys with character code defined
537 kb::Backspace kb::Tab kb::Linefeed kb::Enter
538 kb::Return kb::Escape kb::Esc kb::Space
539
540 Function keys
541 kb::F1 .. kb::F30
542 kb::L1 .. kb::L10
543 kb::R1 .. kb::R10
544
545 Other
546 kb::Clear kb::Pause kb::SysRq kb::SysReq
547 kb::Delete kb::Home kb::Left kb::Up
548 kb::Right kb::Down kb::PgUp kb::Prior
549 kb::PageUp kb::PgDn kb::Next kb::PageDown
550 kb::End kb::Begin kb::Select kb::Print
551 kb::PrintScr kb::Execute kb::Insert kb::Undo
552 kb::Redo kb::Menu kb::Find kb::Cancel
553 kb::Help kb::Break kb::BackTab
554
555 Masking constants
556 kb::CharMask - character codes
557 kb::CodeMask - virtual key codes ( all other kb:: values )
558 kb::ModMask - km:: values
559
560 km:: - keyboard modifiers
561 See also "KeyDown" in Prima::Widget.
562
563 km::Shift
564 km::Ctrl
565 km::Alt
566 km::KeyPad
567 km::DeadKey
568 km::Unicode
569
570 mt:: - modality types
571 See "get_modal" in Prima::Window, "get_modal_window" in Prima::Window
572
573 mt::None
574 mt::Shared
575 mt::Exclusive
576
577 nt:: - notification types
578 Used in "Prima::Component::notification_types" to describe event flow.
579
580 See also "Flow" in Prima::Object.
581
582 Starting point constants
583 nt::PrivateFirst
584 nt::CustomFirst
585
586 Direction constants
587 nt::FluxReverse
588 nt::FluxNormal
589
590 Complexity constants
591 nt::Single
592 nt::Multiple
593 nt::Event
594
595 Composite constants
596 nt::Default ( PrivateFirst | Multiple | FluxReverse)
597 nt::Property ( PrivateFirst | Single | FluxNormal )
598 nt::Request ( PrivateFirst | Event | FluxNormal )
599 nt::Notification ( CustomFirst | Multiple | FluxReverse )
600 nt::Action ( CustomFirst | Single | FluxReverse )
601 nt::Command ( CustomFirst | Event | FluxReverse )
602
603 mb:: - mouse buttons
604 See also "MouseDown" in Prima::Widget.
605
606 mb::b1 or mb::Left
607 mb::b2 or mb::Middle
608 mb::b3 or mb::Right
609 mb::b4
610 mb::b5
611 mb::b6
612 mb::b7
613 mb::b8
614
615 mb:: - message box constants
616 Message box and modal result button commands
617 See also "modalResult" in Prima::Window, "modalResult" in
618 Prima::Button.
619
620 mb::OK, mb::Ok
621 mb::Cancel
622 mb::Yes
623 mb::No
624 mb::Abort
625 mb::Retry
626 mb::Ignore
627 mb::Help
628
629 Message box composite ( multi-button ) constants
630 mb::OKCancel, mb::OkCancel
631 mb::YesNo
632 mb::YesNoCancel
633 mb::ChangeAll
634
635 Message box icon and bell constants
636 mb::Error
637 mb::Warning
638 mb::Information
639 mb::Question
640
641 ps:: - paint states
642 ps::Disabled - can neither draw, nor get/set graphical properties on an object
643 ps::Enabled - can both draw and get/set graphical properties on an object
644 ps::Information - can only get/set graphical properties on an object
645
646 For brevity, ps::Disabled is equal to 0 so this allows for simple
647 boolean testing whether one can get/set graphical properties on an
648 object.
649
650 See "get_paint_state" in Drawable.
651
652 rgn:: - result of Prima::Region.rect_inside
653 rgn::Inside
654 rgn::Outside - rectangle is fully outside the region
655 rgn::Partially
656
657 rgnop:: - Prima::Region.combine set operations
658 rgnop::Copy
659 rgnop::Intersect
660 rgnop::Union
661 rgnop::Xor
662 rgnop::Diff
663
664 rop:: - raster operation codes
665 See "Raster operations" in Prima::Drawable
666
667 rop::Blackness # = 0
668 rop::NotOr # = !(src | dest)
669 rop::NotSrcAnd # &= !src
670 rop::NotPut # = !src
671 rop::NotDestAnd # = !dest & src
672 rop::Invert # = !dest
673 rop::XorPut # ^= src
674 rop::NotAnd # = !(src & dest)
675 rop::AndPut # &= src
676 rop::NotXor # = !(src ^ dest)
677 rop::NotSrcXor # alias for rop::NotXor
678 rop::NotDestXor # alias for rop::NotXor
679 rop::NoOper # = dest
680 rop::NotSrcOr # |= !src
681 rop::CopyPut # = src
682 rop::NotDestOr # = !dest | src
683 rop::OrPut # |= src
684 rop::Whiteness # = 1
685
686 12 Porter-Duff operators
687
688 rop::Clear # = 0
689 rop::Xor # = src ( 1 - dstA ) + dst ( 1 - srcA )
690 rop::SrcOver # = src + dst (1 - srcA)
691 rop::DstOver # = dst + src (1 - dstA)
692 rop::SrcCopy # = src
693 rop::DstCopy # = dst
694 rop::SrcIn # = src dstA
695 rop::DstIn # = dst srcA
696 rop::SrcOut # = src ( 1 - dstA )
697 rop::DstOut # = dst ( 1 - srcA )
698 rop::SrcAtop # = src dstA + dst ( 1 - srcA )
699 rop::DstAtop # = dst srcA + src ( 1 - dstA )
700
701 rop::PorterDuffMask - masks out all bits but the constants above
702
703 Photoshop operators
704
705 rop::Add
706 rop::Multiply
707 rop::Screen
708 rop::Overlay
709 rop::Darken
710 rop::Lighten
711 rop::ColorDodge
712 rop::ColorBurn
713 rop::HardLight
714 rop::SoftLight
715 rop::Difference
716 rop::Exclusion
717
718 Constant alpha flags
719
720 rop::SrcAlpha
721 rop::SrcAlphaShift
722 rop::DstAlpha
723 rop::DstAlphaShift
724 rop::ConstantAlpha
725
726 Others
727
728 rop::AlphaCopy
729 rop::Premultiply
730 rop::ConstantColor
731
732 sbmp:: - system bitmaps indices
733 See also Prima::StdBitmap.
734
735 sbmp::Logo
736 sbmp::CheckBoxChecked
737 sbmp::CheckBoxCheckedPressed
738 sbmp::CheckBoxUnchecked
739 sbmp::CheckBoxUncheckedPressed
740 sbmp::RadioChecked
741 sbmp::RadioCheckedPressed
742 sbmp::RadioUnchecked
743 sbmp::RadioUncheckedPressed
744 sbmp::Warning
745 sbmp::Information
746 sbmp::Question
747 sbmp::OutlineCollapse
748 sbmp::OutlineExpand
749 sbmp::Error
750 sbmp::SysMenu
751 sbmp::SysMenuPressed
752 sbmp::Max
753 sbmp::MaxPressed
754 sbmp::Min
755 sbmp::MinPressed
756 sbmp::Restore
757 sbmp::RestorePressed
758 sbmp::Close
759 sbmp::ClosePressed
760 sbmp::Hide
761 sbmp::HidePressed
762 sbmp::DriveUnknown
763 sbmp::DriveFloppy
764 sbmp::DriveHDD
765 sbmp::DriveNetwork
766 sbmp::DriveCDROM
767 sbmp::DriveMemory
768 sbmp::GlyphOK
769 sbmp::GlyphCancel
770 sbmp::SFolderOpened
771 sbmp::SFolderClosed
772 sbmp::Last
773
774 scr:: - scroll exposure results
775 "Widget::scroll" returns one of these.
776
777 scr::Error - failure
778 scr::NoExpose - call resulted in no new exposed areas
779 scr::Expose - call resulted in new exposed areas, expect a repaint
780
781 sv:: - system value indices
782 See also "get_system_value" in Prima::Application
783
784 sv::YMenu - height of menu bar in top-level windows
785 sv::YTitleBar - height of title bar in top-level windows
786 sv::XIcon - width and height of main icon dimensions,
787 sv::YIcon acceptable by the system
788 sv::XSmallIcon - width and height of alternate icon dimensions,
789 sv::YSmallIcon acceptable by the system
790 sv::XPointer - width and height of mouse pointer icon
791 sv::YPointer acceptable by the system
792 sv::XScrollbar - width of the default vertical scrollbar
793 sv::YScrollbar - height of the default horizontal scrollbar
794 sv::XCursor - width of the system cursor
795 sv::AutoScrollFirst - the initial and the repetitive
796 sv::AutoScrollNext scroll timeouts
797 sv::InsertMode - the system insert mode
798 sv::XbsNone - widths and heights of the top-level window
799 sv::YbsNone decorations, correspondingly, with borderStyle
800 sv::XbsSizeable bs::None, bs::Sizeable, bs::Single, and
801 sv::YbsSizeable bs::Dialog.
802 sv::XbsSingle
803 sv::YbsSingle
804 sv::XbsDialog
805 sv::YbsDialog
806 sv::MousePresent - 1 if the mouse is present, 0 otherwise
807 sv::MouseButtons - number of the mouse buttons
808 sv::WheelPresent - 1 if the mouse wheel is present, 0 otherwise
809 sv::SubmenuDelay - timeout ( in ms ) before a sub-menu shows on
810 an implicit selection
811 sv::FullDrag - 1 if the top-level windows are dragged dynamically,
812 0 - with marquee mode
813 sv::DblClickDelay - mouse double-click timeout in milliseconds
814 sv::ShapeExtension - 1 if Prima::Widget::shape functionality is supported,
815 0 otherwise
816 sv::ColorPointer - 1 if system accepts color pointer icons.
817 sv::CanUTF8_Input - 1 if system can generate key codes in unicode
818 sv::CanUTF8_Output - 1 if system can output utf8 text
819 sv::CompositeDisplay - 1 if system uses double-buffering and alpha composition for the desktop,
820 0 if it doesn't, -1 if unknown
821 sv::LayeredWidgets - 1 if system supports layering
822 sv::FixedPointerSize - 0 if system doesn't support arbitrary sized pointers and will resize custom icons to the system size
823 sv::MenuCheckSize - width and height of default menu check icon
824 sv::FriBidi - 1 if Prima is compiled with libfribidi and full bidi unicode support is available
825 sv::Antialias - 1 if system supports antialiasing and alpha layer for primitives
826 sv::LibThai - 1 if Prima is compiled with libthai
827
828 ta:: - alignment constants
829 Used in: Prima::InputLine, Prima::ImageViewer, Prima::Label.
830
831 ta::Left
832 ta::Right
833 ta::Center
834
835 ta::Top
836 ta::Bottom
837 ta::Middle
838
839 to:: - text output constants
840 These constants are used in various text and glyph related functions,
841 and form a somewhat vague group of bit values that may or may not be
842 used together depending on the function
843
844 to::Plain - default value, 0
845 to::AddOverhangs - used in C<get_text_width> and C<get_text_shape_width>
846 to request text overhangs to be included in the returned
847 text width
848 to::Glyphs - used in C<get_font_abc> and C<get_font_def> to select extension of
849 glyph indexes rather than text codepoints
850 to::Unicode - used in C<get_font_abc> and C<get_font_def> to select extension of
851 unicode rather than ascii text codepoints
852 to::RTL - used in C<get_text_shape_width> to request RTL bidi direction.
853 Also used in C<Prima::Drawable::Glyphs::indexes> values to mark
854 RTL characters.
855
856 tw:: - text wrapping constants
857 See "text_wrap" in Prima::Drawable
858
859 tw::CalcMnemonic - calculates tilde underline position
860 tw::CollapseTilde - removes escaping tilde from text
861 tw::CalcTabs - wraps text with respect to tab expansion
862 tw::ExpandTabs - expands tab characters
863 tw::BreakSingle - determines if text is broken to single
864 characters when text cannot be fit
865 tw::NewLineBreak - breaks line on newline characters
866 tw::SpaceBreak - breaks line on space or tab characters
867 tw::ReturnChunks - returns wrapped text chunks
868 tw::ReturnLines - returns positions and lengths of wrapped
869 text chunks
870 tw::WordBreak - defines if text break by width goes by the
871 characters or by the words
872 tw::ReturnFirstLineLength - returns length of the first wrapped line
873 tw::Default - tw::NewLineBreak | tw::CalcTabs | tw::ExpandTabs |
874 tw::ReturnLines | tw::WordBreak
875
876 wc:: - widget classes
877 See "widgetClass" in Prima::Widget
878
879 wc::Undef
880 wc::Button
881 wc::CheckBox
882 wc::Combo
883 wc::Dialog
884 wc::Edit
885 wc::InputLine
886 wc::Label
887 wc::ListBox
888 wc::Menu
889 wc::Popup
890 wc::Radio
891 wc::ScrollBar
892 wc::Slider
893 wc::Widget, wc::Custom
894 wc::Window
895 wc::Application
896
897 ws:: - window states
898 See "windowState" in Prima::Window
899
900 ws::Normal
901 ws::Minimized
902 ws::Maximized
903
905 Dmitry Karasik, <dmitry@karasik.eu.org>.
906
908 Prima, Prima::Classes
909
910
911
912perl v5.36.0 2022-07-22 Prima::Const(3)