Movatterモバイル変換


[0]ホーム

URL:


 / 
Prima-1.76
River stage two • 17 direct dependents • 19 total dependents
/Prima::Const

NAME

Prima::Const - predefined constants

DESCRIPTION

Prima::Const andPrima::Classes for 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 collected under the top-level package names, with noPrima:: prefix. This violates the perl guidelines about package naming, however, it was considered way too inconvenient to prefix every constant with aPrima:: string.

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, thent constants are also described in the"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::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::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
Color functions
from_rgb R8,G8,B8 -> RGB24
to_rgb RGB24 -> R8,G8,B8
from_bgr B8,G8,R8 -> RGB24
to_bgr RGB24 -> B8,G8,R8
to_gray_byte RGB24 -> GRAY8
to_gray_rgb RGB24 -> GRAY24
from_gray_byte GRAY8 -> GRAY24
premultiply RGB24,A8 -> RGB24
distance RGB24,RGB24 -> distance between colors
blend 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 a dnd::Copy action can be acceptedcr::DragMove                pointer to indicate that a dnd::Move action can be acceptedcr::DragLink                pointer to indicate that a dnd::Link action can be accepted        cr::Crosshair               the crosshair pointer        cr::UpArrow                 arrow directed upwards        cr::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 ifACTIONS is not a combination ofdnd:: constants.

pointer ACTION

Returns acr:: constant corresponding to theACTION

to_one_action ACTIONS

Selects the best single action from a combination of allowedACTIONS

keymod ACTION

Returns akm:: keyboard modifier constant that would initiateACTION if the user presses it during a DND session. Returns 0 fordnd::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    - sets tw::BreakSingle option toPrima::Drawable::text_wrap calldt::NewLineBreak      - sets tw::NewLineBreak option toPrima::Drawable::text_wrap calldt::SpaceBreak        - sets tw::SpaceBreak option to        Prima::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 the 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

SeePrima::FindDialog

fdo::MatchCasefdo::WordsOnlyfdo::RegularExpressionfdo::BackwardSearchfdo::ReplacePrompt

fds:: - find / replace dialog scope type

SeePrima::FindDialog

fds::Cursorfds::Topfds::Bottom

fe:: - file events constants

SeePrima::File

fe::Readfe::Writefe::Exception

fm:: - fill modes

See"fillMode" in Prima::Drawable

fp::Alternatefp::Windingfp::Overlay

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
builtin $FILL_PATTERN

Given a result fromDrawable::fillPattern, an 8x8 array of integers, checks whether the array matches one of the builtinfp:: constants, and returns one if found. Returns undef otherwise.

is_empty $FILL_PATTERN

Given a result fromDrawable::fillPattern, an 8x8 array of integers, checks if the array is all zeros

is_solid $FILL_PATTERN

Given a result fromDrawable::fillPattern, an 8x8 array of integers, checks if the array is all ones (ie 0xff)

patterns

Returns a set of string-encoded fill patterns that correspond to the builtinfp:: constants. These are not suitable for use inDrawable::fillPatterns.

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

ggo:: - glyph outline commands

ggo::Moveggo::Lineggo::Conicggo::Cubic

See also"render_glyph" in Prima::Drawable

gm:: - grow modes

See"growMode" in Prima::Widget

Basic constants
gm::GrowLoXwidget's left side is kept in constantdistance from the owner's right sidegm::GrowLoYwidget's bottom side is kept in constantdistance from the owner's top sidegm::GrowHiXwidget's right side is kept in constantdistance from the owner's right sidegm::GrowHiYwidget's top side is kept in constantdistance from the owner's top sidegm::XCenterwidget is kept in the center on its owner'shorizontal axisgm::YCenterwidget is kept in the center on its owner'svertical axisgm::DontCarewidgets origin is 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::Windowsgui::XLibgui::GTK

le:: - line end styles

See"lineEnd" in Prima::Drawable

le::Flatle::Squarele::Roundle::Arrowle::Cusple::InvCusple::Knoble::Rectle::RoundRectle::Spearheadle::Tail

Functions:

le::transform($matrix)le::scale($scalex, [$scaley = $scalex])

lei:: - line end indexes

lei::LineTaillei::LineHeadlei::ArrowTaillei::ArrowHeadlei::Maxlei::Only

See"lineEndIndex" in Prima::Drawable

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::TrigComplexNumberim::SignedInt
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 dithering, with static palette or palette optimized by the source paletteict::Posterization   - no dithering, with palette optimized by the source pixelsict::Ordered         - 8x8 ordered halftone ditheringict::ErrorDiffusion  - error diffusion dithering with a static paletteict::Optimized       - error diffusion dithering with an optimized palette

Their values are combinations ofictp:: andictd:: constants, see below.

ictd:: - image conversion types, dithering

These constants select the color correction (dithering) algorithm when downsampling an image

ictd::None            - no dithering, pure colors onlyictd::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 select how the target palette is made up when downsampling an image.

ictp::Unoptimized  - use whatever color mapping method is fastest,                     image quality can be severely compromisedictp::Cubic        - use static cubic palette; a bit slower,                     guaranteed mediocre qualityictp::Optimized    - collect available colors in the image;                     slowest, gives the best results

Not all combinations of ictp and ictd constants are valid

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      - the sum of pixel valuesis::Sum2     - the sum of squares of pixel values

ist:: - image scaling types

ist::None      - image stripped or padded with zerosist::Box       - the image will be scaled using a simple box transformist::BoxX      - columns behave as ist::None, rows as ist::Boxist::BoxY      - rows behave as in ist::None, columns as ist::Boxist::AND       - shrunken pixels AND-end together (black-on-white images)ist::OR        - shrunken pixels OR-end together (white-on-black images)ist::Triangle  - bilinear interpolationist::Quadratic - 2nd order (quadratic) B-Spline approximation of the Gaussianist::Sinc      - sine functionist::Hermite   - B-Spline interpolationist::Cubic     - 3rd order (cubic) B-Spline approximation of the Gaussianist::Gaussian  - Gaussian transform with gamma=0.5

See"scaling" in Prima::Image.

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::ShiftLockkb::ModeSwitch
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::DeadKeykm::Unicode

mt:: - modality types

See"get_modal" in Prima::Window,"get_modal_window" in Prima::Window

mt::Nonemt::Sharedmt::Exclusive

nt:: - notification types

Used inPrima::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::YesNoCancelmb::ChangeAll
Message box icon and bell constants
mb::Errormb::Warningmb::Informationmb::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::Copyrgnop::Intersectrgnop::Unionrgnop::Xorrgnop::Diff

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

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::Addrop::Multiplyrop::Screenrop::Overlayrop::Darkenrop::Lightenrop::ColorDodgerop::ColorBurnrop::HardLightrop::SoftLightrop::Differencerop::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 alsoPrima::StdBitmap.

sbmp::Logosbmp::CheckBoxCheckedsbmp::CheckBoxCheckedPressedsbmp::CheckBoxUncheckedsbmp::CheckBoxUncheckedPressedsbmp::RadioCheckedsbmp::RadioCheckedPressedsbmp::RadioUncheckedsbmp::RadioUncheckedPressedsbmp::Warningsbmp::Informationsbmp::Questionsbmp::OutlineCollapsesbmp::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

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            - 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       - the width of the default vertical scrollbarsv::YScrollbar       - the 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 the system accepts color pointer icons.sv::CanUTF8_Input    - 1 if the system can generate key codes in unicodesv::CanUTF8_Output   - 1 if the system can output utf8 textsv::CompositeDisplay - 1 if the system uses double-buffering and alpha composition for the desktop,                       0 if it doesn't, -1 if unknownsv::LayeredWidgets   - 1 if the system supports layeringsv::FixedPointerSize - 0 if the system doesn't support arbitrarily sized pointers and will resize custom icons to the system sizesv::MenuCheckSize    - width and height of default menu check iconsv::FriBidi          - 1 if Prima is compiled with libfribidi and full bidi unicode support is availablesv::Antialias        - 1 if the system supports antialiasing and alpha layer for primitivessv::LibThai          - 1 if Prima is compiled with libthai

ta:: - alignment constants

Used in:Prima::InputLine,Prima::ImageViewer,Prima::Label.

ta::Leftta::Rightta::Centerta::Topta::Bottomta::Middle

to:: - text output constants

These constants are used in various text- and glyph-related functions and form a somewhat vague group of bit values that may or may not be used together depending on the function

to::Plain         - default value, 0to::AddOverhangs  - used in C<get_text_width> and C<get_text_shape_width>                    to request text overhangs to be included in the returned    text widthto::Glyphs        - used in C<get_font_abc> and C<get_font_def> to select extension of                    glyph indexes rather than text codepointsto::Unicode       - used in C<get_font_abc> and C<get_font_def> to select extension of                    unicode rather than ascii text codepointsto::RTL           - used in C<get_text_shape_width> to request RTL bidi direction.                    Also used in C<Prima::Drawable::Glyphs::indexes> values to mark    RTL characters.

tw:: - text wrapping constants

See"text_wrap" in Prima::Drawable

tw::CalcMnemonic          - calculates tilde underline positiontw::CollapseTilde         - removes 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 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 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

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::Maximizedws::Fullscreen

AUTHOR

Dmitry Karasik, <dmitry@karasik.eu.org>.

SEE ALSO

Prima,Prima::Classes

Module Install Instructions

To install Prima, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Prima

CPAN shell

perl -MCPAN -e shellinstall Prima

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp