Prima::Const(3)
π Prima::Const π
okay so this is the Prima::Const(3) page from the User Contributed Perl Documentation, and it's literally the master list of predefined constants. group-chat bestie energy: if you're touching Prima, you're gonna see these cuties everywhere π
πΈ NAME πΈ
Prima::Const β predefined constants. periodt.
π¦ DESCRIPTION π¦
okay so Prima::Const and Prima::Classes are for a minimal set of perl modules needed for the toolkit. and because this module provides bindings for the core constants, it is required to be included in every Prima-related module and program β like, not optional, bestie π
the constants are collected under the top-level package names, with no Prima:: prefix. yes, this violates the perl guidelines about package naming, however, it was considered way too inconvenient to prefix every constant with a Prima:: string. iconic decision, honestly.
this document describes all constants defined in the core. the constants are also described in the articles together with the corresponding methods and properties. for example, the nt constants are also described in the Flow in Prima::Object article β iykyk β¨
β¨ API β¨
π am:: β Prima::Icon auto masking π
also peep 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::Win32apc::Unix
π«Ά bi:: β border icons π«Ά
see borderIcons in Prima::Window.
bi::SystemMenuβ the system menu button and/or close button ( usually with the icon )bi::Minimizeβ minimize buttonbi::Maximizeβ maximize/restore buttonbi::TitleBarβ the 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β border that can be resized
π ci:: β color indices π
see colorIndex in Prima::Widget.
ci::NormalTextorci::Foreci::Normalorci::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
peep 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
color functions
from_rgb R8,G8,B8 -> RGB24to_rgb RGB24 -> R8,G8,B8from_bgr B8,G8,R8 -> RGB24to_bgr RGB24 -> B8,G8,R8to_gray_byte RGB24 -> GRAY8to_gray_rgb RGB24 -> GRAY24from_gray_byte GRAY8 -> GRAY24premultiply RGB24,A8 -> RGB24distance RGB24,RGB24 -> distance between colorsblend RGB24,RGB24,AMOUNT_FROM_0_TO_1 - RGB24
π₯ 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::DragNoneβ pointer for an invalid dragging targetcr::DragCopyβ pointer to indicate that adnd::Copyaction can be acceptedcr::DragMoveβ pointer to indicate that adnd::Moveaction can be acceptedcr::DragLinkβ pointer to indicate that adnd::Linkaction can be acceptedcr::Crosshairβ the crosshair pointercr::UpArrowβ arrow directed upwardscr::QuestionArrowβ question mark pointercr::Userβ user-defined icon
π§ dbt:: β device bitmap types π§
dbt::Bitmapβ monochrome 1-bit bitmapdbt::Pixmapβ bitmap compatible with display formatdbt::Layeredβ bitmap compatible with display format with alpha channel
π dnd:: β drag and drop action constants and functions π
dnd::Noneβ no DND action was selected or performeddnd::Copyβ copy actiondnd::Moveβ move actiondnd::Linkβ link actiondnd::Maskβ combination of all valid actions
is_one_action ACTIONS
returns true if ACTIONS is not a combination of dnd:: constants.
pointer ACTION
returns a cr:: constant corresponding to the ACTION.
to_one_action ACTIONS
selects the best single action from a combination of allowed ACTIONS.
keymod ACTION
returns a km:: keyboard modifier constant that would initiate ACTION if the user presses it during a DND session. returns 0 for dnd::Copy which is the standard action to be performed without any modifiers.
β 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 the centerdt::Topβ text is aligned to the upper boundarydt::Bottomβ text is aligned to the lower boundarydt::VCenterβ text is aligned vertically in the centerdt::DrawMnemonicβ tilde-escapement and underlining is useddt::DrawSingleCharβ setstw::BreakSingleoption to Prima::Drawable::text_wrap calldt::NewLineBreakβ setstw::NewLineBreakoption to Prima::Drawable::text_wrap calldt::SpaceBreakβ setstw::SpaceBreakoption to Prima::Drawable::text_wrap calldt::WordBreakβ setstw::WordBreakoption to Prima::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 to the font external leadingdt::UseClipβ assign::clipRectproperty to the boundary rectangledt::QueryLinesDrawnβ calculates and returns the number of lines drawn ( contrary todt::QueryHeight)dt::QueryHeightβ if set, calculates and returns vertical extension of 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::FindDialog.
fdo::MatchCasefdo::WordsOnlyfdo::RegularExpressionfdo::BackwardSearchfdo::ReplacePrompt
πΈ fds:: β find / replace dialog scope type πΈ
see Prima::FindDialog.
fds::Cursorfds::Topfds::Bottom
π¦ fe:: β file events constants π¦
see Prima::File.
β¦aaaaaand finishing out the fe:: squad β the last three, no cap:
fe::Read
fe::Write
fe::Exception
fm:: β fill modes π¨
Peep "fillMode" in Prima::Drawable for the whole story.
fp::Alternate
fp::Winding
fp::Overlay
fp:: β standard fill pattern indices π©·
Check out "fillPattern" in Prima::Drawable, bestie.
fp::Empty
fp::Solid
fp::Line
fp::LtSlash
fp::Slash
fp::BkSlash
fp::LtBkSlash
fp::Hatch
fp::XHatch
fp::Interleave
fp::WideDot
fp::CloseDot
fp::SimpleDots
fp::Borland
fp::Parquet
So these are the builtin pattern indexes, and then there's a whole lil toolbox of helper functions that live on this same page. (And yes, fp:: shows up twice in this manpage meaning two completely different things β fill patterns and font pitches. Iconic of it, honestly. Keep your eyes peeled. π)
builtin $FILL_PATTERNβ you hand it whatever"Drawable::fillPattern"gave you (that's an 8x8 array of integers, btw), and it checks if that array matches one of the builtin"fp::"constants. Match found? It returns one. No match? You getundef. π«is_empty $FILL_PATTERNβ same deal, you pass in the 8x8 array from"Drawable::fillPattern", and it checks whether the whole thing is all zeros.is_solid $FILL_PATTERNβ again with the"Drawable::fillPattern"8x8 array of integers; this one checks if every single value is ones (like,0xff).patternsβ returns you a set of string-encoded fill patterns that line up with the builtin"fp::"constants. β οΈ But lowkey important: these are not suitable for use in"Drawable::fillPatterns". Like, do not do that. π ββοΈ
fp:: β font pitches βοΈ
See "pitch" in Prima::Drawable, bestie.
fp::Default
fp::Fixed
fp::Variable
fr:: β fetch resource constants π
See "fetch_resource" in Prima::Widget.
fr::Color
fr::Font
fs::String
fs:: β font styles π
See "style" in Prima::Drawable.
fs::Normal
fs::Bold
fs::Thin
fs::Italic
fs::Underlined
fs::StruckOut
fs::Outline
fw:: β font weights βοΈ
See "weight" in Prima::Drawable.
fw::UltraLight
fw::ExtraLight
fw::Light
fw::SemiLight
fw::Medium
fw::SemiBold
fw::Bold
fw::ExtraBold
fw::UltraBold
ggo:: β glyph outline commands ποΈ
ggo::Move
ggo::Line
ggo::Conic
ggo::Cubic
Also peep "render_glyph" in Prima::Drawable.
gm:: β grow modes π±
See "growMode" in Prima::Widget.
Basic constants
gm::GrowLoXβ the widget's left side keeps a constant distance from the owner's right side.gm::GrowLoYβ the widget's bottom side keeps a constant distance from the owner's top side.gm::GrowHiXβ the widget's right side keeps a constant distance from the owner's right side.gm::GrowHiYβ the widget's top side keeps a constant distance from the owner's top side.gm::XCenterβ the widget stays centered on its owner's horizontal axis.gm::YCenterβ the widget stays centered on its owner's vertical axis.gm::DontCareβ the widget's origin stays constant relative to the screen.
Derived or aliased constants
gm::GrowAll gm::GrowLoX|gm::GrowLoY|gm::GrowHiX|gm::GrowHiY
gm::Center gm::XCenter|gm::YCenter
gm::Client gm::GrowHiX|gm::GrowHiY
gm::Right gm::GrowLoX|gm::GrowHiY
gm::Left gm::GrowHiY
gm::Floor gm::GrowHiX
gui:: β GUI types π₯οΈ
See "get_system_info" in Prima::Application.
gui::Default
gui::Windows
gui::XLib
gui::GTK
le:: β line end styles π
See "lineEnd" in Prima::Drawable.
le::Flat
le::Square
le::Round
le::Arrow
le::Cusp
le::InvCusp
le::Knob
le::Rect
le::RoundRect
le::Spearhead
le::Tail
Functions: π§
le::transform($matrix)
le::scale($scalex, [$scaley = $scalex])
lei:: β line end indexes π’
lei::LineTail
lei::LineHead
lei::ArrowTail
lei::ArrowHead
lei::Max
lei::Only
See "lineEndIndex" in Prima::Drawable.
lj:: β line join styles πͺ’
See "lineJoin" in Prima::Drawable.
lj::Round
lj::Bevel
lj::Miter
lp:: β predefined line pattern styles π§΅
See "linePattern" in Prima::Drawable. And yes, these comments are literally part of the vibes β keeping them exactly as they are because they're honestly the clearest little ASCII art in the whole codebase:
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::bpp1
im::bpp4
im::bpp8
im::bpp16
im::bpp24
im::bpp32
im::bpp64
im::bpp128
Pixel format constants
im::Color
im::GrayScale
im::RealNumber
im::ComplexNumber
im::TrigComplexNumber
im::SignedInt
Mnemonic image types
These ones are little shorthands that expand into the real thing β the - here means "is defined as", so don't go writing it in code:
im::Mono - im::bpp1
im::BW - im::bpp1 | im::GrayScale
im::16 - im::bpp4
im::Nibble - im::bpp4
im::256 - im::bpp8
im::RGB - im::bpp24
im::Triple - im::bpp24
im::Byte - gray 8-bit unsigned integer
im::Short - gray 16-bit unsigned integer
im::Long - gray 32-bit unsigned integer
im::Float - float
im::Double - double
im::Complex - dual float
im::DComplex - dual double
im::TrigComplex - dual float
im::TrigDComplex - dual double
Extra formats
im::fmtBGR
im::fmtRGBI
im::fmtIRGB
im::fmtBGRI
im::fmtIBGR
Masks
im::BPP - bit depth constants
im::Category - category constants
im::FMT - extra format constants
ict:: β image conversion types π
See "conversion" in Prima::Image.
ict::Noneβ no dithering, with a static palette or a palette optimized by the source palette.ict::Posterizationβ no dithering, with a palette optimized by the source pixels.ict::Orderedβ 8x8 ordered halftone dithering.ict::ErrorDiffusionβ error diffusion dithering with a static palette.ict::Optimizedβ error diffusion dithering with an optimized palette.
Their values are combinations of "ictp::" and "ictd::" constants (both coming up right below, don't worry π).
ictd:: β image conversion types, dithering π«οΈ
These constants pick the color correction (dithering) algorithm when you're downsampling an image:
ictd::Noneβ no dithering, pure colors only.ictd::Orderedβ 8x8 ordered halftone dithering (checkerboard).ictd::ErrorDiffusionβ error diffusion dithering (2/5 down, 2/5 right, 1/5 down/right).
ictp:: β image conversion types, palette optimization ποΈ
These constants pick how the target palette gets made up when you're downsampling an image:
ictp::Unoptimizedβ use whatever color mapping method is fastest; image quality can be severely compromised. π«£ictp::Cubicβ use a static cubic palette; a bit slower, guaranteed mediocre quality.ictp::Optimizedβ collect the available colors in the image; slowest, gives the best results. β¨
Not all combinations of ictp and ictd constants are valid. Fr fr, check before you commit.
is:: β image statistics indices π
See "stats" in Prima::Image.
is::RangeLo - minimum pixel value
is::RangeHi - maximum pixel value
is::Mean - mean value
is::Variance - variance
is::StdDev - standard deviation
is::Sum - the sum of pixel values
is::Sum2 - the sum of squares of pixel values
ist:: β image scaling types π
ist::None - image stripped or padded with zeros
ist::Box - the image will be scaled using a simple box transform
ist::BoxX - columns behave as ist::None, rows as ist::Box
ist::BoxY - rows behave as in ist::None, columns as ist::Box
ist::AND - shrunken pixels AND-end together (black-on-white images)
ist::OR - shrunken pixels OR-end together (white-on-black images)
ist::Triangle - bilinear interpolation
ist::Quadratic - 2nd order (quadratic) B-Spline approximation of the Gaussian
ist::Sinc - sine function
ist::Hermite - B-Spline interpolation
ist::Cubic - 3rd order (cubic) B-Spline approximation of the Gaussian
ist::Gaussian - Gaussian transform with gamma=0.5
See "scaling" in Prima::Image.
kb:: β keyboard virtual codes β¨οΈ
Also go look at "KeyDown" in Prima::Widget.
Modificator keys
kb::ShiftL kb::ShiftR kb::CtrlL kb::CtrlR
kb::AltL kb::AltR kb::MetaL kb::MetaR
kb::SuperL kb::SuperR kb::HyperL kb::HyperR
kb::CapsLock kb::NumLock kb::ScrollLock kb::ShiftLock
Keys with character code defined
kb::Backspace kb::Tab kb::Linefeed kb::Enter
kb::Return kb::Escape kb::Esc kb::Space
Function keys
kb::F1 .. kb::F30
kb::L1 .. kb::L10
kb::R1 .. kb::R10
Other
kb::Clear kb::Pause kb::SysRq kb::SysReq
kb::Delete kb::Home kb::Left kb::Up
kb::Right kb::Down kb::PgUp kb::Prior
kb::PageUp kb::PgDn kb::Next kb::PageDown
kb::End kb::Begin kb::Select kb::Print
kb::PrintScr kb::Execute kb::Insert kb::Undo
kb::Redo kb::Menu kb::Find kb::Cancel
kb::Help kb::Break kb::BackTab
Okay so that's a lot of constants and you're doing amazing for making it this far π β but hold up, there's still more coming. Don't wander off yet, bestie. π¦
Masking constants π
kb::CharMaskβ character codeskb::CodeMaskβ virtual key codes (all otherkb::values)kb::ModMaskβkm::values
km:: β keyboard modifiers β¨οΈ
See also KeyDown in Prima::Widget.
km::Shift
km::Ctrl
km::Alt
km::KeyPad
km::DeadKey
km::Unicode
mt:: β modality types πͺ
See get_modal in Prima::Window, get_modal_window in Prima::Window.
mt::None
mt::Shared
mt::Exclusive
nt:: β notification types π
Used in Prima::Component::notification_types to describe event flow.
See also Flow in Prima::Object.
Starting point constants
nt::PrivateFirst
nt::CustomFirst
Direction constants
nt::FluxReverse
nt::FluxNormal
Complexity constants
nt::Single
nt::Multiple
nt::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::Left
mb::b2 or mb::Middle
mb::b3 or mb::Right
mb::b4
mb::b5
mb::b6
mb::b7
mb::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::Ok
mb::Cancel
mb::Yes
mb::No
mb::Abort
mb::Retry
mb::Ignore
mb::Help
Message box composite (multi-button) constants:
mb::OKCancel, mb::OkCancel
mb::YesNo
mb::YesNoCancel
mb::ChangeAll
Message box icon and bell constants:
mb::Error
mb::Warning
mb::Information
mb::Question
ps:: β paint states π¨
ps::Disabledβ can neither draw, nor get/set graphical properties on an objectps::Enabledβ can both draw and get/set graphical properties on an objectps::Informationβ can only get/set graphical properties on an object
For brevity, ps::Disabled is equal to 0 so this allows for simple boolean testing if one can get/set graphical properties on an object.
See get_paint_state in Drawable.
rgn:: β result of Prima::Region.rect_inside π«§
rgn::Insideβ the rectangle is fully inside the regionrgn::Outsideβ the rectangle is fully outside the regionrgn::Partiallyβ the rectangle overlaps the region but is not fully inside
rgnop:: β Prima::Region.combine set operations π§©
rgnop::Copy
rgnop::Intersect
rgnop::Union
rgnop::Xor
rgnop::Diff
rop:: β raster operation codes ποΈ
See Raster operations in Prima::Drawable.
rop::Blackness # = 0
rop::NotOr # = !(src | dest)
rop::NotSrcAnd # &= !src
rop::NotPut # = !src
rop::NotDestAnd # = !dest & src
rop::Invert # = !dest
rop::XorPut # ^= src
rop::NotAnd # = !(src & dest)
rop::AndPut # &= src
rop::NotXor # = !(src ^ dest)
rop::NotSrcXor # alias for rop::NotXor
rop::NotDestXor # alias for rop::NotXor
rop::NoOper # = dest
rop::NotSrcOr # |= !src
rop::CopyPut # = src
rop::NotDestOr # = !dest | src
rop::OrPut # |= src
rop::Whiteness # = 1
12 Porter-Duff operators π§
rop::Clear # same as rop::Blackness, = 0
rop::XorOver # = src ( 1 - dstA ) + dst ( 1 - srcA )
rop::SrcOver # = src srcA + dst (1 - srcA)
rop::DstOver # = dst srcA + src (1 - dstA)
rop::SrcCopy # same as rop::CopyPut, = src
rop::DstCopy # same as rop::NoOper, = dst
rop::SrcIn # = src dstA
rop::DstIn # = dst srcA
rop::SrcOut # = src ( 1 - dstA )
rop::DstOut # = dst ( 1 - srcA )
rop::SrcAtop # = src dstA + dst ( 1 - srcA )
rop::DstAtop # = dst srcA + src ( 1 - dstA )
rop::Blend # src + dst (1 - srcA)
# same as rop::SrcOver but assumes the premultiplied source
rop::PorterDuffMask - masks out all bits but the constants above
Photoshop operators πΌοΈ
rop::Add
rop::Multiply
rop::Screen
rop::Overlay
rop::Darken
rop::Lighten
rop::ColorDodge
rop::ColorBurn
rop::HardLight
rop::SoftLight
rop::Difference
rop::Exclusion
Special flags π©
rop::SrcAlpha # The combination of these four flags
rop::SrcAlphaShift # may encode extra source and destination
rop::DstAlpha # alpha values in cases either where there is none
rop::DstAlphaShift # in the images, or as additional blend factors.
#
rop::ConstantAlpha # (same as rop::SrcAlpha|rop::DstAlpha)
rop::AlphaCopy # source image is treated a 8-bit grayscale alpha
rop::ConstantColor # foreground color is used to fill the color bits
rop::Default # rop::SrcOver for ARGB destinations, rop::CopyPut otherwise
ROP functions π οΈ
alpha ROP, SRC_ALPHA = undef, DST_ALPHA = undef
Combines one of the alpha-supporting ROPs (Porter-Duff and Photoshop operators) with source and destination alpha, if defined, and returns a new ROP constant. This is useful when blending with constant alpha is required with/over images that don't have their own alpha channel. Or as an additional alpha channel when using icons.
blend ALPHA
Creates a ROP that would effectively execute alpha blending of the source image over the destination image with ALPHA value.
sbmp:: β system bitmaps indices πΌοΈ
See also Prima::StdBitmap.
sbmp::Logo
sbmp::CheckBoxChecked
sbmp::CheckBoxCheckedPressed
sbmp::CheckBoxUnchecked
sbmp::CheckBoxUncheckedPressed
sbmp::RadioChecked
sbmp::RadioCheckedPressed
sbmp::RadioUnchecked
sbmp::RadioUncheckedPressed
sbmp::Warning
sbmp::Information
sbmp::Question
sbmp::OutlineCollapse
sbmp::OutlineExpand
sbmp::Error
sbmp::SysMenu
sbmp::SysMenuPressed
sbmp::Max
sbmp::MaxPressed
sbmp::Min
sbmp::MinPressed
sbmp::Restore
sbmp::RestorePressed
sbmp::Close
sbmp::ClosePressed
sbmp::Hide
sbmp::HidePressed
sbmp::DriveUnknown
sbmp::DriveFloppy
sbmp::DriveHDD
sbmp::DriveNetwork
sbmp::DriveCDROM
sbmp::DriveMemory
sbmp::GlyphOK
sbmp::GlyphCancel
sbmp::SFolderOpened
sbmp::SFolderClosed
sbmp::Last
scr:: β scroll exposure results π
Widget::scroll returns one of these.
scr::Errorβ failurescr::NoExposeβ call resulted in no new exposed areasscr::Exposeβ call resulted in new exposed areas, expect a repaint
sv:: β system value indices βοΈ
See also get_system_value in Prima::Application.
sv::YMenuβ the height of the menu bar in top-level windowssv::YTitleBarβ the height of the title bar in top-level windowssv::XIcon,sv::YIconβ width and height of the main icon dimensions that the system will acceptsv::XSmallIcon,sv::YSmallIconβ width and height of the alternate icon dimensions the system will acceptsv::XPointer,sv::YPointerβ width and height of the mouse pointer icon that the system will acceptsv::XScrollbarβ the width of the default vertical scrollbarsv::YScrollbarβ the height of the default horizontal scrollbarsv::XCursorβ width of the system cursorsv::AutoScrollFirst,sv::AutoScrollNextβ the initial scroll timeout and the repetitive scroll timeout, respectivelysv::InsertModeβ the system insert modesv::XbsNone,sv::YbsNone,sv::XbsSizeable,sv::YbsSizeable,sv::XbsSingle,sv::YbsSingle,sv::XbsDialog,sv::YbsDialogβ the widths and heights of the top-level window decorations, correspondingly, forborderStylebeingbs::None,bs::Sizeable,bs::Singleandbs::Dialogsv::MousePresentβ1if the mouse is present,0otherwisesv::MouseButtonsβ number of mouse buttonssv::WheelPresentβ1if the mouse wheel is present,0otherwisesv::SubmenuDelayβ timeout (in ms) before a sub-menu shows up on an implicit selectionsv::FullDragβ1if top-level windows are dragged dynamically,0for marquee modesv::DblClickDelayβ mouse double-click timeout in millisecondssv::ShapeExtensionβ1ifPrima::Widget::shapefunctionality is supported,0otherwisesv::ColorPointerβ1if the system accepts color pointer iconssv::CanUTF8_Inputβ1if the system can generate key codes in unicodesv::CanUTF8_Outputβ1if the system can output utf8 textsv::CompositeDisplayβ1if the system uses double-buffering and alpha composition for the desktop,0if it doesn't,-1if unknownsv::LayeredWidgetsβ1if the system supports layeringsv::FixedPointerSizeβ0if the system doesn't support arbitrarily sized pointers and will resize custom icons to the system sizesv::MenuCheckSizeβ width and height of the default menu check iconsv::FriBidiβ1if Prima is compiled with libfribidi and full bidi unicode support is availablesv::Antialiasβ1if the system supports antialiasing and an alpha layer for primitivessv::LibThaiβ1if Prima is compiled with libthai
π ta:: β alignment constants π
Bestie, these are the "where do I put it" constants, used in: Prima::InputLine, Prima::ImageViewer, Prima::Label.
ta::Leftta::Rightta::Centerta::Topta::Bottomta::Middle
β¨ to:: β text output constants β¨
Okay so these are used in a bunch of text- and glyph-related functions, and ngl the group is a little vague β it's a set of bit values that may or may not go together depending on which function you're calling. Lowkey iconic of them tbh.
to::Plainβ the default value,0to::AddOverhangsβ used inget_text_widthandget_text_shape_widthto ask for text overhangs to be included in the returned text widthto::Glyphsβ used inget_font_abcandget_font_defto select the extension of glyph indexes rather than text codepointsto::Unicodeβ used inget_font_abcandget_font_defto select the extension of unicode rather than ascii text codepointsto::RTLβ used inget_text_shape_widthto request RTL bidi direction. Also used inPrima::Drawable::Glyphs::indexesvalues to mark RTL characters
π¦ tw:: β text wrapping constants π¦
Peep "text_wrap" in Prima::Drawable for the full tea β
tw::CalcMnemonicβ calculates the tilde underline positiontw::CollapseTildeβ removes the escaping tilde from texttw::CalcTabsβ wraps the text with respect to tab expansiontw::ExpandTabsβ expands tab characterstw::BreakSingleβ determines if the text is broken into single characters when the text cannot be fittw::NewLineBreakβ breaks the line on newline characterstw::SpaceBreakβ breaks the line on space or tab characterstw::ReturnChunksβ returns wrapped text chunkstw::ReturnLinesβ returns positions and lengths of wrapped text chunkstw::WordBreakβ defines if text break by width goes by the characters or by the wordstw::ReturnFirstLineLengthβ returns the length of the first wrapped linetw::Defaultβtw::NewLineBreak | tw::CalcTabs | tw::ExpandTabs | tw::ReturnLines | tw::WordBreak
π
wc:: β widget classes π
Check "widgetClass" in Prima::Widget if you wanna go deeper π«Ά
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, mwah π
ws::Normalws::Minimizedws::Maximizedws::Fullscreen
π AUTHOR π
Dmitry Karasik, <dmitry@karasik.eu.org>. A legend, fr fr π
π SEE ALSO π
Prima, Prima::Classes β go read those next bestie, they ate π
That's the whole page, babes! This was Prima::Const(3), generated from perl v5.42.0 and dated 2024-08-20 β go forth and const-ify your life β¨π¦π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms