NAME
Prima::Const - predefined constants
DESCRIPTION
"Prima::Const" and Prima::Classes is a minimal set of perl modules needed for the toolkit. Since the module provides bindings for the core constants, it is required to be included in every Prima-related module and program.
The constants are assembled under the top-level package names, with no "Prima::" prefix. This violates the perl guidelines about package naming, however, it was considered way too inconvenient to prefix every constant with "Prima::" string.
This document provides description of all core-coded constants. The constants are also described in the articles together with the corresponding methods and properties. For example, "nt" constants are also described in "Flow" in Prima::Object article.
API
am:: - Prima::Icon auto masking
See also "autoMasking" in Prima::Image
am::None - no mask update performedam::MaskColor - mask update based on Prima::Icon::maskColor propertyam::MaskIndex - mask update based on Prima::Icon::maskIndex propertyam::Auto - mask update based on corner pixel values
apc:: - OS type
See "get_system_info" in Prima::Application
apc::Os2apc::Win32apc::Unix
bi:: - border icons
See "borderIcons" in Prima::Window
bi::SystemMenu - system menu button and/or close button( usually with icon ) is shownbi::Minimize - minimize buttonbi::Maximize - maximize ( and eventual restore )bi::TitleBar - window titlebi::All - all of the above
bs:: - border styles
See "borderStyle" in Prima::Window
bs::None - no borderbs::Single - thin borderbs::Dialog - thick borderbs::Sizeable - thick border with interactive resize capabilities
ci:: - color indices
See "colorIndex" in Prima::Widget
ci::NormalText or ci::Foreci::Normal or ci::Backci::HiliteTextci::Hiliteci::DisabledTextci::Disabledci::Light3DColorci::Dark3DColorci::MaxId
cl:: - colors
See "colorIndex" in Prima::Widget
- Direct color constants
-
cl::Blackcl::Bluecl::Greencl::Cyancl::Redcl::Magentacl::Browncl::LightGraycl::DarkGraycl::LightBluecl::LightGreencl::LightCyancl::LightRedcl::LightMagentacl::Yellowcl::Whitecl::Gray
- Indirect color constants
-
cl::NormalText, cl::Forecl::Normal, cl::Backcl::HiliteTextcl::Hilitecl::DisabledTextcl::Disabledcl::Light3DColorcl::Dark3DColorcl::MaxSysColor
- Special constants
-
See "Colors" in Prima::gp_problems
cl::Set - logical all-1 colorcl::Clear - logical all-0 colorcl::Invalid - invalid color valuecl::SysFlag - indirect color constant bit setcl::SysMask - indirect color constant bit clear mask
cm:: - commands
- Keyboard and mouse commands
-
See "key_down" in Prima::Widget, "mouse_down" in Prima::Widget
cm::KeyDowncm::KeyUpcm::MouseDowncm::MouseUpcm::MouseClickcm::MouseWheelcm::MouseMovecm::MouseEntercm::MouseLeave
- Internal commands ( used in core only or not used at all )
-
cm::Closecm::Createcm::Destroycm::Hidecm::Showcm::ReceiveFocuscm::ReleaseFocuscm::Paintcm::Repaintcm::Sizecm::Movecm::ColorChangedcm::ZOrderChangedcm::Enablecm::Disablecm::Activatecm::Deactivatecm::FontChangedcm::WindowStatecm::Timercm::Clickcm::CalcBoundscm::Postcm::Popupcm::Executecm::Setupcm::Hintcm::DragDropcm::DragOvercm::EndDragcm::Menucm::EndModalcm::MenuCmdcm::TranslateAccelcm::DelegateKey
cr:: - pointer cursor resources
See "pointerType" in Prima::Widget
cr::Default same pointer type as owner'scr::Arrow arrow pointercr::Text text entry cursor-like pointercr::Wait hourglasscr::Size general size action pointercr::Move general move action pointercr::SizeWest, cr::SizeW right-move action pointercr::SizeEast, cr::SizeE left-move action pointercr::SizeWE general horizontal-move action pointercr::SizeNorth, cr::SizeN up-move action pointercr::SizeSouth, cr::SizeS down-move action pointercr::SizeNS general vertical-move action pointercr::SizeNW up-right move action pointercr::SizeSE down-left move action pointercr::SizeNE up-left move action pointercr::SizeSW down-right move action pointercr::Invalid invalid action pointercr::User user-defined icon
dt:: - drive types
See "query_drive_type" in Prima::Utils
dt::Nonedt::Unknowndt::Floppydt::HDDdt::Networkdt::CDROMdt::Memory
dt:: - Prima::Drawable::draw_text constants
dt::Left - text is aligned to the left boundarydt::Right - text is aligned to the right boundarydt::Center - text is aligned horizontally in centerdt::Top - text is aligned to the upper boundarydt::Bottom - text is aligned to the lower boundarydt::VCenter - text is aligned vertically in centerdt::DrawMnemonic - tilde-escapement and underlining is useddt::DrawSingleChar - sets tw::BreakSingle option toPrima::Drawable::text_wrap calldt::NewLineBreak - sets tw::NewLineBreak option toPrima::Drawable::text_wrap calldt::SpaceBreak - sets tw::SpaceBreak option toPrima::Drawable::text_wrap calldt::WordBreak - sets tw::WordBreak option toPrima::Drawable::text_wrap calldt::ExpandTabs - performs tab character ( \t ) expansiondt::DrawPartial - draws the last line, if it is visible partiallydt::UseExternalLeading- text lines positioned vertically with respect tothe font external leadingdt::UseClip - assign ::clipRect property to the boundary rectangledt::QueryLinesDrawn - calculates and returns number of lines drawn( contrary to dt::QueryHeight )dt::QueryHeight - if set, calculates and returns vertical extensionof the lines drawndt::NoWordWrap - performs no word wrapping by the width of the boundariesdt::WordWrap - performs word wrapping by the width of the boundariesdt::Default - dt::NewLineBreak|dt::WordBreak|dt::ExpandTabs|dt::UseExternalLeading
fdo:: - find / replace dialog options
See Prima::EditDialog
fdo::MatchCasefdo::WordsOnlyfdo::RegularExpressionfdo::BackwardSearchfdo::ReplacePrompt
fds:: - find / replace dialog scope type
See Prima::EditDialog
fds::Cursorfds::Topfds::Bottom
fe:: - file events constants
See Prima::File
fe::Readfe::Writefe::Exception
fp:: - standard fill pattern indices
See "fillPattern" in Prima::Drawable
fp::Emptyfp::Solidfp::Linefp::LtSlashfp::Slashfp::BkSlashfp::LtBkSlashfp::Hatchfp::XHatchfp::Interleavefp::WideDotfp::CloseDotfp::SimpleDotsfp::Borlandfp::Parquet
fp:: - font pitches
See "pitch" in Prima::Drawable
fp::Defaultfp::Fixedfp::Variable
fr:: - fetch resource constants
See "fetch_resource" in Prima::Widget
fr::Colorfr::Fontfs::String
fs:: - font styles
See "style" in Prima::Drawable
fs::Normalfs::Boldfs::Thinfs::Italicfs::Underlinedfs::StruckOutfs::Outline
fw:: - font weights
See "weight" in Prima::Drawable
fw::UltraLightfw::ExtraLightfw::Lightfw::SemiLightfw::Mediumfw::SemiBoldfw::Boldfw::ExtraBoldfw::UltraBold
gm:: - grow modes
See "growMode" in Prima::Widget
- Basic constants
-
gm::GrowLoX widget's left side is kept in constantdistance from owner's right sidegm::GrowLoY widget's bottom side is kept in constantdistance from owner's top sidegm::GrowHiX widget's right side is kept in constantdistance from owner's right sidegm::GrowHiY widget's top side is kept in constantdistance from owner's top sidegm::XCenter widget is kept in center on its owner'shorizontal axisgm::YCenter widget is kept in center on its owner'svertical axisgm::DontCare widgets origin is maintained constant relativeto the screen
- Derived or aliased constants
-
gm::GrowAll gm::GrowLoX|gm::GrowLoY|gm::GrowHiX|gm::GrowHiYgm::Center gm::XCenter|gm::YCentergm::Client gm::GrowHiX|gm::GrowHiYgm::Right gm::GrowLoX|gm::GrowHiYgm::Left gm::GrowHiYgm::Floor gm::GrowHiX
gui:: - GUI types
See "get_system_info" in Prima::Application
gui::Defaultgui::PMgui::Windowsgui::XLibgui::GTK2
le:: - line end styles
See "lineEnd" in Prima::Drawable
le::Flatle::Squarele::Round
lj:: - line join styles
See "lineJoin" in Prima::Drawable
lj::Roundlj::Bevellj::Miter
lp:: - predefined line pattern styles
See "linePattern" in Prima::Drawable
lp::Null # "" /* */lp::Solid # "\1" /* ___________ */lp::Dash # "\x9\3" /* __ __ __ __ */lp::LongDash # "\x16\6" /* _____ _____ */lp::ShortDash # "\3\3" /* _ _ _ _ _ _ */lp::Dot # "\1\3" /* . . . . . . */lp::DotDot # "\1\1" /* ............ */lp::DashDot # "\x9\6\1\3" /* _._._._._._ */lp::DashDotDot # "\x9\3\1\3\1\3" /* _.._.._.._.. */
im:: - image types
See "type" in Prima::Image.
- Bit depth constants
-
im::bpp1im::bpp4im::bpp8im::bpp16im::bpp24im::bpp32im::bpp64im::bpp128
- Pixel format constants
-
im::Colorim::GrayScaleim::RealNumberim::ComplexNumberim::TrigComplexNumber
- Mnemonic image types
-
im::Mono - im::bpp1im::BW - im::bpp1 | im::GrayScaleim::16 - im::bpp4im::Nibble - im::bpp4im::256 - im::bpp8im::RGB - im::bpp24im::Triple - im::bpp24im::Byte - gray 8-bit unsigned integerim::Short - gray 16-bit unsigned integerim::Long - gray 32-bit unsigned integerim::Float - floatim::Double - doubleim::Complex - dual floatim::DComplex - dual doubleim::TrigComplex - dual floatim::TrigDComplex - dual double
- Extra formats
-
im::fmtBGRim::fmtRGBIim::fmtIRGBim::fmtBGRIim::fmtIBGR
- Masks
-
im::BPP - bit depth constantsim::Category - category constantsim::FMT - extra format constants
ict:: - image conversion types
See "conversion" in Prima::Image.
ict::None - no ditheringict::Ordered - 8x8 ordered halftone ditheringict::ErrorDiffusion - error diffusion dithering with static paletteict::Optimized - error diffusion dithering with optimized palette
is:: - image statistics indices
See "stats" in Prima::Image.
is::RangeLo - minimum pixel valueis::RangeHi - maximum pixel valueis::Mean - mean valueis::Variance - varianceis::StdDev - standard deviationis::Sum - sum of pixel valuesis::Sum2 - sum of squares of pixel values
kb:: - keyboard virtual codes
See also "KeyDown" in Prima::Widget.
- Modificator keys
-
kb::ShiftL kb::ShiftR kb::CtrlL kb::CtrlRkb::AltL kb::AltR kb::MetaL kb::MetaRkb::SuperL kb::SuperR kb::HyperL kb::HyperRkb::CapsLock kb::NumLock kb::ScrollLock kb::ShiftLock
- Keys with character code defined
-
kb::Backspace kb::Tab kb::Linefeed kb::Enterkb::Return kb::Escape kb::Esc kb::Space
- Function keys
-
kb::F1 .. kb::F30kb::L1 .. kb::L10kb::R1 .. kb::R10
- Other
-
kb::Clear kb::Pause kb::SysRq kb::SysReqkb::Delete kb::Home kb::Left kb::Upkb::Right kb::Down kb::PgUp kb::Priorkb::PageUp kb::PgDn kb::Next kb::PageDownkb::End kb::Begin kb::Select kb::Printkb::PrintScr kb::Execute kb::Insert kb::Undokb::Redo kb::Menu kb::Find kb::Cancelkb::Help kb::Break kb::BackTab
- Masking constants
-
kb::CharMask - character codeskb::CodeMask - virtual key codes ( all other kb:: values )kb::ModMask - km:: values
km:: - keyboard modifiers
See also "KeyDown" in Prima::Widget.
km::Shiftkm::Ctrlkm::Altkm::KeyPadkm::DeadKey
mt:: - modality types
See "get_modal" in Prima::Window, "get_modal_window" in Prima::Window
mt::Nonemt::Sharedmt::Exclusive
nt:: - notification types
Used in "Prima::Component::notification_types" to describe event flow.
See also "Flow" in Prima::Object.
- Starting point constants
-
nt::PrivateFirstnt::CustomFirst
- Direction constants
-
nt::FluxReversent::FluxNormal
- Complexity constants
-
nt::Singlent::Multiplent::Event
- Composite constants
-
nt::Default ( PrivateFirst | Multiple | FluxReverse)nt::Property ( PrivateFirst | Single | FluxNormal )nt::Request ( PrivateFirst | Event | FluxNormal )nt::Notification ( CustomFirst | Multiple | FluxReverse )nt::Action ( CustomFirst | Single | FluxReverse )nt::Command ( CustomFirst | Event | FluxReverse )
mb:: - mouse buttons
See also "MouseDown" in Prima::Widget.
mb::b1 or mb::Leftmb::b2 or mb::Middlemb::b3 or mb::Rightmb::b4mb::b5mb::b6mb::b7mb::b8
mb:: - message box constants
- Message box and modal result button commands
-
See also "modalResult" in Prima::Window, "modalResult" in Prima::Button.
mb::OK, mb::Okmb::Cancelmb::Yesmb::Nomb::Abortmb::Retrymb::Ignoremb::Help
- Message box composite ( multi-button ) constants
-
mb::OKCancel, mb::OkCancelmb::YesNomb::YesNoCancel
- Message box icon and bell constants
-
mb::Errormb::Warningmb::Informationmb::Question
rop:: - raster operation codes
See "Raster operations" in Prima::Drawable
rop::Blackness # = 0rop::NotOr # = !(src | dest)rop::NotSrcAnd # &= !srcrop::NotPut # = !srcrop::NotDestAnd # = !dest & srcrop::Invert # = !destrop::XorPut # ^= srcrop::NotAnd # = !(src & dest)rop::AndPut # &= srcrop::NotXor # = !(src ^ dest)rop::NotSrcXor # alias for rop::NotXorrop::NotDestXor # alias for rop::NotXorrop::NoOper # = destrop::NotSrcOr # |= !srcrop::CopyPut # = srcrop::NotDestOr # = !dest | srcrop::OrPut # |= srcrop::Whiteness # = 1
sbmp:: - system bitmaps indices
See also Prima::StdBitmap.
sbmp::Logosbmp::CheckBoxCheckedsbmp::CheckBoxCheckedPressedsbmp::CheckBoxUncheckedsbmp::CheckBoxUncheckedPressedsbmp::RadioCheckedsbmp::RadioCheckedPressedsbmp::RadioUncheckedsbmp::RadioUncheckedPressedsbmp::Warningsbmp::Informationsbmp::Questionsbmp::OutlineCollapssbmp::OutlineExpandsbmp::Errorsbmp::SysMenusbmp::SysMenuPressedsbmp::Maxsbmp::MaxPressedsbmp::Minsbmp::MinPressedsbmp::Restoresbmp::RestorePressedsbmp::Closesbmp::ClosePressedsbmp::Hidesbmp::HidePressedsbmp::DriveUnknownsbmp::DriveFloppysbmp::DriveHDDsbmp::DriveNetworksbmp::DriveCDROMsbmp::DriveMemorysbmp::GlyphOKsbmp::GlyphCancelsbmp::SFolderOpenedsbmp::SFolderClosedsbmp::Last
sv:: - system value indices
See also "get_system_value" in Prima::Application
sv::YMenu - height of menu bar in top-level windowssv::YTitleBar - height of title bar in top-level windowssv::XIcon - width and height of main icon dimensions,sv::YIcon acceptable by the systemsv::XSmallIcon - width and height of alternate icon dimensions,sv::YSmallIcon acceptable by the systemsv::XPointer - width and height of mouse pointer iconsv::YPointer acceptable by the systemsv::XScrollbar - width of the default vertical scrollbarsv::YScrollbar - height of the default horizontal scrollbarsv::XCursor - width of the system cursorsv::AutoScrollFirst - the initial and the repetitivesv::AutoScrollNext scroll timeoutssv::InsertMode - the system insert modesv::XbsNone - widths and heights of the top-level windowsv::YbsNone decorations, correspondingly, with borderStylesv::XbsSizeable bs::None, bs::Sizeable, bs::Single, andsv::YbsSizeable bs::Dialog.sv::XbsSinglesv::YbsSinglesv::XbsDialogsv::YbsDialogsv::MousePresent - 1 if the mouse is present, 0 otherwisesv::MouseButtons - number of the mouse buttonssv::WheelPresent - 1 if the mouse wheel is present, 0 otherwisesv::SubmenuDelay - timeout ( in ms ) before a sub-menu shows onan implicit selectionsv::FullDrag - 1 if the top-level windows are dragged dynamically,0 - with marquee modesv::DblClickDelay - mouse double-click timeout in millisecondssv::ShapeExtension - 1 if Prima::Widget::shape functionality is supported,0 otherwisesv::ColorPointer - 1 if system accepts color pointer icons.sv::CanUTF8_Input - 1 if system can generate key codes in unicodesv::CanUTF8_Output - 1 if system can output utf8 text
ta:: - alignment constants
Used in: Prima::InputLine, Prima::ImageViewer, Prima::Label, Prima::Terminals.
ta::Leftta::Rightta::Centerta::Topta::Bottomta::Middle
tw:: - text wrapping constants
See "text_wrap" in Prima::Drawable
tw::CalcMnemonic - calculates tilde underline positiontw::CollapseTilde - removes escaping tilde from texttw::CalcTabs - wraps text with respect to tab expansiontw::ExpandTabs - expands tab characterstw::BreakSingle - determines if text is broken to singlecharacters when text cannot be fittw::NewLineBreak - breaks line on newline characterstw::SpaceBreak - breaks line on space or tab characterstw::ReturnChunks - returns wrapped text chunkstw::ReturnLines - returns positions and lengths of wrappedtext chunkstw::WordBreak - defines if text break by width goes by thecharacters or by the wordstw::ReturnFirstLineLength - returns length of the first wrapped linetw::Default - tw::NewLineBreak | tw::CalcTabs | tw::ExpandTabs |tw::ReturnLines | tw::WordBreak
wc:: - widget classes
See "widgetClass" in Prima::Widget
wc::Undefwc::Buttonwc::CheckBoxwc::Combowc::Dialogwc::Editwc::InputLinewc::Labelwc::ListBoxwc::Menuwc::Popupwc::Radiowc::ScrollBarwc::Sliderwc::Widget, wc::Customwc::Windowwc::Application
ws:: - window states
See "windowState" in Prima::Window
ws::Normalws::Minimizedws::Maximized
AUTHOR
Dmitry Karasik, <[email protected]>.
SEE ALSO
Prima, Prima::Classes